/* The approved prototype is in design.css; these rules adapt legacy content and the existing commerce drawer. */
dialog:not([open]), [hidden] { display: none !important; }
dialog { margin: auto; }
.sr-only, .pilot-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pilot-skip:focus { z-index: 40; position: fixed; top: 8px; left: 8px; padding: .5rem; background: white; }
#site-header .brand { flex: 1 1 auto; min-width: 0; }
.cart-count { display: inline-block; min-width: 2.1ch; text-align: center; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #1B3D5F; }
.cart-count[data-empty="true"] { color: #636A6F; font-weight: 600; }
body[data-search-disabled] [data-open="search"], body[data-saved-disabled] [data-open="saved"],
body[data-saved-disabled] [data-save], body:not(:has([data-cart])) [data-cart-open] { display: none; }
.sog-legacy .body img { max-width: 100%; height: auto; }
.sog-legacy .body .number { float: left; margin: 0 .55rem 0 0; font: inherit; }
.sog-legacy .body .number + h2 { margin-top: 34px; }
.sog-legacy .body .number { float: none; display: inline; }
.sog-legacy .body .ranked-heading { margin-top: 34px; }
.sog-legacy .body .item { clear: both; min-width: 0; }
.sog-legacy .body .item :is(a,span,div) { overflow-wrap: anywhere; }
.sog-legacy .body .quote { border-left: 2px solid #BBCBDC; padding: 6px 16px; margin: 28px 0; font: italic var(--theme-size-body)/1.8 var(--theme-font-display); color: #535955; }
.sog-legacy .body .quote .author, .sog-legacy figcaption { margin-top: .65rem; font: normal var(--theme-size-caption)/1.5 var(--theme-font-body); }
.sog-legacy .body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.sog-legacy .body th, .sog-legacy .body td { padding: .5rem .8rem; border: 1px solid #DFDBD3; }
.sog-legacy .body :is(canvas,iframe,svg) { max-width: 100%; }
.sog-legacy .body :is(.tip-box,.tipbox,.sog-curator-tip,.faq,.source-box) { padding: .85rem; margin-block: 1rem; background: #F6F4EF; border-radius: .65rem; }
.sog-legacy .body .source { display: block; padding-block: .55rem; overflow-wrap: anywhere; }
.sog-legacy .body :is(.source,[id],h2,h3) { scroll-margin-top: 96px; }
.is-citation-target { background: #E5F5EE !important; box-shadow: 0 0 0 2px #28537D; border-radius: 6px; transition: background-color 200ms ease, box-shadow 200ms ease; }
.sog-legacy .body sup a { padding-inline: .15em; }
.sog-legacy .body .editorial-sources li { margin-block: 0; }
.sog-legacy .body .editorial-sources li p { margin: 0; }
.sog-legacy .byline { flex-wrap: wrap; }
.sog-legacy .body .buy-button a, .sog-legacy .body .item .buy-button { color: #fff; }
.sog-legacy .body .item .buy-button:hover, .sog-legacy .body .item > a:hover .buy-button { color: #fff; background: #28537D; text-decoration: none; }
.sog-legacy .body .item .price:empty { display: none; }
.sog-legacy .body .item > a { text-decoration: none; }
.pilot-cart { border: 1px solid #DFDBD3; }
.sog-pilot .pilot-cart h2 { margin: 0; }
.sog-pilot .pilot-cart button, .sog-pilot .pilot-cart select { font: inherit; }
.sog-pilot .pilot-cart header button { background: transparent; border: 0; }
.sog-pilot .pilot-cart ul { list-style: none; margin: 0; }
.sog-pilot .pilot-cart footer .pilot-primary { font-weight: 700; }
.sog-pilot .pilot-purchase p { margin-bottom: .35rem; }
.sog-pilot .pilot-card-body p { margin-bottom: .65rem; }
#saved [data-saved-list] .result { display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
#search [data-search-status] { margin-block: .65rem; font-size: .8rem; }
#search #results { max-height: 60vh; overflow: auto; }


/* Guide header typography and measures from design lab 74a9da9. */
.sog-legacy.sog-reference-guide { max-width: 1060px; padding: 2.25rem 1.25rem 5rem; }
.sog-reference-guide > article { max-width: 44rem; margin-inline: 0; }
.sog-reference-guide > article > header h1 {
  font-size: clamp(1.95rem, 3.2vw, 2.75rem);
  font-weight: 450;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.sog-reference-guide .deck {
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.62;
  margin-bottom: 1.5rem;
}
.sog-reference-guide .byline {
  gap: .85rem 1.25rem;
  padding-block: .9rem;
  border-block: 1px solid #e3e1db;
}
.sog-reference-guide .byline [data-save] { margin-inline-start: auto; }
.sog-reference-guide .editorial-hero { margin-block-start: 1.85rem; }
.sog-reference-guide .body .item-img img { aspect-ratio: auto; background: transparent; }
