/* Public homepage geometry, recreated from the observable reference. */
:is(.home-page, .library-page) {
  --site-text: #444;
  --site-heading: #333;
  --site-muted: #666;
  --site-meta: #626262;
  --site-border: #d0d0d0;
  --site-divider: #f0f0f0;
  --site-soft: #fafafa;
  --site-radius: 6px;
  --site-control-radius: 4px;
  background: var(--canvas);
  color: var(--site-text);
  font:
    12.8px/1.65 Verdana,
    "Geneva CE",
    Arial,
    sans-serif;
}
:is(.home-page, .library-page) .container {
  width: 1190px;
  margin-left: auto;
  margin-right: auto;
}
:is(.home-page, .library-page) .global-nav {
  display: flex;
  height: 29px;
  min-height: 29px;
  background: #363636;
  padding: 0 5px;
  border: 0;
  font:
    14px/29px Arial,
    sans-serif;
}
:is(.home-page, .library-page) .global-nav a,
:is(.home-page, .library-page) .global-nav .language {
  color: #ccc;
  font-size: 14px;
  padding: 0 12px;
}
:is(.home-page, .library-page) .global-nav > a {
  letter-spacing: 0;
  font-weight: 400;
}
:is(.home-page, .library-page) .global-nav .language {
  display: inline-block;
}
:is(.home-page, .library-page) .masthead {
  position: relative;
  top: auto;
  height: 95px;
  min-height: 95px;
  padding: 0;
  border: 0;
  gap: 0;
  background: var(--canvas);
}
:is(.home-page, .library-page) .logo {
  width: auto;
  color: var(--green);
  font:
    28px/1.2 "Trebuchet MS",
    Arial,
    sans-serif;
  letter-spacing: 0;
  gap: 5px;
}
:is(.home-page, .library-page) .logo svg,
:is(.home-page, .library-page) .logo img {
  width: 32px;
  height: 32px;
}
:is(.home-page, .library-page) .search-form {
  position: absolute;
  left: 50%;
  width: 472px;
  max-width: none;
  flex: none;
  margin-left: -286px;
}
:is(.home-page, .library-page) .search-input {
  height: 40px;
}
:is(.home-page, .library-page) .search-input input {
  width: 100%;
  height: 40px;
  padding: 0 200px 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #f2f2f2;
  box-shadow: none;
  font:
    14px Arial,
    sans-serif;
}
:is(.home-page, .library-page) .search-input input:focus {
  border-color: #ddd;
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand-soft);
}
:is(.home-page, .library-page) .search-input button {
  top: 4px;
  right: 4px;
  width: 72px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f2f2f2;
  color: var(--green);
  font:
    14px Arial,
    sans-serif;
}
:is(.home-page, .library-page) .search-input button::after {
  content: none;
}
:is(.home-page, .library-page) .hot-keywords {
  display: flex;
  position: absolute;
  right: 80px;
  top: 8px;
  gap: 5px;
}
:is(.home-page, .library-page) .hot-keywords a {
  font:
    12px/23px Arial,
    sans-serif;
  background: #fafafa;
  color: var(--green);
  padding: 0 5px;
  border-radius: 3px;
}
:is(.home-page, .library-page) .quick-links {
  display: flex;
  gap: 28px;
  margin-right: 10px;
}
:is(.home-page, .library-page) .quick-links a {
  display: block;
  width: auto;
  min-height: 0;
  text-align: center;
  color: var(--green);
  line-height: 1.1;
}
:is(.home-page, .library-page) .quick-links i {
  display: block;
  font:
    19px/1.1 Arial,
    sans-serif;
}
:is(.home-page, .library-page) .quick-links .year-countdown i {
  font-style: italic;
  font-size: 16px;
}
:is(.home-page, .library-page) .quick-links span {
  display: block;
  padding-top: 6px;
  font-size: 12px;
  color: #333;
}
:is(.home-page, .library-page) .main-nav {
  display: flex;
  height: 37px;
  min-height: 37px;
  align-items: flex-end;
  padding: 5px 10px 0;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background: #f5f5f5;
  box-shadow: none;
  gap: 0;
  overflow: visible;
}
:is(.home-page, .library-page) .main-nav > a {
  height: 32px;
  min-height: 0;
  padding: 0 14px;
  border-radius: 0;
  color: var(--green);
  font-size: 15px;
  line-height: 31px;
  font-weight: 400;
}
:is(.home-page, .library-page) .main-nav > a[data-nav="mine"] {
  color: #34495e;
}
:is(.home-page, .library-page) .main-nav > a.active {
  position: relative;
  bottom: -1px;
  background: #fff;
  border: 1px solid #ccc;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  color: var(--green);
}
:is(.home-page, .library-page) .main-nav .feedback-link {
  position: absolute;
  right: 10px;
  top: 6px;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  background: #17a7e9;
  color: white;
  border-radius: 4px;
}
:is(.home-page, .library-page) .main-nav .feedback-link::after {
  content: "☏";
  font:
    19px/24px Arial,
    sans-serif;
}
:is(.home-page, .library-page) #page {
  padding: 10px 0 0;
  min-height: calc(100vh - 200px);
}
.home-intro {
  margin: 0 0 16px;
}
.home-intro h1 {
  font-size: 20px;
}
.home-intro p {
  font-size: 13px;
}
.home-overview {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.home-panel {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--surface);
}
.home-panel-tools {
  grid-column: span 7;
}
.home-panel-articles {
  grid-column: span 5;
}
.home-panel-manuscripts,
.home-panel-shop,
.home-panel-websites {
  grid-column: span 12;
}
.home-panel-libraries,
.home-panel-skills,
.home-panel-software {
  grid-column: span 4;
}
.home-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--site-divider);
}
.home-panel-header h2 {
  margin: 0;
  color: var(--site-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}
.home-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--green);
}
.home-more span {
  font-size: 20px;
  line-height: 1;
}
.home-more:hover {
  text-decoration: none;
}
.home-panel-body {
  min-width: 0;
}
.home-empty {
  margin: 0;
  padding: 40px 20px;
  text-align: center;
  color: #56686b;
}
.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.home-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  background: #fafafa;
  min-width: 0;
  min-height: 107px;
  color: var(--green);
}
.home-tool:hover {
  border-color: var(--green);
  background: #f8fff8;
  text-decoration: none;
}
.home-tool-pinned {
  background: #f7fcf9;
  border-color: #c8e6d4;
  color: #333;
}
.home-tool .tool-icon {
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 0;
}
.home-tool-name {
  max-width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.home-article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}
.home-article:last-child {
  border: 0;
}
.home-article:hover,
.home-repository:hover {
  background: #f8f9fa;
  text-decoration: none;
}
.home-article-image {
  display: block;
  flex: none;
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: #f5f5f5;
}
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  font-size: 24px;
}
.home-article-copy {
  flex: 1;
  min-width: 0;
}
.home-article-copy h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
}
.home-article-copy time {
  font-size: 11px;
  color: #56686b;
}
.home-deck-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.home-deck {
  flex: 0 0 222px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  color: #333;
  scroll-snap-align: start;
}
.home-deck:hover {
  text-decoration: none;
}
.home-deck-preview {
  position: relative;
  width: 100%;
  height: 145px;
  background: #f5f5f5;
}
.home-deck-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-deck-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 12px;
  background: #000b;
  color: #fff;
  font-size: 11px;
}
.home-deck h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
  box-sizing: content-box;
  margin: 0;
  padding: 10px 10px 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.home-repository {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}
.home-repository:last-child {
  border: 0;
}
.home-repository-icon {
  display: block;
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 3px;
  background: #f5f5f5;
}
.home-repository-copy {
  flex: 1;
  min-width: 0;
}
.home-repository h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}
.home-repository p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
  color: #666;
  font-size: 12px;
  line-height: 1.3;
}
.home-repository-meta {
  display: flex;
  gap: 10px;
  color: #56686b;
  font-size: 11px;
}
.home-software-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-software {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 130px;
  overflow: hidden;
  padding: 12px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
  text-align: center;
  color: #333;
}
.home-software:hover {
  border-color: var(--green);
  text-decoration: none;
}
.home-software-icon {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.home-software h3 {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
}
.home-software p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  width: 100%;
  font-size: 11px;
  line-height: 1.3;
  color: #666;
  margin: 0 0 8px;
}
.home-software-platform {
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f0f0;
  color: #56686b;
  font-size: 10px;
}
.home-shop-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.home-shop-item {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  color: #333;
}
.home-shop-item:hover {
  text-decoration: none;
}
.home-shop-image {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f5f5f5;
}
.home-shop-item > div {
  padding: 10px;
}
.home-shop-item h3 {
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.home-shop-price {
  font-size: 16px;
  font-weight: 600;
  color: #b52e20;
}
.home-useful-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  line-height: 1.8;
}
.home-useful-links a {
  color: #666;
  font-size: 13px;
}
:is(.home-page, .library-page) .site-footer {
  display: block;
  margin-top: 30px;
  padding: 15px 0 22px;
  border-top: 0;
  text-align: center;
  font-size: 12px;
  color: #626262;
}
:is(.home-page, .library-page) .site-footer nav {
  justify-content: center;
}
:is(.home-page, .library-page) .site-footer a {
  font-size: 12px;
}
:is(.home-page, .library-page) .site-footer p {
  margin: 10px 0;
}
:is(.home-page, .library-page) .back-top {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #626262;
  border-radius: 0;
}
:is(.home-page, .library-page) .mobile-nav a.active {
  background: transparent;
  border-radius: 0;
}
.home-deck h3 {
  padding: 0;
  margin: 10px 10px 18px;
  box-sizing: border-box;
}
.home-actions {
  position: fixed;
  right: 14px;
  bottom: 47px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #626262;
  font-size: 20px;
}
.home-actions a:hover {
  color: var(--green);
  text-decoration: none;
}
:is(.home-page, .library-page) .back-top {
  right: 14px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  font-size: 21px;
}
@media (max-width: 991px) {
  .home-actions {
    bottom: 90px;
  }
  :is(.home-page, .library-page) .back-top {
    bottom: 62px;
  }
}
@media (max-width: 1199px) {
  :is(.home-page, .library-page) .container {
    width: 970px;
  }
  :is(.home-page, .library-page) .main-nav > a {
    padding: 0 10px;
    font-size: 14px;
  }
  :is(.home-page, .library-page) .search-form {
    width: 400px;
    margin-left: -200px;
  }
  :is(.home-page, .library-page) .search-input input {
    padding-right: 190px;
  }
  :is(.home-page, .library-page) .hot-keywords a:last-child {
    display: none;
  }
  :is(.home-page, .library-page) .quick-links {
    gap: 18px;
  }
  .home-panel-tools {
    grid-column: span 8;
  }
  .home-panel-articles {
    grid-column: span 4;
  }
  .home-panel-libraries,
  .home-panel-skills {
    grid-column: span 6;
  }
  .home-panel-software {
    grid-column: span 12;
  }
  .home-software-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  :is(.home-page, .library-page) {
    padding-bottom: 56px;
  }
  :is(.home-page, .library-page) .container {
    width: 750px;
  }
  :is(.home-page, .library-page) .main-nav {
    display: none;
  }
  :is(.home-page, .library-page) .masthead {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 7px 15px;
    margin: 0;
    gap: 16px;
  }
  :is(.home-page, .library-page) .logo {
    width: 22px;
    flex: none;
    font-size: 0;
  }
  :is(.home-page, .library-page) .logo svg,
  :is(.home-page, .library-page) .logo img {
    width: 24px;
    height: 24px;
  }
  :is(.home-page, .library-page) .search-form {
    position: relative;
    left: auto;
    flex: 1;
    width: auto;
    margin: 0;
  }
  :is(.home-page, .library-page) .search-input {
    height: 30px;
  }
  :is(.home-page, .library-page) .search-input input {
    height: 30px;
    padding: 0 10px 0 28px;
    background: #eee;
    border-radius: 2px;
    font-size: 14px;
  }
  :is(.home-page, .library-page) .search-input::before {
    content: "⌕";
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 1;
    color: #626262;
    font-size: 22px;
    line-height: 30px;
  }
  :is(.home-page, .library-page) .search-input button,
  :is(.home-page, .library-page) .hot-keywords {
    display: none;
  }
  :is(.home-page, .library-page) .quick-links {
    gap: 16px;
    margin-right: 0;
  }
  :is(.home-page, .library-page) .quick-links a,
  :is(.home-page, .library-page) .quick-links a:nth-child(2),
  :is(.home-page, .library-page) .quick-links a:last-child {
    display: block;
    min-height: 0;
    width: 30px;
    height: 30px;
  }
  :is(.home-page, .library-page) .quick-links a:first-child,
  :is(.home-page, .library-page) .quick-links span {
    display: none;
  }
  :is(.home-page, .library-page) .quick-links i {
    font-size: 28px;
    line-height: 30px;
  }
  :is(.home-page, .library-page) .mobile-nav {
    display: flex;
    height: 56px;
    min-height: 56px;
    padding: 0 4px;
    background: #fafafa;
    border-top: 1px solid #ddd;
  }
  :is(.home-page, .library-page) .mobile-nav a,
  :is(.home-page, .library-page) .mobile-nav button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    font-size: 11px;
    padding: 5px 0;
    color: #626262;
  }
  :is(.home-page, .library-page) .mobile-nav .active {
    color: var(--green);
  }
  :is(.home-page, .library-page) .mobile-more-menu {
    bottom: 65px;
  }
}
@media (max-width: 767px) {
  :is(.home-page, .library-page) .container {
    width: auto;
    margin-left: 12px;
    margin-right: 12px;
  }
  :is(.home-page, .library-page) .masthead {
    width: 100%;
    margin: 0;
  }
  :is(.home-page, .library-page) .global-nav {
    justify-content: flex-end;
  }
  :is(.home-page, .library-page) .global-nav > a {
    display: none;
  }
  :is(.home-page, .library-page) #page {
    padding-top: 10px;
  }
  .home-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .home-panel {
    grid-column: span 1;
    padding: 12px;
  }
  .home-panel-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .home-panel-header h2 {
    font-size: 15px;
  }
  .home-more {
    font-size: 12px;
  }
  .home-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .home-tool {
    padding: 12px 8px;
    min-height: 96px;
  }
  .home-tool .tool-icon {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px !important;
    margin-bottom: 6px;
  }
  .home-tool-name {
    font-size: 12px;
  }
  .home-article {
    padding: 8px 0;
  }
  .home-article-image {
    width: 60px;
    height: 45px;
  }
  .home-article-copy h3 {
    font-size: 12px;
  }
  .home-deck {
    flex-basis: 182px;
  }
  .home-deck-preview {
    height: 119px;
  }
  .home-repository {
    padding: 8px 0;
  }
  .home-repository-icon {
    width: 24px;
    height: 24px;
  }
  .home-software-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .home-shop-image {
    height: 120px;
  }
  .home-useful-links {
    gap: 10px 14px;
  }
  .home-useful-links a {
    font-size: 12px;
  }
  :is(.home-page, .library-page) .site-footer nav {
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* Reference artwork is a real local image, independent of legacy sprite rules. */
:is(.home-page, .library-page) .home-overview {margin-top:22px}
:is(.home-page, .library-page) .home-tool img.home-tool-image {object-fit:contain;background:transparent;background-size:initial!important;border-radius:6px}

/* English software names stay readable at three cards per row on standard phones. */
@media(min-width:370px) and (max-width:767px){.home-software-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-software{padding:10px 6px}.home-software h3{white-space:normal;overflow-wrap:anywhere;line-height:1.4;min-height:36px}.home-software p{font-size:11px}}
