@font-face {
  font-family: Inter;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Editorial;
  src: url(/assets/fonts/notoserif-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --edge: clamp(1.05rem,5vw,4.8rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pf-paper);
  color: var(--pf-ink);
  font: 400 1rem/1.5 Inter,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,input,select {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid var(--pf-focus);
  outline-offset: 3px;
}

h1,h2,h3,p,figure,ul {
  margin: 0;
}

svg {
  display: block;
}

.wrap {
  width: min(calc(100% - var(--edge)*2),78rem);
  margin-inline: auto;
}

.sr,.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: absolute;
  z-index: 20;
  top: .3rem;
  left: .3rem;
  background: var(--pf-ivory);
  color: var(--pf-ink);
  padding: .55rem;
}

.head {
  background: var(--pf-navy);
  color: var(--pf-ivory);
}

.head>.wrap {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.identity {
  font: 560 1.36rem/1.1 Editorial,Georgia,serif;
  letter-spacing: -.048em;
  display: flex;
  align-items: center;
  gap: .64rem;
  white-space: nowrap;
  text-decoration: none;
}

.identity img {
  width: 35px;
  height: 35px;
  border-radius: 6px;
}

.head nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem,2.7vw,2rem);
}

.head nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 470;
  font-size: .89rem;
}

.head nav a:hover,.head nav [aria-current=page] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--pf-line);
}

.head nav a:focus-visible,.identity:focus-visible {
  outline-color: var(--pf-gold-light);
}

.private-note {
  border-bottom: 1px solid var(--pf-border-light);
  padding: .32rem 0;
  color: var(--pf-muted);
  font-size: .78rem;
  letter-spacing: .01em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.27fr);
  align-items: center;
  gap: clamp(1.35rem,5vw,6rem);
  padding: clamp(1.5rem,3vw,2.65rem) 0 clamp(1.2rem,2.6vw,2.25rem);
}

h1 {
  font: 450 clamp(2.6rem,5vw,4.55rem)/.99 Editorial,Georgia,serif;
  letter-spacing: -.071em;
}

.hero-intro>p {
  color: var(--pf-muted);
  max-width: 34rem;
  line-height: 1.56;
  margin-top: .82rem;
  font-size: clamp(1rem,1.55vw,1.16rem);
}

.specimen {
  min-width: 0;
  scroll-margin: 1rem;
}

.specimen summary {
  background: var(--pf-navy-soft);
  color: var(--pf-surface);
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  align-items: stretch;
  cursor: pointer;
  position: relative;
  min-height: 12rem;
  border: 1px solid var(--pf-muted);
  list-style: none;
}

.specimen summary::-webkit-details-marker {
  display: none;
}

.preview-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .4rem;
  padding: 1.1rem 1.15rem 1.1rem clamp(1rem,2.4vw,1.8rem);
  min-width: 0;
}

.page-ref {
  color: var(--pf-line-soft);
  font-size: .77rem;
  font-weight: 550;
}

.preview-name {
  font: 465 clamp(1.32rem,2.6vw,2.12rem)/1.09 Editorial,Georgia,serif;
  letter-spacing: -.045em;
  max-width: 12ch;
}

.preview-cta {
  display: flex;
  align-items: center;
  gap: .49rem;
  margin-top: .35rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: .85rem;
  font-weight: 500;
}

.preview-cta svg {
  width: 1rem;
}

.detail-close {
  display: none;
}

.specimen[open] .detail-open {
  display: none;
}

.specimen[open] .detail-close {
  display: inline;
}

.sheet-window {
  position: relative;
  overflow: hidden;
  margin: 0;
  isolation: isolate;
  background: repeating-linear-gradient(90deg,transparent 0 30px,rgb(15 23 42 / 0.16) 30px 31px),repeating-linear-gradient(0deg,transparent 0 30px,rgb(15 23 42 / 0.16) 30px 31px),var(--pf-slate);
}

.sheet-window::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 12px 0 28px rgb(15 23 42 / 0.16);
  pointer-events: none;
}

.sheet-window img {
  position: absolute;
  display: block;
  width: clamp(22rem,31vw,32rem);
  max-width: none;
  top: 1.37rem;
  left: .92rem;
  transform-origin: top left;
  transform: rotate(-5deg);
  box-shadow: -3px 5px 0 var(--pf-line-soft),-5px 8px 14px rgb(15 23 42 / 0.5);
}

.specimen summary:hover .preview-cta {
  text-decoration-thickness: 2px;
}

.specimen summary:focus-visible {
  z-index: 2;
}

.expansion {
  border: 1px solid var(--pf-border-light);
  border-top: 0;
  padding: 1rem;
  background: var(--pf-tint);
}

.expansion p {
  color: var(--pf-muted);
  font-size: .91rem;
  line-height: 1.5;
  margin-bottom: .6rem;
}

.full-sheet {
  background: var(--pf-surface);
  overflow-x: auto;
  border: 1px solid var(--pf-line);
}

.full-sheet img {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.external-note {
  font-size: .82rem;
  color: var(--pf-muted);
}

.external-note svg,.related-link svg,.resource svg,.template-link svg {
  width: .9em;
  height: .9em;
  display: inline-block;
  vertical-align: baseline;
  margin-left: .28em;
}

.template-link {
  font-size: .85rem;
  min-height: 44px;
  display: inline-flex;
  gap: .24rem;
  align-items: center;
  text-underline-offset: 4px;
}

.library {
  border-top: 1px solid var(--pf-ink);
  padding: 1.45rem 0 2rem;
}

.library-grid {
  display: grid;
  grid-template-columns: minmax(12.5rem,.27fr) minmax(0,1fr);
  gap: clamp(1.5rem,4vw,4rem);
  align-items: start;
}

.sidebar {
  min-width: 0;
}

.sidebar h2,.mobile-task>span,.control label,.form-label {
  font-size: .85rem;
  font-weight: 610;
  letter-spacing: -.015em;
}

.jobnav {
  margin: .65rem 0 1.2rem;
  border-top: 1px solid var(--pf-border-light);
}

.jobnav a {
  display: flex;
  gap: .55rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--pf-border-light);
  text-decoration: none;
  min-height: 3.12rem;
  padding: .6rem .42rem .6rem .68rem;
  line-height: 1.28;
  color: var(--pf-muted);
  font-weight: 500;
  font-size: .91rem;
  border-left: 2px solid transparent;
}

.jobnav a span {
  font-size: .79rem;
  color: var(--pf-muted);
  font-variant-numeric: tabular-nums;
}

.jobnav a:hover {
  background: var(--pf-tint);
}

.jobnav a[aria-current=true] {
  background: var(--pf-ivory);
  border-left-color: var(--pf-brass);
  color: var(--pf-ink);
  font-weight: 620;
}

.sidebar .external-note {
  line-height: 1.46;
  max-width: 22ch;
}

.collection-tools {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(11rem,.43fr);
  align-items: end;
  gap: .85rem;
}

.control {
  min-width: 0;
}

.control label,.mobile-task label {
  display: block;
  margin-bottom: .34rem;
}

.searchbox {
  position: relative;
  display: flex;
  align-items: center;
}

.searchbox svg {
  position: absolute;
  left: .78rem;
  width: 1.05rem;
  pointer-events: none;
  color: var(--pf-muted);
}

input[type=search],select {
  height: 45px;
  width: 100%;
  border: 1px solid var(--pf-border-light);
  border-radius: 0;
  background: var(--pf-surface);
  color: var(--pf-ink);
  font-size: .96rem;
}

input[type=search] {
  padding: .48rem .75rem .48rem 2.35rem;
}

input::placeholder {
  color: var(--pf-muted);
  opacity: 1;
}

select {
  appearance: none;
  background: var(--pf-surface);
  padding: 0 2rem 0 .78rem;
}

.select-wrap {
  position: relative;
}

.select-wrap:after {
  content: '';
  width: .42rem;
  height: .42rem;
  border: solid var(--pf-muted);
  border-width: 0 1.3px 1.3px 0;
  position: absolute;
  right: 1rem;
  top: 44%;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.mobile-task,.mobile-hint {
  display: none;
}

.count-line {
  margin: 1.03rem 0 .65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.45rem;
  gap: .8rem;
  font-size: .86rem;
  color: var(--pf-muted);
  font-variant-numeric: tabular-nums;
}

.reset {
  appearance: none;
  background: none;
  color: var(--pf-ink);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: .52rem .14rem;
  cursor: pointer;
  font-size: .86rem;
  min-height: 44px;
}

.group {
  scroll-margin: 1rem;
}

.group+.group {
  margin-top: 1.35rem;
}

.group-heading {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  color: var(--pf-ink);
  background: var(--pf-tint);
  border-top: 1px solid var(--pf-border-light);
  padding: .48rem .82rem;
}

.group-heading h3 {
  font: 575 1.06rem/1.4 Inter,Arial,sans-serif;
  letter-spacing: -.035em;
}

.group-count {
  font-size: .79rem;
  font-variant-numeric: tabular-nums;
  color: var(--pf-muted);
}

.items {
  list-style: none;
  padding: 0;
}

.item {
  display: grid;
  grid-template-columns: 2rem minmax(0,1fr);
  gap: .75rem;
  padding: 1rem .8rem 1.03rem;
  border-bottom: 1px solid var(--pf-border-light);
}

.format-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--pf-line-soft);
  background: var(--pf-tint);
  color: var(--pf-muted);
}

.format-mark svg {
  width: 1.15rem;
}

.item-copy {
  min-width: 0;
}

.resource {
  font-size: clamp(1rem,1.35vw,1.18rem);
  font-weight: 570;
  letter-spacing: -.033em;
  text-decoration: none;
  text-underline-offset: 4px;
  line-height: 1.38;
}

.resource svg {
  color: var(--pf-muted);
  width: .76em;
}

.resource:hover,.related-link:hover {
  text-decoration: underline;
}

.item-copy p {
  font-size: .94rem;
  line-height: 1.5;
  color: var(--pf-muted);
  margin-top: .22rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: .57rem;
  row-gap: .08rem;
  color: var(--pf-muted);
  margin-top: .36rem;
  font-size: .8rem;
  line-height: 1.45;
}

.meta span:not(:last-child):after {
  content: '·';
  margin-left: .57rem;
  color: var(--pf-muted);
}

.meta span:first-child {
  color: var(--pf-muted);
  font-weight: 570;
}

.empty {
  border-top: 1px solid var(--pf-border-light);
  padding: 1.1rem 0;
  color: var(--pf-muted);
}

.related {
  margin-top: 1.6rem;
  padding-top: .8rem;
  border-top: 1px solid var(--pf-ink);
}

.related h3 {
  font: 480 1.5rem/1.25 Editorial,Georgia,serif;
  letter-spacing: -.035em;
}

.related-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: .55rem 0 0;
}

.related-link {
  display: inline-block;
  min-height: 44px;
  padding: .36rem 0;
  font-size: .91rem;
  text-underline-offset: 4px;
}

.foot {
  border-top: 1px solid var(--pf-border-light);
  padding: 1rem 0 1.6rem;
  font-size: .79rem;
  color: var(--pf-muted);
}

[hidden] {
  display: none!important;
}

.js-only {
  display: none;
}

.enhanced .js-only {
  display: block;
}

.enhanced .collection-tools {
  display: grid;
}

.enhanced .mobile-task {
  display: none;
}

.noscript {
  font-size: .93rem;
  margin-bottom: .7rem;
  color: var(--pf-muted);
}

.desktop-foot {
  display: block;
}

@media(max-width:775px) {
  .head>.wrap {
    min-height: 59px;
  }
  .identity {
    font-size: 1.13rem;
  }
  .identity img {
    width: 29px;
    height: 29px;
  }
  .head nav a {
    font-size: .86rem;
  }
  .hero {
    gap: 1.2rem;
    grid-template-columns: 1fr 1fr;
  }
  .specimen summary {
    min-height: 9.35rem;
  }
  .preview-copy {
    padding: .8rem;
    gap: .25rem;
  }
  .sheet-window img {
    width: 19rem;
    top: 1.15rem;
    left: .35rem;
  }
  .hero-intro>p {
    font-size: 1rem;
  }
  .library-grid {
    display: block;
  }
  .sidebar .external-note,.enhanced .sidebar {
    display: none;
  }
  .sidebar h2 {
    font-size: .88rem;
  }
  .jobnav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    border: 0;
  }
  .jobnav a {
    border: 0;
    min-height: 44px;
    padding: .2rem .4rem;
    font-size: .88rem;
  }
  .jobnav a span {
    display: none;
  }
  .mobile-hint {
    display: block;
  }
  .collection-tools {
    grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);
    gap: .5rem;
  }
  .enhanced .mobile-task {
    display: block;
  }
  .desktop-foot {
    display: none;
  }
  .count-line {
    margin: .65rem 0 .5rem;
  }
  .resource {
    font-size: 1.08rem;
  }
}

@media(max-width:585px) {
  .head>.wrap {
    min-height: 53px;
    gap: .4rem;
  }
  .identity {
    font-size: 1.06rem;
    gap: .36rem;
  }
  .identity img {
    width: 25px;
    height: 25px;
  }
  .head nav {
    gap: .72rem;
  }
  .head nav a {
    font-size: .78rem;
  }
  .private-note {
    font-size: .75rem;
  }
  .hero {
    display: block;
    padding: 1.35rem 0 .95rem;
  }
  .hero-intro>p {
    max-width: 40ch;
    margin-top: .4rem;
    line-height: 1.42;
  }
  .specimen {
    margin-top: .94rem;
  }
  .specimen summary {
    grid-template-columns: minmax(0,1fr) minmax(6.6rem,.64fr);
    min-height: 5rem;
  }
  .preview-copy {
    gap: .13rem;
    padding: .55rem .7rem;
  }
  .preview-name {
    font: 580 .96rem/1.15 Inter,Arial,sans-serif;
    letter-spacing: -.025em;
    max-width: none;
  }
  .page-ref {
    font-size: .75rem;
  }
  .preview-cta {
    font-size: .77rem;
    margin-top: .1rem;
  }
  .preview-cta svg {
    width: .86rem;
  }
  .sheet-window img {
    width: 16.4rem;
    top: .83rem;
    left: .55rem;
  }
  .library {
    padding: 1rem 0 1.5rem;
  }
  .collection-tools {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .53rem .72rem;
  }
  .search-control {
    grid-column: 1/-1;
  }
  .control label,.mobile-task label {
    font-size: .82rem;
    margin-bottom: .18rem;
  }
  .count-line {
    margin: .58rem 0 .46rem;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem .8rem;
  }
  .mobile-hint,.count-line {
    font-size: .78rem;
  }
  .reset {
    min-height: 42px;
  }
  input[type=search],select {
    font-size: 1rem;
    height: 43px;
  }
  .group-heading {
    padding: .42rem .65rem;
  }
  .item {
    padding: .73rem .16rem .8rem;
    gap: .52rem;
    grid-template-columns: 1.55rem 1fr;
  }
  .format-mark {
    width: 1.55rem;
    height: 1.65rem;
  }
  .format-mark svg {
    width: 1.02rem;
  }
  .item-copy p {
    font-size: .94rem;
  }
  .resource {
    font-size: 1.06rem;
  }
  .related-links {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .related-link {
    font-size: .93rem;
  }
  .related {
    margin-top: 1rem;
  }
  .foot {
    padding: .8rem 0 1.35rem;
  }
}

@media(max-width:355px) {
  :root {
    --edge: .8rem;
  }
  .head>.wrap {
    gap: .25rem;
  }
  .head nav {
    gap: .5rem;
  }
  .identity {
    font-size: .98rem;
  }
  .head nav a {
    font-size: .74rem;
  }
  .identity img {
    width: 22px;
    height: 22px;
  }
  .preview-name {
    font-size: .9rem;
  }
  .hero-intro>p {
    font-size: .94rem;
  }
  .specimen summary {
    grid-template-columns: 1fr 5.6rem;
  }
  .count-line {
    align-items: flex-start;
  }
  .group-heading h3 {
    font-size: 1rem;
  }
}

@media(max-width:775px) {
  html:not(.enhanced) .jobnav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 .85rem;
    margin: .35rem 0 .5rem;
  }
  html:not(.enhanced) .jobnav a {
    border-bottom: 1px solid var(--pf-border-light);
    padding-left: 0;
  }
  html:not(.enhanced) .jobnav a:first-child {
    display: none;
  }
}

.ref-short {
  display: none;
}

.folio {
  white-space: nowrap;
}

@media(max-width:585px) {
  .ref-long {
    display: none;
  }
  .ref-short {
    display: inline;
  }
}

@media(max-width:420px) {
  .identity {
    font-size: 1.19rem;
    gap: .48rem;
  }
  .long-name {
    display: none;
  }
  .head nav {
    gap: 1rem;
  }
  .head nav a {
    font-size: .84rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior: auto!important;
    animation: none!important;
    transition: none!important;
  }
}

@media(forced-colors:active) {
  .group-heading,.format-mark,.specimen summary,.jobnav a[aria-current=true] {
    border: 1px solid CanvasText;
  }
  .select-wrap:after {
    border-color: ButtonText;
  }
  .jobnav a[aria-current=true] {
    outline: 2px solid Highlight;
  }
  .sheet-window img {
    outline: 1px solid CanvasText;
  }
}

.hero h1 {
  font-size: clamp(34px,4vw,52px);
  line-height: 1.1;
}

.specimen .preview-name {
  font-size: clamp(23px,2.2vw,30px);
  line-height: 1.12;
}

.ms-semantic {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#search,#task,#access {
  min-height: 44px;
}

.resource::after {
  content: " →";
  white-space: nowrap;
}

.resource-inquiry {
  margin-top: .7rem;
}

.resource-inquiry summary {
  cursor: pointer;
  min-height: 44px;
  padding: .6rem 0;
  font-weight: 600;
}

.resource-inquiry p {
  margin: .4rem 0;
  color: var(--pf-muted);
}

.resource:target {
  outline: 2px solid var(--pf-focus);
  outline-offset: .2rem;
}
