/* Product hub pages and the HTML sitemap (owner QA W14). On top of site-system.css and pages.css. */

/* Hero picture: the app's menu with this hub's features numbered. */
.hb-app { margin: 0; overflow: hidden; border: 1px solid var(--line-d); border-radius: var(--radius); background: rgba(251, 246, 236, .04); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6); }
.hb-app-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-d); background: rgba(251, 246, 236, .05); }
.hb-app-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(251, 246, 236, .25); }
.hb-app-bar i:first-child { background: var(--coral); }
.hb-app-bar span { margin-left: 10px; color: var(--faint-d); font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.hb-app figcaption { padding: 18px 20px 6px; color: var(--lime); font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hb-app ol { display: grid; gap: 2px; margin: 0; padding: 6px 10px 14px; list-style: none; }
.hb-app li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 12px; }
.hb-app li:nth-child(2) { background: rgba(199, 243, 107, .1); }
.hb-app-num { grid-row: span 2; color: var(--lime); font: 500 12px/1.4 var(--mono); }
.hb-app-label { color: var(--ivory); font-weight: 700; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.hb-app-what { color: var(--mute-d); font-size: 13px; line-height: 1.4; }
.hb-app li.is-free .hb-app-label { color: var(--lime); }

/* Features: what it does and where it lives in the app. */
.hb-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hb-feature h3 { font-size: 22px; }
.hb-where { display: grid; gap: 4px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink) !important; font-size: 14.5px !important; }
.hb-where span { color: var(--slate); font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hb-where a { justify-self: start; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.hb-where a:hover, .hb-where a:focus-visible { color: var(--coral); border-color: currentColor; }

/* Link lists: guides of the group, and the other hubs. */
.hb-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hb-links a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.hb-links a:hover, .hb-links a:focus-visible { border-color: var(--ink); transform: translateY(-2px); }
.hb-links b { display: inline-flex; align-items: center; gap: 8px; font-size: 16.5px; line-height: 1.3; }
.hb-links b svg { flex: none; color: var(--coral); }
.hb-links span { color: var(--slate); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.hb-links--hubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* The HTML sitemap. */
.sm-head { padding-bottom: 8px; }
.sm-head .fs-sec-title { margin-bottom: 12px; }
.sm-groups { display: grid; gap: 40px; }
.sm-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 600 26px/1.2 var(--display); letter-spacing: -.02em; }
.sm-group h2 small { color: var(--slate); font: 500 12px/1 var(--mono); letter-spacing: .06em; }
.sm-group ul { columns: 3 260px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.sm-group li { break-inside: avoid; padding: 5px 0; font-size: 15px; line-height: 1.45; }
.sm-group a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.sm-group a:hover, .sm-group a:focus-visible { color: var(--coral); text-decoration: underline; }

@media (max-width: 1080px) {
  .fs-hero-grid > .hb-app { order: 2; margin: 8px 0 32px; }
  .hb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-links--hubs { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hb-features, .hb-links { grid-template-columns: 1fr; }
  .hb-app li:nth-child(n+5) { display: none; }
  .hb-app li { padding: 7px 8px; }
  .sm-group ul { columns: 1; }
}
