/* =========================================================================
   Group 6 family stylesheet — hubs: Start Here, Affiliate Marketing, Tools, Reviews, Blog, About, Contact
   Prefix hub-. Page-only rules live in assets/css/pages/<STEM>.css. Shared components come from site.css.
   1 wide container · 2 photo hero (title, feature row, right-hand card, note) · 3 main + sidebar grid
   4 section heads · 5 category cards · 6 tool cards · 7 sidebar lead box + cover · 8 sidebar link lists
   9 resource / post helpers · 10 responsive
   ========================================================================= */

/* ---------- 1. Wide container (the designs run edge to edge at ~93% of the viewport) ---------- */
.hub-wide { width: min(100% - 2 * var(--gutter), 93.4vw, 1480px); margin-inline: auto; }

/* ---------- 2. Photo hero ---------- */
.hub-hero { --hero-pos: 70% 50%; --hero-copy: 640px; }
.hub-hero::before { --hero-fade: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 30%, rgba(255,255,255,.55) 46%, rgba(255,255,255,0) 60%); }
.hub-hero .hero__inner { padding-block: .9rem 1rem; }
.hub-hero .breadcrumb { font-size: .95rem; margin-bottom: .35rem; }
.hub-hero .hero__title { font-size: var(--hub-h1, 2.95rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: .22em; color: var(--ink); }
.hub-hero .hero__lead { font-size: max(var(--hub-lead, 1.08rem), 16px) /* rt-1019 */; line-height: 1.38; color: #14223a; max-width: var(--hub-lead-w, 38rem); }
.hub-hero .eyebrow { font-size: .82rem; letter-spacing: .08em; margin-bottom: .35rem; }
/* Feature row: coloured icon circle + bold label + small line (four across) */
.hub-feats { display: flex; flex-wrap: wrap; gap: .7rem 1.35rem; margin: 1.05rem 0 0; padding: 0; list-style: none; }
.hub-feats li { display: flex; align-items: center; gap: .5rem; font-size: max(.74rem, 16px) /* rt-1019 */; line-height: 1.3; color: #3e4b62; }
.hub-feats strong { display: block; color: var(--ink); font-size: .76rem; font-weight: 600; }
.hub-feats .ib { --s: 2.2rem; }
.hub-feats--plain strong { font-weight: 500; font-size: .78rem; }
/* Right-hand hero card (white, rounded, soft shadow) */
.hub-hero-card { width: var(--card-w, 15rem); padding: 1.05rem 1.15rem; background: rgba(255,255,255,.96); border-radius: var(--radius-lg); box-shadow: 0 12px 34px rgba(13, 31, 60, .14); }
.hub-hero-card h2 { font-size: 1.05rem; margin: 0 0 .65rem; letter-spacing: -.01em; }
.hub-hero-card .checklist { gap: .55rem; }
.hub-hero-card .checklist li { font-size: max(.74rem, 16px) /* rt-1019 */; padding-left: 1.55rem; color: #23314a; }
.hub-hero-card .checklist li::before { width: 1.05rem; height: 1.05rem; top: -.02em; }
/* Handwritten note from the design, as HTML */
.hub-hero .hero__note { font-size: 1.32rem; line-height: 1.12; }

/* ---------- 3. Main column + sidebar ---------- */
.hub-main { display: grid; grid-template-columns: minmax(0, 1fr) var(--hub-aside, 25.5rem); gap: 1rem var(--hub-gap, 1.5rem); align-items: start; }
.hub-main > * { min-width: 0; }
.hub-aside { display: grid; gap: .9rem; }
.hub-block + .hub-block { margin-top: 1.25rem; }

/* ---------- 4. Section heads ---------- */
.hub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .3rem 1.5rem; margin-bottom: .7rem; }
.hub-head h2 { margin: 0; font-size: var(--hub-h2, 1.3rem); letter-spacing: -.025em; }
.hub-head p { margin: .15rem 0 0; font-size: max(.82rem, 16px) /* rt-1019 */; color: #4a566c; }
.hub-head .link-arrow { font-size: .8rem; font-weight: 500; margin-bottom: .1rem; }

/* ---------- 5. Category cards (icon square + title + text + count link) ---------- */
.hub-cats { list-style: none; margin: 0; padding: 0; }
.hub-cat { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem .5rem .8rem .85rem; border-radius: var(--radius); }
.hub-cat h3 { font-size: .85rem; margin: .1rem 0 .2rem; letter-spacing: -.005em; }
.hub-cat p { font-size: max(.72rem, 16px) /* rt-1019 */; line-height: 1.36; color: #4a566c; margin: 0 0 .45rem; }
.hub-cat .link-arrow { font-size: .76rem; }
.hub-cat .ib { --s: 2.6rem; border-radius: 8px; }
.hub-cat--soft { background: #f3f6fa; border: 1px solid #eaeff5; }
.hub-cat--line { background: #fff; border: 1px solid #e3e9f1; box-shadow: var(--shadow-xs); }

/* ---------- 6. Tool cards (badge, mark, name, rating, short description, link) ---------- */
.hub-tools { list-style: none; margin: 0; padding: 0; }
.hub-tool { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; gap: .1rem .6rem; align-items: center; align-content: start; padding: .75rem .7rem .7rem; }
.hub-tool .badge { grid-column: 1 / -1; justify-self: start; margin-bottom: .35rem; font-size: .6rem; padding: .16rem .38rem; }
.hub-tool .tool-mark { --s: 3rem; grid-row: span 3; align-self: center; }
.hub-tool h3 { margin: 0; font-size: .9rem; }
.hub-tool .rating { font-size: .74rem; gap: .1rem .3rem; }
.hub-tool .stars .icon { width: .82rem; height: .82rem; }
.hub-tool .tool-card__sub { font-size: .66rem; line-height: 1.3; color: #4a566c; }
.hub-tool .link-arrow { grid-column: 1 / -1; grid-row: 5; justify-self: center; margin-top: .55rem; font-size: .76rem; }

/* ---------- 7. Sidebar lead box (green gradient, optional cover mockup) ---------- */
.hub-lead { position: relative; overflow: visible; border-radius: var(--radius-lg); padding: 1.1rem 1.15rem 1rem; }
.hub-lead .eyebrow { font-size: .7rem; margin-bottom: .3rem; }
.hub-lead .lead-box__title { font-size: var(--lead-title, 1.36rem); line-height: 1.12; margin-bottom: .45rem; }
.hub-lead .lead-box__text { font-size: max(.8rem, 16px) /* rt-1019 */; line-height: 1.45; color: #3e4b62; margin-bottom: .75rem; }
.hub-lead .form-inline input { min-height: 2.65rem; font-size: .8rem; background: #fff; }
.hub-lead .form-inline .btn { min-height: 2.65rem; font-size: .8rem; padding-inline: .9rem; }
.hub-lead .ticks { margin-top: .6rem; gap: .35rem 1.1rem; font-size: .74rem; color: #3e4b62; }
.hub-lead .ticks .icon { color: var(--green-600); }
.hub-lead .form-fine { font-size: max(.7rem, 14px) /* rt-1019 */; }
/* Cover mockup pinned to the box's top-right corner */
.hub-cover { position: absolute; right: var(--cover-r, -.6rem); top: var(--cover-t, -.5rem); pointer-events: none; }
.hub-cover .ebook { --w: var(--cover-w, 9.5rem); transform: perspective(900px) rotateY(-14deg) rotate(4deg); box-shadow: 12px 14px 26px rgba(13, 31, 60, .3), inset 5px 0 0 rgba(255,255,255,.18); }
.hub-cover .ebook__title { color: var(--ink); font-size: calc(var(--cover-w, 9.5rem) * .12); margin-top: .35rem; }
.hub-cover .ebook__brand { font-size: .38rem; margin-top: .55rem; }
.hub-lead--cover .hub-lead__copy { padding-right: var(--cover-space, 9.5rem); }

/* ---------- 8. Sidebar link lists ("Popular topics", "Popular comparisons") ---------- */
.hub-links { background: var(--bg-tint); border: 1px solid #e2eaf5; border-radius: var(--radius-lg); padding: 1rem 1.15rem .7rem; }
.hub-links__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.hub-links h2 { font-size: 1.15rem; margin: 0; }
.hub-links__head .link-arrow { font-size: .74rem; font-weight: 500; white-space: nowrap; }
.hub-links .link-list li { border-bottom-color: #dfe7f2; }
.hub-links .link-list a { padding: .44rem 0; font-size: .82rem; gap: .65rem; }
.hub-links .link-list a > .icon:first-child { color: #7a8599; width: 1.05rem; height: 1.05rem; }
.hub-links .link-list a > .icon:last-child { color: var(--blue-600); }

/* ---------- 9. Helpers ---------- */
.hub-fine { margin: .55rem 0 0; font-size: max(.7rem, 14px) /* rt-1019 */; line-height: 1.4; color: #4a566c; }
.hub-fine a { color: inherit; }
.hub-mt { margin-top: var(--mt, 1.25rem); }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1100px) {
  .hub-main { grid-template-columns: minmax(0, 1fr); }
  .hub-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hub-hero-card { width: 100%; }
}
@media (max-width: 960px) {
  .hub-hero .hero__inner { gap: 1rem; }
}
@media (max-width: 760px) {
  .hub-hero { --hero-mobile-h: 190px; }
  .hub-hero .hero__title { font-size: clamp(2rem, 1.4rem + 3vw, 2.4rem); }
  .hub-hero .hero__lead { font-size: max(1rem, 16px) /* rt-1019 */; }
  .hub-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .hub-feats li { font-size: max(.8rem, 16px) /* rt-1019 */; }
  .hub-feats strong { font-size: .84rem; }
  .hub-aside { grid-template-columns: minmax(0, 1fr); }
  .hub-head p, .hub-cat p { font-size: max(.88rem, 16px) /* rt-1019 */; }
  .hub-cat h3 { font-size: .98rem; }
  .hub-cat .link-arrow, .hub-tool .link-arrow { font-size: .88rem; }
  .hub-tool .tool-card__sub { font-size: .82rem; }
  .hub-links .link-list a { font-size: .92rem; }
  .hub-lead .lead-box__text, .hub-lead .ticks, .hub-lead .form-fine { font-size: max(.86rem, 14px) /* rt-1019 */; }
  .hub-lead .form-inline input, .hub-lead .form-inline .btn { font-size: .95rem; }
  .hub-hero-card .checklist li { font-size: max(.9rem, 16px) /* rt-1019 */; }
}
@media (max-width: 420px) {
  .hub-feats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hub-cats.cols-6 > .hub-cat { flex-direction: column; gap: .5rem; }
}
