/* Shared supporting sections for US, UK and Norway calculator hubs. */
.calculator-hub-panel {
  --hub-accent: #076a9c;
  --hub-muted: var(--usc-muted, var(--uk-muted, #5d6c82));
  --hub-border: var(--usc-border, var(--uk-line, #dce8ef));
  padding: 26px;
  border: 1px solid var(--hub-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(33, 62, 82, .06);
  min-width: 0;
}

.calculator-hub-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.country-categories { margin-bottom: 24px; }

.country-category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.country-category-list li { min-width: 0; }

.country-category-list a {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  background: #f5fafc;
  color: var(--hub-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.country-category-list a:hover {
  border-color: var(--hub-accent);
  background: #eef4ff;
  text-decoration: underline;
}

.calculator-hub-panel a:focus-visible {
  outline: 3px solid var(--hub-accent);
  outline-offset: 3px;
}

.calculator-hub-guide { margin-top: 24px; }

.calculator-hub-guide h2:not(:first-child) { margin-top: 26px; }

.calculator-hub-guide p {
  margin: 0 0 14px;
  color: var(--hub-muted);
  font-size: 15px;
  line-height: 1.75;
}

.calculator-hub-guide p:last-child { margin-bottom: 0; }

.calculator-hub-guide a {
  display: inline-block;
  padding-block: 4px;
  color: var(--hub-accent);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .country-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .calculator-hub-panel { padding: 18px; border-radius: 16px; }
  .calculator-hub-panel h2 { font-size: 20px; }
  .country-category-list { grid-template-columns: 1fr; }
}
