/* ============================================================
   Simon G. — product hub page (/simon-g, /en/simon-g)
   Extends the Groma site stylesheet. Reuses its tokens and its
   .section / .kicker / .lead / .grid-3 / .works / .work / .note /
   .btn / .contact-line classes. Adds only what those do not cover:
   the rules list, the plain tables, the plain lists, the role
   cards and the FAQ. Rectangles only — no radii, shadows, gradients.
   ============================================================ */

.hub-hero { padding-bottom: clamp(40px, 6vw, 64px); }
.hub-hero .cta-row { margin-top: 8px; }

/* free-tool cards: four across on wide screens, same frame as .works */
.hub-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .hub-tools { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Seven rules
   ------------------------------------------------------------ */
.hub-rules {
  list-style: none;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.hub-rules > li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.hub-idx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cobalt);
  padding-top: 3px;
}

.hub-rules h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.006em;
  margin-bottom: 8px;
}

.hub-rules p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.hub-rules p + p { margin-top: 10px; }

.hub-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-top: 44px;
  margin-bottom: 20px;
}

.hub-links {
  margin-top: 24px;
  font-size: 14px;
}

.hub-links a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------
   Plain data tables (levels, modules)
   ------------------------------------------------------------ */
.hub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hub-table caption { text-align: left; }

.hub-table thead th {
  background: var(--ivory-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--hairline-2);
}

.hub-table td, .hub-table th[scope="row"] {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  vertical-align: top;
}

.hub-table th[scope="row"] {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.hub-table tbody tr:last-child td,
.hub-table tbody tr:last-child th { border-bottom: none; }

/* ------------------------------------------------------------
   Plain lists (platform additions, what it is not)
   ------------------------------------------------------------ */
.hub-list {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
}

.hub-list li {
  position: relative;
  padding: 16px 0 16px 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
  border-bottom: 1px solid var(--hairline);
}

.hub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  background: var(--cobalt);
}

.hub-list li:last-child { border-bottom: none; }

/* ------------------------------------------------------------
   For whom — role cards
   ------------------------------------------------------------ */
.hub-roles {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--hairline);
  border-right: none;
  border-bottom: none;
}

.hub-role {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 26px 26px 30px;
}

.hub-role h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  margin-bottom: 10px;
}

.hub-role p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.hub-role a {
  font-size: 14px;
  font-weight: 500;
  color: var(--cobalt);
  text-decoration: none;
}

.hub-role a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hub-roles { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.hub-faq {
  margin-top: 36px;
  max-width: var(--measure);
}

.hub-faq h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.hub-faq h3:first-child { margin-top: 0; }

.hub-faq p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* pointer targets */
main a { padding-block: 3px; }
