/*
 * aid-urn.com -- the one stylesheet of the site.
 * Plain CSS: no build step, no external fonts, no scripts, no third-party requests. Every byte is served from this folder
 * (the Content-Security-Policy in nginx/locations.conf only allows style-src 'self', so do not add style="" attributes or <style> blocks to the pages).
 * Light theme ONLY, on purpose (color-scheme below stops browsers from auto-darkening the page).
 */

:root {
  color-scheme: light;

  --color-page-background: #f5f8fd;
  --color-card-surface: #ffffff;
  --color-text-primary: #111c33;
  --color-text-secondary: #46546e;
  --color-border-hairline: #d9e2f1;
  --color-brand-blue: #2b50d6;
  --color-brand-blue-darker: #1d3aa6;
  --color-brand-blue-tint: #e9efff;
  --color-status-live-text: #0a6b5c;
  --color-status-live-tint: #dff5ef;
  --color-status-waiting-text: #8a4a00;
  --color-status-waiting-tint: #fff1d9;
  --color-code-tint: #edf2fb;

  --radius-card: 16px;
  --shadow-card: 0 1px 2px rgba(17, 28, 51, 0.06), 0 10px 30px rgba(17, 28, 51, 0.07);
  --page-content-max-width: 1120px;

  --font-family-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-code: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-page-background);
  /* two soft colour washes in the top corners; everything else is flat so text stays easy to read */
  background-image:
    radial-gradient(900px 480px at 92% -8%, #dfe9ff 0%, rgba(223, 233, 255, 0) 70%),
    radial-gradient(760px 420px at -6% 4%, #e1f5ee 0%, rgba(225, 245, 238, 0) 70%);
  background-repeat: no-repeat;
}

a { color: var(--color-brand-blue); text-underline-offset: 3px; }
a:hover { color: var(--color-brand-blue-darker); }
/* Also the two scrollable regions (the table wrapper and the code block), which carry tabindex="0" so that keyboard users can scroll them. */
a:focus-visible, .button_link:focus-visible, .table_horizontal_scroll_wrapper:focus-visible, .command_example_block:focus-visible {
  outline: 3px solid #f0a000;
  outline-offset: 3px;
  border-radius: 6px;
}

code, pre { font-family: var(--font-family-code); }
/* Inline code never breaks across lines by default: a line break after the hyphen of a host name ("rdap.aid-" / "urn.com") reads like two different names.
   Only the long values that cannot fit a narrow column otherwise (a whole urn:aid name, a whole URL) get class code_may_wrap. */
code { font-size: 0.9em; background: var(--color-code-tint); padding: 0.12em 0.34em; border-radius: 6px; white-space: nowrap; }
.code_may_wrap { white-space: normal; overflow-wrap: anywhere; }
/* a host name inside a value that may wrap elsewhere (after the slashes, at the hyphens of the name) */
.hostname_never_split { white-space: nowrap; }
/* inside a code block the block itself carries the tint and the padding */
pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; white-space: pre; }

.page_width_container { max-width: var(--page-content-max-width); margin: 0 auto; padding: 0 24px; }

.skip_to_main_content_link {
  position: absolute; left: 12px; top: -64px; z-index: 10;
  background: var(--color-brand-blue); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip_to_main_content_link:focus { top: 12px; color: #fff; }

/* ---------- header ---------- */
.site_header_bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 8px; flex-wrap: wrap; }
.site_brand_link { display: inline-flex; align-items: center; gap: 12px; color: var(--color-text-primary); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; }
.site_brand_link:hover { color: var(--color-text-primary); }
.site_brand_link img { width: 36px; height: 36px; display: block; }
.site_navigation_list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site_navigation_list a { display: inline-block; padding: 8px 14px; border-radius: 999px; color: var(--color-text-secondary); text-decoration: none; font-weight: 650; font-size: 0.95rem; }
.site_navigation_list a:hover { background: var(--color-brand-blue-tint); color: var(--color-brand-blue-darker); }

/* ---------- hero ---------- */
.hero_section { padding: 44px 0 56px; }
.hero_layout_grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 48px; align-items: center; }
.hero_kicker_pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--color-brand-blue-tint); color: var(--color-brand-blue-darker); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; }
.hero_section h1 { font-size: clamp(2.1rem, 4.6vw, 3.45rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 18px 0 18px; text-wrap: balance; }
.hero_headline_highlight { color: var(--color-brand-blue); }
.hero_lead_paragraph { font-size: 1.2rem; color: var(--color-text-secondary); max-width: 40rem; margin: 0 0 28px; }
.hero_button_row { display: flex; flex-wrap: wrap; gap: 12px; }

.button_link {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  font-weight: 700; text-decoration: none; background: var(--color-card-surface); color: var(--color-text-primary);
  border: 1px solid var(--color-border-hairline); box-shadow: 0 1px 2px rgba(17, 28, 51, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.button_link:hover { border-color: #b9c8e4; background: #f8faff; color: var(--color-text-primary); transform: translateY(-1px); }
.button_link_primary { background: var(--color-brand-blue); border-color: var(--color-brand-blue); color: #fff; }
.button_link_primary:hover { background: var(--color-brand-blue-darker); border-color: var(--color-brand-blue-darker); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button_link { transition: none; }
  .button_link:hover { transform: none; }
}

/* ---------- the live example card in the hero ---------- */
.example_lookup_card { background: var(--color-card-surface); border: 1px solid var(--color-border-hairline); border-radius: 20px; box-shadow: var(--shadow-card); padding: 26px; }
.example_lookup_card h2 { margin: 0 0 16px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--color-text-secondary); }
.example_field_label { margin: 14px 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--color-text-secondary); }
.example_value_chip { margin: 0; padding: 12px 14px; background: var(--color-code-tint); border: 1px solid var(--color-border-hairline); border-radius: 12px; font-family: var(--font-family-code); font-size: 0.88rem; overflow-wrap: anywhere; }
.example_rewrite_note { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--color-brand-blue); color: var(--color-text-secondary); font-size: 0.95rem; }
.example_lookup_card .button_link { margin-top: 20px; }

/* ---------- sections ---------- */
.content_section { padding: 56px 0; }
.content_section_tinted { background: rgba(255, 255, 255, 0.7); border-top: 1px solid var(--color-border-hairline); border-bottom: 1px solid var(--color-border-hairline); }
.content_section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; font-weight: 780; }
.section_intro_paragraph { color: var(--color-text-secondary); max-width: 46rem; margin: 0 0 30px; }

.resolution_step_list { counter-reset: resolution_step_number; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.resolution_step_card { counter-increment: resolution_step_number; background: var(--color-card-surface); border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); padding: 22px 20px 22px; box-shadow: var(--shadow-card); }
.resolution_step_card::before {
  content: counter(resolution_step_number); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--color-brand-blue); color: #fff; font-weight: 800;
}
.resolution_step_card h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.3; }
.resolution_step_card p { margin: 0; color: var(--color-text-secondary); font-size: 0.97rem; }

.status_card_list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.status_card { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 8px 22px; align-items: start; background: var(--color-card-surface); border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); padding: 18px 22px; box-shadow: var(--shadow-card); }
.status_card h3 { margin: 0; font-size: 1.02rem; }
.status_card p { margin: 6px 0 0; color: var(--color-text-secondary); font-size: 0.97rem; }
.status_badge { display: inline-block; margin-bottom: 6px; padding: 3px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.status_badge_live { background: var(--color-status-live-tint); color: var(--color-status-live-text); }
.status_badge_waiting { background: var(--color-status-waiting-tint); color: var(--color-status-waiting-text); }

.table_horizontal_scroll_wrapper { overflow-x: auto; border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); background: var(--color-card-surface); box-shadow: var(--shadow-card); }
.endpoint_table { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 36rem; }
.endpoint_table th, .endpoint_table td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--color-border-hairline); }
.endpoint_table thead th { background: #f1f5fc; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-text-secondary); }
.endpoint_table tbody tr:last-child th, .endpoint_table tbody tr:last-child td { border-bottom: 0; }
.endpoint_table tbody th { font-weight: 700; white-space: nowrap; }

.command_example_heading { margin: 30px 0 10px; font-size: 1.05rem; }
.command_example_block { margin: 0; padding: 18px 20px; background: var(--color-code-tint); border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); overflow-x: auto; font-size: 0.88rem; line-height: 1.7; }

/* ---------- footer ---------- */
.site_footer { padding: 36px 0 52px; color: var(--color-text-secondary); font-size: 0.93rem; }
.site_footer p { margin: 0 0 10px; max-width: 52rem; }
.site_footer_link_row { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; }

/* ---------- the 404 page ---------- */
.not_found_panel { max-width: 40rem; margin: 70px auto 90px; text-align: center; }
.not_found_panel h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin: 0 0 12px; }
.not_found_panel p { color: var(--color-text-secondary); }

/* ---------- narrow screens ---------- */
@media (max-width: 980px) {
  .resolution_step_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero_layout_grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero_section { padding-top: 24px; }
  .status_card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .page_width_container { padding: 0 18px; }
  .resolution_step_list { grid-template-columns: minmax(0, 1fr); }
  .content_section { padding: 40px 0; }
  .example_lookup_card { padding: 20px; }
}
