/* Secondary content pages: integrations, models. */
.page-hero {
  max-width: 820px;
  padding: 72px 0 24px;
}

.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.page-hero p {
  margin: 20px 0 0;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.68;
}

.page-section {
  padding: 56px 0 8px;
}

.page-section .section-heading {
  margin-bottom: 28px;
}

.page-section .section-heading p {
  max-width: 760px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat-grid.cat-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(20 45 64 / 0.04);
}

.cat-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
}

.cat-card p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cat-card ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.cat-card li {
  position: relative;
  padding-left: 20px;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cat-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

.cat-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--pale);
  color: var(--blue);
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.02em;
}

.tag.tag-muted {
  background: #f1f3f5;
  color: #6d7f8c;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(20 45 64 / 0.04);
}

.compat-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compat-table th,
.compat-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--soft);
  line-height: 1.5;
}

.compat-table th {
  background: #f6f9fb;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compat-table tr:last-child td {
  border-bottom: 0;
}

.compat-table td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.note-list {
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.note-list li {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.note-list strong {
  color: var(--ink);
}

.page-cta {
  margin-top: 56px;
}

@media (max-width: 980px) {
  .cat-grid,
  .cat-grid.cat-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding: 44px 0 12px;
  }

  .cat-grid,
  .cat-grid.cat-grid-two {
    grid-template-columns: 1fr;
  }

  .compat-table td:first-child {
    white-space: normal;
  }
}

/* Provider blocks on the models page. */
.provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 900px;
}

.provider-rows > div {
  grid-template-columns: 92px 1fr;
}

.provider-card {
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(20 45 64 / 0.04);
}

.provider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.provider-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
}

.provider-head .tag-row {
  margin: 0;
  padding: 0;
}

.provider-rows {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.provider-rows > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
}

.provider-rows dt {
  color: #6d7f8c;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
}

.provider-rows dd {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.provider-rows dd ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.provider-rows dd li {
  position: relative;
  padding-left: 18px;
}

.provider-rows dd li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

.model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-list code {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f6f9fb;
  color: var(--ink);
  font: 400 0.76rem "DM Mono", monospace;
}

.provider-footnote {
  max-width: 760px;
  margin: 18px 0 0;
  color: #6d7f8c;
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .provider-rows > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Model list toolbar and pager. */
.model-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.model-search-label {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.model-search {
  flex: 1 1 320px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 0.95rem Inter, system-ui, sans-serif;
}

.model-search:focus {
  outline: none;
  border-color: #8fb7cc;
  box-shadow: 0 0 0 3px rgb(21 79 121 / 0.12);
}

.model-status {
  color: #6d7f8c;
  font-size: 0.82rem;
  white-space: nowrap;
}

.model-table td:first-child {
  white-space: nowrap;
}

.cap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.model-empty {
  text-align: center;
  color: #6d7f8c;
}

.model-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.model-pager .btn {
  min-height: 38px;
  padding: 0 16px;
}

.model-pager .btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.model-page {
  color: var(--soft);
  font-size: 0.85rem;
}

.connect-table td:nth-child(2) .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.table-title {
  margin: 30px 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}

.section-heading + .table-title {
  margin-top: 0;
}

.integration-table td:first-child {
  white-space: normal;
  min-width: 150px;
}

.integration-table a {
  color: var(--blue);
  text-decoration: underline;
}

.integration-request {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.integration-request a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* Legal and contact pages inside the shared header and footer. */
.legal-main {
  padding: 24px 0 56px;
}

.legal-main .container {
  border: 1px solid var(--line);
}
