/* Static info pages (transparency, about, privacy, and the same family).
   Phones reserve 70px for a fixed homepage bar these pages do not render,
   so the top is an empty band with no name and no way back. This bar is
   the wordmark plus a close control. It does not apply to the homepage. */

/* html body beats the article/supplement 8px offset (same !important,
   one class). These pages render this bar instead of that offset. */
html body:has(.ss-pagebar){
  padding-top:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
body:has(.ss-pagebar) > .site-nav,
body:has(.ss-pagebar) > .beta-bar{display:none !important}
body:has(.ss-pagebar) .pg-close-fab,
body:has(.ss-pagebar) .pg-share-fab,
body:has(.ss-pagebar) .bro-close-fab,
body:has(.ss-pagebar) .hub-close-fab,
body:has(.ss-pagebar) .cmp-close-fab,
body:has(.ss-pagebar) .d-close-fab{display:none !important}
body:has(.ss-pagebar) .eg-back,
body:has(.ss-pagebar) .bib-back,
body:has(.ss-pagebar) .gl-back,
body:has(.ss-pagebar) .pg-back,
body:has(.ss-pagebar) .hubidx-back,
body:has(.ss-pagebar) .hub-back,
body:has(.ss-pagebar) .bm-back,
body:has(.ss-pagebar) .sr-back{display:none !important}

.ss-pagebar{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--color-background-primary,#fff);
  border-bottom:1px solid var(--color-border-tertiary,#e6e4df);
}
.ss-pagebar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-sizing:border-box;
  width:100%;
  max-width:800px;
  min-height:56px;
  margin:0 auto;
  padding:8px 16px;
}
.ss-pagebar-brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  text-decoration:none;
  color:var(--color-text-primary,#1c1917);
}
.ss-pagebar-brand:hover{opacity:.78}
.ss-pagebar-brand:focus-visible,
.ss-pagebar-x:focus-visible{outline:2px solid var(--color-brand,#155A50);outline-offset:2px}
.ss-pagebar-brand svg{width:22px;height:22px;color:var(--color-brand,#155A50);flex-shrink:0}
.ss-pagebar-name{font-size:14.5px;font-weight:700;letter-spacing:-.3px;line-height:1;color:var(--color-text-primary,#1c1917)}
.ss-pagebar-name span{color:var(--color-text-tertiary,#78716c);font-weight:500}
.ss-pagebar-x{
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  border-radius:50%;
  background:var(--color-background-primary,#fff);
  border:1px solid var(--color-border-secondary,#d6d3d1);
  box-shadow:0 2px 12px rgba(0,0,0,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--color-text-secondary,#57534e);
  text-decoration:none;
  flex-shrink:0;
  box-sizing:border-box;
}
.ss-pagebar-x:hover{color:var(--color-text-primary,#1c1917)}
.ss-pagebar-x svg{width:18px;height:18px}
@media(min-width:769px){
  .ss-pagebar-inner{position:relative;min-height:76px;padding:16px 76px 16px 16px}
  .ss-pagebar-x{position:absolute;top:16px;right:16px}
}

/* Index lists (browse, topic-hub supplement indexes). In-article links
   stay as written. Each row is a link: 16px type, a 48px target, a
   hairline, and an arrow in the brand teal. Phone stays one column.
   From 768 the rows share a height and a 32px column gap; from 1024
   there are three columns, so 1280 is three as well. */
.bro-list,.hub-simple-list{
  font-size:16px;
  row-gap:0;
  column-gap:0;
  gap:0;
  grid-template-columns:1fr;
  align-items:stretch;
}
.bro-list li,.hub-simple-list li{display:flex;min-width:0}
.bro-list a,.hub-simple-list li a{
  display:flex;
  flex:1;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:48px;
  height:100%;
  font-size:16px;
  line-height:1.3;
  font-weight:500;
  padding:8px 4px;
  border:0;
  border-bottom:1px solid var(--color-border-tertiary,#e5e7eb);
  border-radius:0;
  box-sizing:border-box;
  text-decoration:none;
  color:var(--color-text-primary,#1c1917);
}
.bro-list a::after,.hub-simple-list li a::after{
  content:"";
  flex:none;
  width:8px;
  height:8px;
  margin-left:12px;
  border-right:2px solid #155A50;
  border-top:2px solid #155A50;
  transform:rotate(45deg);
}
@media(min-width:768px){
  .bro-list,.hub-simple-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:32px;
    gap:0 32px;
  }
}
@media(min-width:1024px){
  .bro-list,.hub-simple-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ss-pagebar-inner{
    width:min(1024px,calc(100% - 32px));
    max-width:1024px;
    justify-content:flex-start;
    gap:0;
    padding-left:24px;
  }
}
.bro-list a:hover,.hub-simple-list li a:hover{
  color:var(--color-brand,#155A50);
  text-decoration:none;
}

@media(max-width:768px){
  .ss-pagebar-inner{padding:8px 16px;min-height:60px}
  .ss-pagebar-x{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
  }
  .ss-pagebar-x svg{width:24px;height:24px}
  body:has(.ss-pagebar) .pg-wrap,
  body:has(.ss-pagebar) main.ar-wrap,
  body:has(.ss-pagebar) .eb-wrap,
  body:has(.ss-pagebar) .bib-wrap,
  body:has(.ss-pagebar) .gl-wrap,
  body:has(.ss-pagebar) .brand-wrap{
    padding-top:16px !important;
    padding-left:16px !important;
    padding-right:16px !important;
    font-size:16px;
    line-height:1.6;
  }
  body:has(.ss-pagebar) .pg-wrap h1,
  body:has(.ss-pagebar) main.ar-wrap h1,
  body:has(.ss-pagebar) .eb-hd h1,
  body:has(.ss-pagebar) .bib-h1,
  body:has(.ss-pagebar) .gl-h1,
  body:has(.ss-pagebar) .brand-wrap h1{
    line-height:1.15;
    margin-top:0;
  }
  body:has(.ss-pagebar) .pg-wrap h2,
  body:has(.ss-pagebar) main.ar-wrap h2,
  body:has(.ss-pagebar) .eb-section h2,
  body:has(.ss-pagebar) .brand-wrap h2{
    line-height:1.25;
    margin-top:24px;
    margin-bottom:8px;
    padding-top:12px;
  }
  body:has(.ss-pagebar) .pg-wrap h2:first-of-type{
    margin-top:8px;
    padding-top:0;
    border-top:none;
  }
  /* Directory and tool pages used 28–48px of top padding on top of the
     70px phone offset. With the bar in place, match the info pages. */
  body:has(.ss-pagebar) :is(
    .ix-wrap,.bro-wrap,.hubidx-wrap,.hub-wrap,.bm-wrap,.mp-wrap,
    .cmp-wrap,.sr-wrap,.nf-wrap,.dt-wrap,.d-wrap,main.sx-wrap
  ){
    padding-top:16px !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }
  body:has(.ss-pagebar) .ix-supps a,
  body:has(.ss-pagebar) .ix-links a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    box-sizing:border-box;
  }
  /* Phone titles were 34–38px on info pages and up to 2.1rem on hubs.
     Match the 30px article title so a long heading doesn't fill the screen. */
  body:has(.ss-pagebar) h1{
    font-size:30px !important;
    line-height:1.15 !important;
    letter-spacing:-.4px;
  }
}
/* These pages zero body padding, so the shared footer bleed
   (width: calc(100% + 2rem); margin: 0 -1rem) hangs past the viewport:
   1px at 1280 once the scrollbar gutter is reserved, and 16px on a phone. */
body:has(.ss-pagebar) > footer.site-footer{
  width:100%;
  max-width:100%;
  margin-left:0;
  margin-right:0;
  box-sizing:border-box;
}
