/* Goal-based Bitcoin library;
   scoped to preserve shared site navigation and other pages. */
.goal-library {
  --paper:#fffcf7;
  --ink:#29261f;
  --muted:#71695e;
  --orange:#a54415;
  --line:#e5ded2
}
.goal-library * {
  box-sizing:border-box
}
html:has(.goal-library) {
  scroll-padding-top:150px
}
.goal-library {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:15px/1.6 Arial,Helvetica,sans-serif
}
.goal-library a {
  color:inherit;
  text-decoration:none
}
.goal-library input,.goal-library button {
  font:inherit
}
.goal-library button,.goal-library summary {
  cursor:pointer
}
.goal-library a:focus-visible,.goal-library input:focus-visible,.goal-library button:focus-visible,.goal-library summary:focus-visible,.goal-library [tabindex]:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:4px
}
.goal-library [hidden] {
  display:none!important
}
.goal-library .shell {
  width:min(1160px,calc(100% - 80px));
  margin:auto
}
.goal-library .intro {
  padding-top:36px
}
.goal-library .eyebrow {
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--orange);
  margin:0 0 12px
}
.goal-library h1 {
  font:400 clamp(36px,4vw,53px)/1.15 Georgia,serif;
  letter-spacing:-.04em;
  margin:0
}
.goal-library .intro>p:last-child {
  color:var(--muted);
  font-size:14px;
  margin:13px 0 0
}
.goal-library .search {
  display:flex;
  align-items:center;
  gap:25px;
  margin:27px 0 33px;
  border-bottom:1px solid var(--line);
  padding-bottom:28px
}
.goal-library .search label {
  font-size:12px;
  color:var(--muted)
}
.goal-library .search>div {
  display:flex;
  flex:1;
  max-width:580px;
  border:1px solid #b9ab97;
  border-radius:5px;
  background:white
}
.goal-library .search input {
  min-width:0;
  flex:1;
  border:0;
  background:none;
  padding:12px 14px;
  font-size:13px;
  color:var(--ink)
}
.goal-library .search button {
  width:48px;
  flex-shrink:0;
  border:0;
  border-left:1px solid var(--line);
  background:#f3e5d2;
  color:var(--orange);
  font-size:23px;
  border-radius:0 4px 4px 0
}
.goal-library .layout {
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:52px;
  align-items:start
}
.goal-library .categories {
  position:sticky;
  top:24px;
  display:grid;
  gap:8px
}
.goal-library .layout>aside {
  align-self:stretch
}
.goal-library .categories a {
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  border:1px solid transparent;
  border-radius:5px;
  padding:16px 17px;
  background:#f6f2eb;
  transition:background .15s
}
.goal-library .categories a:hover {
  background:#ede4d6
}
.goal-library .categories a[aria-current] {
  background:#f3e2cc;
  border-color:#c79e79;
  box-shadow:inset 3px 0 var(--orange)
}
.goal-library .categories strong {
  display:block;
  font-size:13px;
  font-weight:600;
  line-height:1.4
}
.goal-library .categories small {
  display:block;
  margin-top:5px;
  color:#716658;
  font-size:12px;
  line-height:1.5
}
.goal-library .categories b {
  font-size:12px;
  font-weight:400;
  color:#716658;
  flex-shrink:0
}
.goal-library .categories .all {
  background:none;
  margin-top:3px;
  border-top:1px solid var(--line);
  border-radius:0
}
.goal-library .categories .all[aria-current] {
  background:#f3e2cc
}
.goal-library .results-bar {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  padding-bottom:20px;
  border-bottom:1px solid #cbbbA6
}
.goal-library .results-bar .eyebrow {
  font-size:12px;
  margin-bottom:9px
}
.goal-library .results-bar h2,.goal-library .category>h2 {
  font:400 32px/1.15 Georgia,serif;
  letter-spacing:-.03em;
  margin:0
}
.goal-library .results-bar>p {
  font-size:12px;
  color:var(--muted);
  margin:0 0 3px;
  white-space:nowrap
}
.goal-library .category>h2 {
  margin:25px 0 14px
}
body.enhanced .goal-library .category>h2 {
  display:none
}
body.enhanced.browsing-all .goal-library .category>h2 {
  display:block;
  color:var(--orange);
  font-size:24px;
  margin:30px 0 10px
}
.goal-library .resource {
  padding:19px 0;
  border-bottom:1px solid var(--line)
}
.goal-library .resource-heading {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:20px
}
.goal-library .resource h3 {
  font-size:15px;
  font-weight:600;
  line-height:1.5;
  margin:0 0 6px
}
.goal-library .resource h3 a {
  color:var(--ink)!important
}
.goal-library .resource h3 a:after {
  content:' ↗';
  color:var(--orange);
  font-weight:400;
  font-size:15px
}
.goal-library .resource h3 a:hover {
  text-decoration:underline;
  text-underline-offset:4px
}
.goal-library .resource .type {
  font-size:12px;
  color:var(--muted);
  border:1px solid #ddd3c5;
  border-radius:3px;
  padding:2px 6px;
  flex-shrink:0
}
.goal-library .resource p {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin:0;
  max-width:600px
}
.goal-library .resource p a {
  text-decoration:underline
}
.goal-library .entry-details {
  margin-top:9px
}
.goal-library .entry-details summary {
  font-size:12px;
  color:var(--orange);
  padding:4px 0
}
.goal-library .res-meta {
  list-style:none;
  margin:9px 0 0;
  padding:12px 15px;
  background:#f5efe5;
  font-size:12px
}
.goal-library .res-meta li {
  display:grid;
  grid-template-columns:105px 1fr;
  gap:20px;
  padding:5px 0
}
.goal-library .res-meta span {
  color:var(--muted)
}
.goal-library .res-meta a {
  text-decoration:underline
}
.goal-library .callout-security {
  font-size:12px;
  color:var(--muted);
  padding:16px;
  background:#f5eee4;
  border-left:2px solid var(--orange);
  margin:22px 0
}
.goal-library .callout-security a {
  text-decoration:underline
}
.goal-library #empty {
  padding:35px 0
}
.goal-library #empty h3 {
  font:25px Georgia,serif
}
.goal-library #empty p {
  color:var(--muted);
  font-size:13px
}
.goal-library #clear {
  background:var(--orange);
  color:white;
  padding:12px 16px;
  border:0;
  border-radius:4px
}
@media(max-width:950px) {
  .goal-library .shell {
  width:calc(100% - 48px)
}
.goal-library .layout {
  grid-template-columns:260px minmax(0,1fr);
  gap:28px
}
.goal-library .resource-heading {
  gap:10px
}
.goal-library .resource .type {
  font-size:12px
}

}
@media(max-width:700px) {
  .goal-library .shell {
  width:calc(100% - 40px)
}
.goal-library .intro {
  padding-top:28px
}
.goal-library h1 {
  font-size:37px
}
.goal-library .intro>p:last-child {
  font-size:13px
}
.goal-library .search {
  display:block;
  margin:22px 0 24px;
  padding-bottom:22px
}
.goal-library .search label {
  display:block;
  margin-bottom:7px
}
.goal-library .layout {
  display:block
}
.goal-library .categories {
  position:static;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:30px
}
.goal-library .categories a {
  padding:13px 11px;
  align-items:start;
  min-height:88px;
  gap:7px
}
.goal-library .categories strong {
  font-size:12px
}
.goal-library .categories small {
  font-size:12px
}
.goal-library .categories b {
  font-size:12px
}
.goal-library .categories .all {
  margin:0;
  border:1px solid var(--line);
  border-radius:5px;
  align-items:center
}
.goal-library .results-bar {
  padding-bottom:17px
}
.goal-library .results-bar h2 {
  font-size:28px
}
.goal-library .results-bar>p {
  font-size:12px
}
.goal-library .resource h3 {
  font-size:14px
}
.goal-library .resource p {
  font-size:12px
}
.goal-library .resource-heading {
  flex-wrap:wrap;
  gap:3px
}
.goal-library .resource .type {
  margin-bottom:8px
}
.goal-library .res-meta li {
  grid-template-columns:1fr;
  gap:3px
}

}


.goal-library {
  background:transparent;
  margin-top:0;
  padding-bottom:30px
}
.goal-library .shell {
  padding:0
}
.goal-library .intro .breadcrumb {
  margin-bottom:20px
}
.goal-library .category {
  padding:0;
  background:none
}
.goal-library .categories {
  top:150px
}
.goal-library .res-meta strong {
  color:var(--ink)
}
.goal-library .library-disclosures {
  border-top:1px solid var(--line);
  margin-top:32px;
  font-size:12px;
  color:var(--muted)
}
.goal-library .disclosure {
  background:none;
  border:0;
  padding:16px 0;
  font:inherit;
  color:inherit
}
.goal-library .legacy-anchor {
  display:block;
  scroll-margin-top:150px
}
.goal-library #results {
  scroll-margin-top:150px
}
.goal-library .search input {
  box-shadow:none;
  outline-offset:3px
}
.goal-library .callout-security {
  max-width:100%;
  overflow-wrap:anywhere
}
@media(max-width:700px) {
  .goal-library .categories {
  position:static
}
.goal-library #results {
  scroll-margin-top:120px
}

}
