/* DiscGolfAPI Shared Styles */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('./fonts/space-grotesk-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1557FF;
  --blue-light: #e8effe;
  --blue-dark: #0e3dcc;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg-soft: #f8fafc;
  --bg-dark: #0d1117;
  --code-bg: #161b22;
  --green: #16a34a;
  --radius: 8px;
  --max: 1120px;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

.dgapi-page { font-family: var(--font-body); color: var(--text); font-size: 16px; line-height: 1.68; }

.dgapi-page h1, .dgapi-page h2, .dgapi-page h3, .dgapi-page h4, .dgapi-page h5, .dgapi-page h6 { font-family: var(--font-heading); }

.dgapi-page a { color: var(--blue); text-decoration: none; }
.dgapi-page a:hover { text-decoration: underline; }

/* SECTION WRAPPERS */
.dgapi-container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }
.dgapi-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.dgapi-section-title { font-size: 40px; font-weight: 800; line-height: 1.15; color: var(--text); }
.dgapi-section-title .blue { color: var(--blue); }
.dgapi-section-sub { font-size: 16px; color: var(--muted); margin-top: 12px; line-height: 1.7; }

/* CODE BLOCKS */
.dgapi-page pre { background: var(--code-bg); color: #e6edf3; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 13px; line-height: 1.7; padding: 20px; border-radius: var(--radius); overflow-x: auto; }
.dgapi-page code { font-family: inherit; }
.dgapi-token-key { color: #79c0ff; }
.dgapi-token-string { color: #a5d6ff; }
.dgapi-token-number { color: #f2cc60; }
.token-property { color: #79c0ff; }
.dgapi-token-comment { color: #8b949e; }
.dgapi-token-keyword { color: #ff7b72; }
.dgapi-token-url { color: #a5d6ff; }
.dgapi-token-param { color: #f2cc60; }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: #dcfce7; color: var(--green); }

/* BUTTONS */
.dgapi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dgapi-btn:hover { transform: translateY(-1px); text-decoration: none; }
.dgapi-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(21, 87, 255, 0.18); }
.dgapi-btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .dgapi-container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .dgapi-section-title { font-size: 28px; }
}


/* index.html */

/* HERO */
.dgapi-hero { padding: 48px 0 64px; position: relative; overflow: hidden; }
.dgapi-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #c8d2e8 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
}
.dgapi-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; }
.dgapi-hero-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: 0.05em; border: 1px solid var(--blue); border-radius: 4px; padding: 3px 10px; margin-bottom: 20px; }
.dgapi-hero h1 { font-size: 52px; font-weight: 800; line-height: 1.1; color: var(--text); margin-bottom: 4px; }
.dgapi-hero h1 span { color: var(--blue); }
.dgapi-hero-sub { font-size: 16px; color: var(--muted); margin: 18px 0 32px; line-height: 1.78; }
.dgapi-hero-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.dgapi-btn-link { font-size: 14px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.dgapi-btn-link:hover { color: var(--blue); text-decoration: none; }
.dgapi-hero-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.dgapi-hero-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.dgapi-hero-badge svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* FEATURES STRIP */
.dgapi-features-strip { background: var(--bg-soft); padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dgapi-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.dgapi-feature-item { text-align: center; }
.dgapi-feature-icon { width: 48px; height: 48px; background: #fff; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.dgapi-feature-icon svg { width: 22px; height: 22px; color: var(--blue); }
.dgapi-feature-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.dgapi-feature-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* EXAMPLE REQUEST */
.dgapi-example-section { padding: 80px 0; }
.dgapi-example-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.dgapi-example-request-line { color: var(--text); margin-bottom: 16px; }
.dgapi-example-request-line .dgapi-method { color: var(--muted); }
.dgapi-example-request-line .dgapi-endpoint { color: var(--blue); }
.dgapi-example-meta { display: flex; gap: 24px; }
.dgapi-example-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dgapi-status-ok { color: var(--green); font-weight: 700; background: #dcfce7; padding: 2px 8px; border-radius: 4px; }

/* BUILT FOR DEVS */
.dgapi-devs-section { background: var(--bg-soft); padding: 80px 0; }
.dgapi-devs-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.dgapi-devs-usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.dgapi-usecase { text-align: center; }
.dgapi-usecase-icon { width: 44px; height: 44px; background: #fff; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.dgapi-usecase-icon svg { width: 20px; height: 20px; color: var(--blue); }
.dgapi-usecase h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.dgapi-usecase p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* CTA BANNER */
.dgapi-cta-banner { background: var(--blue); padding: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 80px auto; max-width: var(--max); }
.dgapi-cta-banner-left { display: flex; align-items: center; gap: 20px; }
.dgapi-cta-banner-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dgapi-cta-banner-icon img { height: 28px; width: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.dgapi-cta-banner h3 { font-size: 20px; font-weight: 800; color: #fff; }
.dgapi-cta-banner p { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.dgapi-btn-white { background: #fff; color: var(--blue); font-weight: 700; white-space: nowrap; }
.dgapi-btn-white:hover { background: #f0f4ff; text-decoration: none; color: var(--blue); }

@media (max-width: 900px) {
  .dgapi-hero-inner, .dgapi-example-inner, .dgapi-devs-inner { grid-template-columns: 1fr; }
  .dgapi-features-grid { grid-template-columns: repeat(2, 1fr); }
  .dgapi-devs-usecases { grid-template-columns: repeat(2, 1fr); }
  .dgapi-cta-banner { flex-direction: column; text-align: center; }
  .dgapi-cta-banner-left { flex-direction: column; }
  .dgapi-hero h1 { font-size: 36px; }
}


/* use-our-data.html */

.dgapi-page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.dgapi-page-hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.dgapi-page-hero p { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.7; }
.dgapi-page-hero .dgapi-quick-start { margin-top: 24px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; display: inline-block; font-size: 14px; color: var(--muted); }
.dgapi-page-hero .dgapi-quick-start strong { color: var(--text); }

.dgapi-examples-section { padding: 64px 0; }
.dgapi-examples-grid { display: flex; flex-direction: column; gap: 32px; }

/* API EXAMPLE CARD */
.dgapi-api-example { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dgapi-api-example-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.dgapi-api-example-header h2 { font-size: 20px; font-weight: 700; }
.dgapi-hero-code-sample,
.dgapi-home-code-sample { align-self: start; }
.dgapi-copy-code-button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.dgapi-copy-code-button:hover { border-color: var(--blue); color: var(--blue); }
.dgapi-copy-code-button.dgapi-copied { border-color: var(--green); color: var(--green); background: #f0fdf4; }
.dgapi-copy-code-button svg { width: 14px; height: 14px; }
.dgapi-api-example-desc { padding: 8px 24px 0; font-size: 14px; color: var(--muted); }
.dgapi-api-example-code-label { padding: 16px 24px 0; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dgapi-api-example pre { margin: 16px 24px 0; border-radius: 8px; background: var(--code-bg); color: #e6edf3; border: 1px solid #30363d; }
.dgapi-api-example-response { margin: 16px 24px; }
.dgapi-api-example-response-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dgapi-api-example-response pre { margin: 0; background: var(--code-bg); color: #e6edf3; border: 1px solid #30363d; }
.dgapi-api-example-response pre .dgapi-token-key { color: #79c0ff; font-weight: 600; }
.dgapi-api-example-response pre .dgapi-token-string { color: #a5d6ff; }
.dgapi-api-example-response pre .dgapi-token-number { color: #f2cc60; }
.dgapi-api-example-note { padding: 12px 24px 20px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dgapi-api-example-note svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; }

/* METHOD TAG */
.dgapi-method-badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-right: 6px; }
.dgapi-method-get { background: #dbeafe; color: #1d4ed8; }
.dgapi-method-post { background: #dcfce7; color: #15803d; }

/* ATTRIBUTION + DATA USAGE */
.dgapi-info-section { padding: 64px 0; background: var(--bg-soft); border-top: 1px solid var(--border); }
.dgapi-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.dgapi-info-block h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.dgapi-info-block p { font-size: 15px; color: var(--muted); line-height: 1.78; margin-bottom: 12px; }
.dgapi-attribution-box { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 16px 20px; font-size: 15px; font-weight: 600; color: var(--text); margin: 16px 0; font-style: italic; }
.dgapi-info-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.dgapi-info-link { font-size: 14px; font-weight: 600; color: var(--blue); }
.dgapi-data-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.dgapi-data-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.dgapi-data-list li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* CTA */
.dgapi-cta-section { padding: 80px 0; }
.dgapi-cta-box { background: var(--blue); border-radius: 12px; padding: 48px; text-align: center; }
.dgapi-cta-box h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.dgapi-cta-box p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 28px; }

@media (max-width: 768px) {
  .dgapi-page-hero h1 { font-size: 32px; }
  .dgapi-info-grid { grid-template-columns: 1fr; }
}


/* licence.html */

.dgapi-legal-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.dgapi-legal-hero .dgapi-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.dgapi-legal-hero .dgapi-breadcrumb a { color: var(--muted); }
.dgapi-legal-hero .dgapi-breadcrumb a:hover { color: var(--blue); }
.dgapi-legal-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.dgapi-legal-hero .dgapi-meta { font-size: 13px; color: var(--muted); }

.dgapi-legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 56px 0 80px; align-items: start; }
.dgapi-legal-toc { position: sticky; top: 80px; }
.dgapi-legal-toc h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.dgapi-legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dgapi-legal-toc ul li a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 5px 10px; display: block; border-radius: 6px; border-left: 2px solid transparent; }
.dgapi-legal-toc ul li a:hover { color: var(--blue); background: var(--blue-light); border-left-color: var(--blue); }
.dgapi-legal-toc ul li a.dgapi-active { color: var(--blue); background: var(--blue-light); border-left-color: var(--blue); font-weight: 600; }

.dgapi-legal-content { max-width: 680px; }
.dgapi-legal-section { margin-bottom: 48px; scroll-margin-top: 80px; }
.dgapi-legal-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.dgapi-legal-section p { font-size: 15px; color: var(--text); line-height: 1.86; margin-bottom: 14px; }
.dgapi-legal-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding-left: 0; }
.dgapi-legal-section ul li { font-size: 15px; color: var(--text); line-height: 1.7; display: flex; align-items: flex-start; gap: 10px; }
.dgapi-legal-section ul li::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 9px; }
.dgapi-legal-section .highlight-box { background: var(--blue-light); border: 1px solid #c7d9ff; border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.dgapi-legal-section .highlight-box p { margin: 0; font-size: 15px; font-weight: 500; color: var(--blue); }
.dgapi-legal-section .dgapi-attribution-example { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; font-style: italic; font-size: 15px; font-weight: 600; color: var(--text); }
.dgapi-legal-section .dgapi-warning-list li::before { background: var(--blue); }
.dgapi-legal-section .dgapi-warning-list li { color: var(--muted); }
.dgapi-contact-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; }
.dgapi-contact-box p { font-size: 15px; color: var(--muted); }
.dgapi-contact-box strong { color: var(--text); font-size: 16px; display: block; margin-bottom: 4px; }

/* CONTACT PAGE */
.dgapi-contact-section { padding: 56px 0 80px; }
.dgapi-contact-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.dgapi-contact-copy h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.dgapi-contact-copy p { color: var(--muted); line-height: 1.78; margin-bottom: 22px; }
.dgapi-contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; padding-left: 0; margin: 0; }
.dgapi-contact-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); line-height: 1.6; }
.dgapi-contact-list li::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 999px; background: var(--blue); flex-shrink: 0; margin-top: 9px; }
.dgapi-contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06); }

/* DOCS PAGE */
.dgapi-docs-content {
  max-width: 820px;
}
.dgapi-docs-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.dgapi-docs-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.dgapi-docs-table th,
.dgapi-docs-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}
.dgapi-docs-table th {
  background: var(--bg-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dgapi-docs-table tr:last-child td {
  border-bottom: 0;
}
.dgapi-docs-table code,
.dgapi-page-hero code,
.dgapi-legal-section code {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 1px 5px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.92em;
}
.dgapi-page pre code,
.dgapi-page-hero pre code,
.dgapi-legal-section pre code {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: inherit;
  line-height: inherit;
}

/* COVERAGE PAGE */
.dgapi-coverage-summary {
  padding: 42px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.dgapi-coverage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dgapi-coverage-stat,
.dgapi-coverage-mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.dgapi-coverage-stat strong,
.dgapi-coverage-mini-card strong {
  display: block;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.dgapi-coverage-stat span,
.dgapi-coverage-mini-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.dgapi-coverage-note {
  color: var(--muted) !important;
  font-size: 13px !important;
  margin-top: 14px;
}
.dgapi-coverage-bars {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.dgapi-coverage-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 8px;
}
.dgapi-coverage-bar-meta strong {
  white-space: nowrap;
}
.dgapi-coverage-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.dgapi-coverage-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.dgapi-coverage-bar-fill-strong {
  background: var(--green);
}
.dgapi-coverage-bar-fill-medium {
  background: var(--blue);
}
.dgapi-coverage-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

/* CHANGELOG PAGE */
.dgapi-changelog-list {
  max-width: 820px;
  padding: 56px 0 80px;
}
.dgapi-changelog-entry {
  border-left: 3px solid var(--blue);
  padding: 0 0 34px 24px;
  margin-bottom: 34px;
}
.dgapi-changelog-entry time {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dgapi-changelog-entry h2 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.dgapi-changelog-entry ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
}
.dgapi-changelog-entry li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .dgapi-legal-layout { grid-template-columns: 1fr; }
  .dgapi-legal-toc { display: none; }
  .dgapi-legal-hero h1 { font-size: 28px; }
  .dgapi-contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .dgapi-contact-form-card { padding: 20px; }
  .dgapi-coverage-stats,
  .dgapi-coverage-mini-grid { grid-template-columns: 1fr; }
}


/* terms.html */

.dgapi-legal-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.dgapi-legal-hero .dgapi-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.dgapi-legal-hero .dgapi-breadcrumb a { color: var(--muted); }
.dgapi-legal-hero .dgapi-breadcrumb a:hover { color: var(--blue); }
.dgapi-legal-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.dgapi-legal-hero .dgapi-meta { font-size: 13px; color: var(--muted); }

.dgapi-legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 56px 0 80px; align-items: start; }
.dgapi-legal-toc { position: sticky; top: 80px; }
.dgapi-legal-toc h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.dgapi-legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dgapi-legal-toc ul li a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 5px 10px; display: block; border-radius: 6px; border-left: 2px solid transparent; }
.dgapi-legal-toc ul li a:hover { color: var(--blue); background: var(--blue-light); border-left-color: var(--blue); }
.dgapi-legal-toc ul li a.dgapi-active { color: var(--blue); background: var(--blue-light); border-left-color: var(--blue); font-weight: 600; }

.dgapi-legal-content { max-width: 680px; }
.dgapi-legal-section { margin-bottom: 48px; scroll-margin-top: 80px; }
.dgapi-legal-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.dgapi-legal-section p { font-size: 15px; color: var(--text); line-height: 1.86; margin-bottom: 14px; }
.dgapi-legal-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding-left: 0; }
.dgapi-legal-section ul li { font-size: 15px; color: var(--text); line-height: 1.7; display: flex; align-items: flex-start; gap: 10px; }
.dgapi-legal-section ul li::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 9px; }
.dgapi-legal-section .dgapi-warning-list li::before { background: var(--blue); }
.dgapi-legal-section .dgapi-warning-list li { color: var(--muted); }
.dgapi-legal-section .dgapi-ref-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 8px; }
.dgapi-contact-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; }
.dgapi-contact-box p { font-size: 15px; color: var(--muted); }
.dgapi-contact-box strong { color: var(--text); font-size: 16px; display: block; margin-bottom: 4px; }

@media (max-width: 768px) {
  .dgapi-legal-layout { grid-template-columns: 1fr; }
  .dgapi-legal-toc { display: none; }
  .dgapi-legal-hero h1 { font-size: 28px; }
}


/* Generated no-inline utility classes */
.dgapi-u-001 { margin-left:auto; margin-right:12px; background:none; border:1px solid #30363d; color:#8b949e; border-radius:6px; padding:4px 12px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; display:flex; align-items:center; gap:6px; transition:all 0.15s; align-self:center; }
.dgapi-u-002 { display:none }
.dgapi-u-003 { margin-top:24px; }
.dgapi-u-004 { max-width:340px; }
.dgapi-u-005 { border-bottom:1px solid #e5e7eb; padding:24px 0 28px; margin-bottom:32px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.dgapi-u-006 { display:block; font-size:14px; font-weight:700; color:#111827; margin-bottom:2px; }
.dgapi-u-007 { font-size:12px; color:#6b7280; }
.dgapi-u-008 { display:flex; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; background:#fff; }
.dgapi-u-009 { width:220px; padding:9px 14px; border:none; font-size:13px; font-family:inherit; outline:none; background:transparent; color:#111827; }
.dgapi-u-010 { padding:9px 18px; background:#1557FF; color:#fff; border:none; font-size:13px; font-weight:600; cursor:pointer; font-family:inherit; white-space:nowrap; }
.dgapi-u-011 { display:flex; align-items:flex-start; gap:8px; margin-top:8px; cursor:pointer; }
.dgapi-u-012 { margin-top:2px; flex-shrink:0; accent-color:#1557FF; }
.dgapi-u-013 { font-size:12px; color:#6b7280; line-height:1.5; }
.dgapi-u-014 { color:#1557FF; }
.dgapi-u-015 { display:none; align-items:center; gap:8px; font-size:13px; color:#16a34a; font-weight:600; }
.dgapi-u-016 { flex-shrink:0; }
.dgapi-u-022 { color:var(--blue); }
.dgapi-u-023 { font-size:13px; color:var(--muted); margin-top:8px; }
.dgapi-u-024 { padding: 56px 0; border-top: 1px solid var(--border); }
.dgapi-u-025 { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.dgapi-u-026 { flex-shrink:0; max-width: 380px; }
.dgapi-u-027 { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--blue); margin-bottom:10px; }
.dgapi-u-028 { font-size:22px; font-weight:800; line-height:1.2; margin-bottom:8px; }
.dgapi-u-029 { font-size:14px; color:var(--muted); line-height:1.6; }
.dgapi-u-030 { flex: 1; max-width: 360px; }
.dgapi-u-031 { display:flex; flex-direction:column; gap:10px; }
.dgapi-u-032 { display:flex; gap:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:#fff; }
.dgapi-u-033 { flex:1; padding:12px 16px; border:none; font-size:14px; font-family:inherit; outline:none; background:transparent; min-width:0; color:var(--text); }
.dgapi-u-034 { padding:12px 20px; background:var(--blue); color:#fff; border:none; font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; white-space:nowrap; }
.dgapi-u-035 { display:flex; align-items:flex-start; gap:8px; cursor:pointer; }
.dgapi-u-036 { display:none; margin-top:14px; align-items:center; gap:8px; font-size:14px; color:var(--green); font-weight:600; }
.dgapi-u-036.dgapi-is-visible { display:flex; }
.dgapi-u-037 { display:flex; gap:0; max-width:480px; margin:0 auto; border-radius:10px; overflow:hidden; background:#fff; border:2px solid rgba(255,255,255,0.6); }
.dgapi-u-038 { flex:1; padding:13px 18px; border:none; background:#fff; font-size:14px; font-family:inherit; color:#111827; outline:none; min-width:0; }
.dgapi-u-039 { padding:13px 22px; background:#1557FF; color:#fff; border:none; font-size:14px; font-weight:700; cursor:pointer; font-family:var(--font-heading), sans-serif; white-space:nowrap; flex-shrink:0; }
.dgapi-u-040 { display:none; margin:18px auto 0; max-width:480px; border:1px solid rgba(134,239,172,0.55); border-radius:10px; background:rgba(22,101,52,0.26); padding:12px 16px; font-size:14px; color:#ecfdf5; font-weight:700; text-align:left; }
.dgapi-u-041 { font-size:12px; color:rgba(255,255,255,0.5); margin-top:12px; }
.dgapi-u-042 { margin-top:20px; }

/* WordPress/Blocksy integration */

.dgapi-page { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: #fff; color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.68; }
.dgapi-page *, .dgapi-page *::before, .dgapi-page *::after { box-sizing: border-box; }
.dgapi-page h1, .dgapi-page h2, .dgapi-page h3, .dgapi-page h4, .dgapi-page h5, .dgapi-page h6, .dgapi-page p { margin-top: 0; }
.dgapi-page p { margin-bottom: 0; }
.dgapi-page img { max-width: 100%; height: auto; }
.dgapi-page svg { display: block; width: 20px !important; height: 20px !important; max-width: none; }
.dgapi-page .dgapi-copy-code-button svg, .dgapi-page .dgapi-ref-link svg { width: 14px !important; height: 14px !important; }
#inline-email-success,
#footer-email-success,
#production-success,
[id^="dgapi-confirmation-"] {
  scroll-margin-top: 120px;
}
#footer-email-success {
  display: none;
}
#footer-email-success.dgapi-is-visible,
.dgapi-site-footer-success.dgapi-is-visible {
  display: flex;
}
.dgapi-page .dgapi-feature-icon svg { width: 22px !important; height: 22px !important; }
.dgapi-page .dgapi-usecase-icon svg { width: 20px !important; height: 20px !important; }
.dgapi-page pre { white-space: pre; }
.dgapi-page .dgapi-hero, .dgapi-page .dgapi-example-section, .dgapi-page .dgapi-devs-section, .dgapi-page .dgapi-examples-section, .dgapi-page .dgapi-info-section, .dgapi-page .dgapi-cta-section { padding-top: 48px; padding-bottom: 56px; }
.dgapi-page .dgapi-page-hero, .dgapi-page .dgapi-legal-hero { padding-top: 42px; }
.dgapi-page .dgapi-features-strip { padding-top: 40px; padding-bottom: 40px; }
.dgapi-page .dgapi-cta-banner { margin-top: 56px; margin-bottom: 56px; }
.dgapi-page .dgapi-hero-badge { align-items: center !important; line-height: 1.2; }
.dgapi-page .dgapi-copy-code-button { align-self: flex-start; line-height: 1; }
.dgapi-page input { box-shadow: none !important; outline: none !important; }
.dgapi-page .dgapi-u-032 input,
.dgapi-page .dgapi-u-037 input,
.dgapi-page .dgapi-u-008 input { border: 0 !important; box-shadow: none !important; background: transparent; }
.dgapi-page .dgapi-u-032,
.dgapi-page .dgapi-u-037,
.dgapi-page .dgapi-u-008 { border: 1px solid var(--border) !important; box-shadow: none !important; }
.dgapi-page .dgapi-u-028, .dgapi-page .dgapi-u-034, .dgapi-page .dgapi-u-006 { border: 0 !important; box-shadow: none !important; }
.dgapi-page .dgapi-btn, .dgapi-page .dgapi-btn:visited, .dgapi-page .dgapi-btn-primary, .dgapi-page .dgapi-btn-primary:visited { color: #fff !important; }
.dgapi-page .dgapi-btn-white, .dgapi-page .dgapi-btn-white:visited { color: var(--blue) !important; }
.dgapi-page .dgapi-btn:hover { color: #fff !important; }
body:has(.dgapi-page) .entry-header { display: none; }
body:has(.dgapi-page) .site-main, body:has(.dgapi-page) .entry-content { margin-top: 0; margin-bottom: 0; }
body:has(.dgapi-page) .entry-content > .dgapi-page:first-child { margin-top: calc(var(--theme-content-spacing, 60px) * -1); }
body:has(.dgapi-page) main#main,
body:has(.dgapi-page) .site-main,
body:has(.dgapi-page) article,
body:has(.dgapi-page) .entry-content {
  padding-top: 0 !important;
}
body:has(.dgapi-page) .ct-container-full[data-vertical-spacing],
body:has(.dgapi-page) [data-vertical-spacing*="top"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body:has(.dgapi-page) .hero-section,
body:has(.dgapi-page) article > .hero-section {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
@media (max-width: 900px) { .dgapi-page .dgapi-hero-inner, .dgapi-page .dgapi-example-inner, .dgapi-page .dgapi-devs-inner { grid-template-columns: 1fr; } .dgapi-page .dgapi-features-grid, .dgapi-page .dgapi-devs-usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dgapi-page .dgapi-cta-banner { flex-direction: column; text-align: center; } }

/* Blocksy header and footer shell */
body:has(.dgapi-page) {
  --theme-font-family: var(--font-body);
  --theme-heading-font-family: var(--font-heading);
  --theme-link-initial-color: var(--text);
  --theme-link-hover-color: var(--blue);
}

body:has(.dgapi-page) #header.ct-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

body.admin-bar:has(.dgapi-page) #header.ct-header {
  top: 32px;
}

body:has(.dgapi-page) #header [data-row],
body:has(.dgapi-page) #header [data-row*="middle"] {
  min-height: 72px;
}

body:has(.dgapi-page) #header .ct-container,
body:has(.dgapi-page) #header .ct-container-fluid,
body:has(.dgapi-page) #footer .ct-container,
body:has(.dgapi-page) #footer .ct-container-fluid {
  max-width: var(--max);
  padding-left: 40px;
  padding-right: 40px;
}

#footer .ct-container,
#footer .ct-container-fluid {
  max-width: var(--max);
  padding-left: 40px;
  padding-right: 40px;
}

body:has(.dgapi-page) #header [data-column] {
  display: flex;
  align-items: center;
}

body:has(.dgapi-page) #header .site-title,
body:has(.dgapi-page) #header .site-title a,
body:has(.dgapi-page) #header [data-id="logo"] .site-title,
body:has(.dgapi-page) #header [data-id="logo"] .site-title a {
  color: var(--text) !important;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

body:has(.dgapi-page) #header .site-logo-container img,
body:has(.dgapi-page) #header [data-id="logo"] img {
  max-height: 34px;
  width: auto;
}

body:has(.dgapi-page) #header .menu,
body:has(.dgapi-page) #footer .menu {
  gap: 4px;
}

#footer .menu {
  gap: 4px;
}

body:has(.dgapi-page) #header .menu > li > a,
body:has(.dgapi-page) #header .menu-item > a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted) !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

body:has(.dgapi-page) #header .menu > li > a:hover,
body:has(.dgapi-page) #header .menu-item > a:hover,
body:has(.dgapi-page) #header .current-menu-item > a,
body:has(.dgapi-page) #header .current_page_item > a {
  background: var(--blue-light);
  color: var(--blue) !important;
}

body:has(.dgapi-page) #header .menu > li:last-child > a,
body:has(.dgapi-page) #header .menu-item:last-child > a {
  background: var(--blue);
  color: #fff !important;
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: 0 10px 20px rgba(21, 87, 255, 0.16);
}

body:has(.dgapi-page) #header .menu > li:last-child > a:hover,
body:has(.dgapi-page) #header .menu-item:last-child > a:hover {
  background: var(--blue-dark);
  color: #fff !important;
}

body:has(.dgapi-page) #header [data-id="search"] a,
body:has(.dgapi-page) #header [data-id="search"] button,
body:has(.dgapi-page) #header .ct-header-search {
  color: var(--text) !important;
}

#footer.ct-footer {
  background: #0d1117;
  border-top: 0;
  color: #9ca3af;
  font-family: var(--font-body);
  margin-top: 0;
}

#footer [data-row] {
  background: #0d1117 !important;
  padding-top: 22px;
  padding-bottom: 22px;
}

#footer [data-row] > .ct-container,
#footer [data-row] > .ct-container-fluid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

#footer [data-row="top"] > .ct-container,
#footer [data-row="top"] > .ct-container-fluid {
  display: block;
}

#footer [data-row="top"] {
  padding-top: 0;
  padding-bottom: 0;
}

#footer [data-row="middle"] {
  padding-top: 12px;
  padding-bottom: 4px;
}

#footer [data-row="middle"] > .ct-container,
#footer [data-row="middle"] > .ct-container-fluid {
  display: flex;
  justify-content: flex-end;
}

#footer [data-column="socials"] {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

#footer [data-column="socials"] .ct-social-box,
#footer [data-column="socials"] [data-icons-type] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#footer [data-column="socials"] a {
  color: #dbeafe !important;
  opacity: 1 !important;
}

#footer [data-column="socials"] a:hover {
  color: #fff;
}

#footer [data-column="widget-area-1"] {
  display: block;
  width: 100%;
}

#footer [data-column="widget-area-1"] .widget-title {
  display: none !important;
}

#footer [data-column="widget-area-1"] > * {
  width: 100%;
}

#footer [data-column="widget-area-1"] .widget,
#footer [data-column="widget-area-1"] .textwidget,
#footer [data-column="widget-area-1"] .custom-html-widget {
  margin: 0;
  width: 100%;
}

#footer .ct-footer-copyright {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

#footer .ct-footer-copyright a {
  color: #fff;
  text-decoration: none;
}

#footer .footer-menu-inline,
#footer .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#footer .menu > li > a,
#footer .menu-item > a {
  color: #cbd5e1 !important;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 9px;
  text-decoration: none;
}

#footer .menu > li > a:hover,
#footer .menu-item > a:hover {
  color: #fff !important;
}

body:has(.dgapi-page) .dgapi-footer,
body:has(.dgapi-page) .dgapi-u-017 {
  display: none !important;
}

.dgapi-site-footer-signup {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #0d1117;
  color: #e5e7eb;
  border-top: 0;
}
.dgapi-site-footer-signup-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 40px 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 520px);
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 0;
}
.dgapi-site-footer-signup-copy { min-width: 220px; }
.dgapi-site-footer-signup strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.dgapi-site-footer-signup span,
.dgapi-site-footer-signup label {
  color: #9ca3af;
  font-size: 12px;
}
.dgapi-site-footer-signup form { display: flex; flex-direction: column; gap: 10px; min-width: 0; width: 100%; max-width: none; }
.dgapi-site-footer-signup-row {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}
.dgapi-site-footer-signup input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  color: #fff;
  padding: 11px 14px;
  box-shadow: none !important;
}
.dgapi-site-footer-signup input[type="checkbox"] { accent-color: var(--blue); }
.dgapi-site-footer-signup button {
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 16px;
  cursor: pointer;
}
.dgapi-site-footer-signup a { color: #93c5fd; }
.dgapi-site-footer-success { display: none; color: #86efac; font-weight: 700; }
.dgapi-site-footer-success.dgapi-is-visible { display: flex; justify-content: flex-end; }

.tdl-ecosystem-block {
  background: #f4f4f1;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  color: #18211d;
  padding: 28px 16px 30px;
  text-align: center;
}
.tdl-ecosystem-label {
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5e655f;
  margin: 0 0 18px;
}
.tdl-ecosystem-links {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.tdl-eco-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 220px;
  max-width: 320px;
  color: inherit;
}
.tdl-eco-item strong {
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
  color: #2c3933;
  transition: color 0.2s ease;
}
.tdl-eco-item span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #3f4742;
  margin-top: 6px;
}
.tdl-eco-item:hover strong,
.tdl-eco-item:focus strong { color: var(--blue); }

@media (max-width: 782px) {
  body.admin-bar:has(.dgapi-page) #header.ct-header {
    top: 46px;
  }
}

@media (max-width: 768px) {
  body:has(.dgapi-page) #header [data-row],
  body:has(.dgapi-page) #header [data-row*="middle"] {
    min-height: 64px;
  }

  body:has(.dgapi-page) #header .ct-container,
  body:has(.dgapi-page) #header .ct-container-fluid,
  #footer .ct-container,
  #footer .ct-container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }

  #footer [data-row] > .ct-container,
  #footer [data-row] > .ct-container-fluid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  #footer [data-row="middle"] > .ct-container,
  #footer [data-row="middle"] > .ct-container-fluid,
  #footer [data-column="socials"],
  #footer [data-column="socials"] .ct-social-box,
  #footer [data-column="socials"] [data-icons-type] {
    justify-content: center;
  }

  #footer .footer-menu-inline,
  #footer .menu {
    justify-content: center;
  }

  .dgapi-site-footer-signup-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    text-align: center;
  }

  .dgapi-site-footer-signup form {
    min-width: 0;
  }

  .tdl-ecosystem-links {
    gap: 22px;
  }

  .tdl-eco-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
