


/* -- Global Vars -- */

:root {
  --bg-color--body: #f9f9fe;
  --bg-color--input: #fff;
  --bg-color--selection: yellow;
  --bg-color--results: #1a1a2e;

  /* 2x tricks browsers into not shrinking it by default */
  /* Minifetch titles are usually specific sizes, but just in case it ever leaks out of titles */
  --title-font-family: monospace, monospace;

  --title-font-color: #3a393e;
  --default-font-color: #65616E;
  --input-placeholder-font-color: #ccc;
  --results-font-color: #e2e2e2;

  --bg-color--panel: #f3f2fe;
  --border-color--panel: #ccc;

  --bg-color--tag: #c3fad9;
  --tag-font-color: #065826;

  --primary-color: #8400ff;
  --primary-color--active: #6000be;

  --secondary-color: #a374ff;
  --secondary-color--active: #985cff;

  --highlight-color--magenta: #ea00ff;
  --highlight-color--orange: #ff9500;
  --highlight-color--yellow: yellow;
  --highlight-color--green: #4ed513;
  --highlight-color--blue: #00bbff;

  --link-color: var(--primary-color);
  --link-color--active: var(--primary-color--active);
  --link-color--hover: var(--primary-color--active);

  --success-color: var(--highlight-color--blue);
  --fail-color: var(--highlight-color--orange);
  --warn-color: var(--highlight-color--orange);

  --success-color--on-dark-bg: var(--highlight-color--blue);
  --fail-color--on-dark-bg: #ee36ff;
  --warn-color--on-dark-bg: var(--highlight-color--orange);
  --info-color--on-dark-bg: #bbb;

}


/* -- Layout -- */

html {
  scroll-behavior: smooth;
  box-sizing: border-box; /* force el's total width & height to include its padding & border */
  -webkit-text-size-adjust: 100%; /* prevent mobile devices from inflating text, 100% = none */
  text-size-adjust: 100%;
}

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

body {
  z-index: 0;
  margin: 0;
  color: var(--default-font-color);
  background-color: var(--bg-color--body);
  font-family: 'Arial','Helvetica', sans-serif;
  line-height: 1.6;
}

.body-container {
  z-index: 1;
  margin: 0 auto;
  max-width: 1084px; /* 1024px content + 30px+30px padding, with border-box including padding in its max-width */
  padding: 92px 30px 75px 30px; /* topnav ~32px + user-strip 45px + 15px breathing room */
  position: relative;
}


/* -- Resets & Defaults -- */

::selection {
  color: #000;
  background-color: var(--highlight-color--yellow);
}

* {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  text-align: center;
  font-weight: normal;
}

h2, h3 {
  font-size: 0.9375rem; /* 15px */
}

h3 {
  font-size: 0.9375rem; /* 15px */
}

p, div, span, ul, li {
  margin: 0;
  padding: 0;
}

p, ul {
  margin-bottom: 1.5rem;
}

input, checkbox {
  margin: 0;
  padding: 0;
}

button, .button {
  color: #fff;
  font-size: 1rem;
  border: none;
  padding: 15px 30px;
  border-radius: 3px;
  outline: none;
  cursor: pointer !important;
}

button.primary, .button.primary {
  background-color: var(--primary-color);
}

button.primary:hover,
button.primary:focus,
.button.primary:hover,
.button.primary:focus {
  background-color: var(--primary-color--active);
}

button.secondary,
.button.secondary {
  color: var(--primary-color);
  outline: 1px solid var(--primary-color);
  background-color: #fff;
  margin-right: 15px;
}

button.secondary:hover,
button.secondary:focus,
.button.secondary:hover,
.button.secondary:focus  {
  color: var(--primary-color--active);
}

@media (max-width: 480px) { /* Small Phone */
  button, .button {
    padding: 15px 15px;
    font-size: 0.875rem; /* 14px */
  }
}


/* -- Links --  */

a, a:visited {
  color: var(--link-color);
}

a:active, a:hover {
  color: var(--link-color--active);
}

a.button,
a.button:active,
a.button.visited {
  color: #fff;
  text-decoration: none;
}


/* -- Helpers -- */

.font-family-monospace {
  font-family: var(--title-font-family);
}

.font-size-13px {
  font-size: 0.8125rem !important;
}

.font-size-14px {
  font-size: 0.875rem !important;
}

.font-size-15px {
  font-size: 0.9375rem !important;
}

.font-size-16px {
  font-size: 1rem !important;
}

.font-size-20px {
  font-size: 1.25rem !important; /* 20px */
}

.bold {
  font-weight: bold
}

.italic {
  font-style: italic;
}

.center {
  text-align: center;
}

.left {
  text-align: left !important;
}

.inline-block {
  display: inline-block;
}

.code.block {
  width: 100%;
}

.block {
  display: block !important;
}

.dnone {
  display: none;
}

@media (max-width: 768px) { /* iPad Portrait */
  .mobile-dnone {
    display: none;
  }
}

@media (max-width: 480px) { /* Small Phone */
  .sm-mobile-dnone {
    display: none;
  }
}

.no-visibility {
  visibility: hidden;
}

.nowrap {
  white-space: nowrap;
}

.margin-top-0 {
  margin-top: 0 !important;
}

.margin-top-15px {
  margin-top: 15px !important;
}

.margin-top-30px {
  margin-top: 30px !important;
}

.margin-top-45px {
  margin-top: 45px !important;
}

.margin-bottom-0 {
  margin-bottom: 0 !important;
}

.margin-bottom-15px {
  margin-bottom: 15px !important;
}

.margin-bottom-30px {
  margin-bottom: 30px !important;
}

.sr-only { /* Screen Readers Only - hide text from view */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* -- Shared Elements -- */

.topnav {
  z-index: 10;
  position: fixed;
  background-color: var(--bg-color--panel);
  border-bottom: 0.75px solid var(--primary-color);
  top: 0;
  left: 0;
  right: 0px;
  text-align: left;
  min-height: 32px;
}

.footernav {
  margin-top: 9rem;
  margin-bottom: 0;
  padding: 30px 15px 0px 0;
  padding-bottom: 0;
}

@media (max-width: 768px) { /* iPad Portrait */
  .footernav {
    padding: 0;
  }
}

.topnav a, .footernav a {
  font-size: 0.8125rem; /* 13px */
  text-decoration: none;
}

.topnav a {
  display: inline-block;
  line-height: 32px;
  margin-left: 22.5px;
}

.footernav a {
  display: block;
  padding: 5px 0;
}

.topnav .site-title-container,
.footernav .site-title-container {
  font-family: var(--title-font-family);
  font-size: 0.875rem; /* 14px */
  color: var(--title-font-color);
  font-weight: bold;
  position: relative;
}

.topnav .site-title-container .logo-mini {
  position: absolute;
  top: -3px;
  text-decoration: none;
}

.footernav .site-title-container .logo-mini {
  display: block;
}

.topnav .site-title {
  margin-left: 35px;
  font-size: 0.9375rem; /* 15px; */
}

@media (max-width: 768px) { /* iPad Portrait */
  .topnav {
    text-align: center;
  }

  .topnav .site-title-container {
    float: left;
    width: 30px;
    height: 0.875rem;
    margin-left: 0;
  }

  .topnav .site-title-container .logo-mini {
    top: -3px;
  }

  .topnav .api-docs-link {
    margin-left: 0;
  }

  .site-title,
  .topnav .site-owner-faq,
  .topnav .feedback-link {
    display: none;
  }
}

.logo {
  z-index: -100;
  text-align: center;
  width: 100%;
  margin: 0;
}

.title {
  margin-top: -15px;
  margin-bottom: 7.5px;
  color: var(--title-font-color);
  font-size: 1.75rem; /* 28px */
  font-family: var(--title-font-family);
  font-weight: bold;
}

h1.title,
.title.underline {
  text-decoration: underline;
}

.title a {
  text-decoration: none;
  color: var(--title-font-color);
}

.title.subtitle {
  font-size: 1.5rem; /* 24px */
  color: var(--title-font-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 0.9375rem;
  margin: -7.5px auto 0 auto;
}

.section-title {
  font-size: 0.875rem; /* 14px */
  font-weight: bold;
  color: var(--title-font-color);
  text-transform: uppercase;
  letter-spacing: 1.25px;
}

.section-title-clickable {
  color: var(--link-color);
  cursor: pointer;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  user-select: none;
}

.section-title-clickable:before {
  content: "[ + ] ";
  font-weight: normal;
}

.section-collapsed {
  display: none !important;
}

.section-title-clickable.section-open:before {
  content: "[ - ] ";
  font-weight: normal;
}

.panel {
  background-color: var(--bg-color--panel);
  border-bottom: 0.75px solid var(--border-color--panel);
  font-size: 0.9375rem; /* 15px */
  padding: 30px;
  margin: 0 auto 0 auto;
  text-align: left;
}

.panel:last-of-type {
  border-bottom: none;
}

.panel.panel-transparent {
  border-left: none;
  background-color: transparent;
}

.panel.panel-1 {
  border-left: 0.75px solid var(--highlight-color--orange);
}

.panel.panel-2 {
  border-left: 0.75px solid var(--highlight-color--green);
}

.panel.panel-3 {
  border-left: 0.75px solid var(--highlight-color--magenta);
}

.panel.panel-4 {
  border-left: 0.75px solid var(--highlight-color--blue);
}

@media (max-width: 768px) { /* iPad Portrait */
  .panel,
  .panel.panel-1,
  .panel.panel-2,
  .panel.panel-3,
  .panel.panel-4 {
    width: auto; /* fills horizontal space */
    padding: 45px 0;
    border-left: none;
    background-color: transparent;
  }
}

.panel h4 {
  font-family: var(--title-font-family);
  font-size: 1.25rem; /* 20px */
  color: var(--title-font-color);
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.panel h5 {
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding: 2px;
  border-bottom: 0.75px solid var(--border-color--panel);
}

.panel ul,
.panel ol {
  padding-left: 20px;
}

.panel li {
  margin-bottom: 0.5em;
}

.panel .pill {
  margin-right: 0.25rem;
}

code {
  color: #000;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.code {
  background-color: var(--bg-color--body);
  border-left: 3.75px solid #ddd;
  color: #000;
  font-family: monospace;
  font-weight: bold;
  display: inline-block;
  max-width: 100%;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 5px 15px;
  border-radius: 5px;
  overflow-x: auto;
}

.code-on-transparent-bg .code,
.panel-transparent .code {
  background-color: var(--bg-color--panel);
}

@media (max-width: 768px) { /* iPad Portrait */
  .code {
    background-color: var(--bg-color--panel);
  }
}

.code .method {
  color: var(--highlight-color--blue);
  margin-right: 7.5px;
  font-family: 'Arial','Helvetica', sans-serif;
  user-select: none;
}

.code .display-url {
  display: inline-block;
  width: 100px;
  padding: 0;
  margin-right: 7px;
  text-align: right;
  color: #000;
  font-weight: bold;
  font-family: monospace;
  font-size: 11px;
  color: #888;
  user-select: none;
}

.pill {
  display: inline-block;
  border-radius: 15px;
  padding: 2px 5px;
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.625rem; /* 10px */
  color: #fff;
  background-color: var(--highlight-color--magenta);
}

.pill.pill-green {
  background-color: var(--highlight-color--green);
}

.pill.pill-blue {
  background-color: var(--highlight-color--blue);
}

.tag {
  display: inline-block !important;
  font-weight: bold;
  font-size: 0.8125rem;
  color: var(--tag-font-color);
  padding: 5px 15px;
  background-color: var(--bg-color--tag);
  border-radius: 3px;
  border-left: 3.75px solid #afe1c3;
}

.tag--small {
  font-size: 11px;
  padding: 2px 7.5px;
}

.cta {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
  background-color: #fff;
  border-radius: 30px;
  padding: 3.75px 15px;
  white-space: nowrap;
}

.cta:hover {
  color: var(--link-color--active);
  text-decoration: underline;
}

.cta-orange {
  background-color: var(--highlight-color--orange);
  color: #fff !important;
}

.cta-green {
  background-color: var(--highlight-color--green);
  color: #fff !important;
}

.cta-blue {
  background-color: var(--highlight-color--blue);
  color: #fff !important;
}

.cta-magenta {
  background: var(--highlight-color--magenta);
  color: #fff !important;
}

.use-cases {
  display: flex;
  flex-flow: row nowrap;
  gap: 30px;
  padding: 15px 0;
}

.use-case-card {
  flex: 1 1 0;
  position: relative;
  background-color: var(--bg-color--panel);
  border-radius: 8px;
  padding: 30px 22.5px 55px 22.5px;
  text-align: center;
  border: 0.75px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 3.5px 15px rgba(0, 0, 0, 0.2);
}

.use-case-card.card-bg-white {
  background-color: #fff;
}

.use-case-card.card-orange {
  border-color: var(--highlight-color--orange);
}

.use-case-card.card-green {
  border-color: var(--highlight-color--green);
}

.use-case-card.card-blue {
  border-color: var(--highlight-color--blue);
}

.use-case-card.card-magenta {
  border-color: var(--highlight-color--magenta);
}

.use-case-card .card-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.use-case-card .card-title {
  font-family: var(--title-font-family);
  font-weight: bold;
  font-size: 1.25rem; /* 20px */
  color: var(--title-font-color);
  margin-bottom: 8px;
}

.use-case-card .card-description {
  font-size: 0.9375rem; /* 15px */
  color: var(--default-font-color);
  line-height: 1.5;
  margin-top: 22.5px;
  margin-bottom: 30px;
}

@media (max-width: 768px) { /* iPad Portrait */
  .use-cases {
    flex-direction: column;
    gap: 45px;
    padding: 60px 0;
  }

  /* Show Orange card first on iPad and below */
  .card-orange {
    order: -1;
  }

  .use-case-card {
    padding: 30px 45px 60px 45px;
  }

  .use-case-card .card-emoji {
    font-size: 3rem;
  }
}


/* -- User Strip -- */

.user-strip {
  z-index: 9;
  position: fixed;
  top: 32px; /* sits flush below topnav */
  left: 0;
  right: 0;
  height: 45px;
  display: flex;
  align-items: center;
  padding: 0 15px 0 30px;
  gap: 7.5px;
  font-size: 0.8125rem; /* 13px */
  background-color: #f9f9fe;
  box-shadow: 0px 0px 2px 4px rgb(0 0 0 / 4%)
}

.user-strip__spacer {
  flex: 1;
}

/* these "buttons" are <a> tags  */
.user-strip__button,
.user-strip__button:visited {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border: 0.75px solid var(--primary-color);
  background-color: var(--primary-color);
  padding: 2px 10px;
  border-radius: 3px;
  cursor: pointer;
}


/* -- User Strip -- Logged-out promo -- */

.user-strip--promo .user-strip__gift {
  font-size: 1.25rem;
}

.user-strip--promo .user-strip__copy {
  font-weight: bold;
  color: var(--bg-color--results);
}

.user-strip--promo .user-strip__signup:hover {
  background-color: var(--primary-color--active);
  color: #fff;
}

.user-strip--promo .user-strip__signin {
  color: var(--primary-color);
  background-color: #fff;
}

.user-strip--promo .user-strip__signin:hover {
  color: var(--primary-color--active);
  background-color: #fff;
}

/* -- User Strip -- Logged-in, healthy balance -- */

/* user avatar circle */
a.user-strip__avatar,
a.user-strip__avatar:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.625rem; /* 10px */
  font-weight: bold;
  flex-shrink: 0;
  text-decoration: none;
  background-color: var(--primary-color);
  color: #fff;
}

.user-strip__email {
  font-weight: bold;
  background-color: var(--bg-color--panel);
  padding: 2px 10px;
  border-radius: 3px;
  border: 0.75px solid var(--primary-color);
  display: inline-block;
  text-decoration: none;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-strip__bal-amt,
.user-strip__bal-amt:visited {
  font-weight: bold;
  font-size: 0.8125rem;
  color: var(--tag-font-color);
  background-color: var(--bg-color--tag);
  border: 0.75px solid var(--tag-font-color);
  padding: 2px 10px;
  border-radius: 3px;
  text-decoration: none;
}

.user-strip__dashboard,
.user-strip__dashboard:hover,
.user-strip__buybtn,
.user-strip__buybtn {
  text-decoration: none;
  margin-right: 15px;
}

.user-strip--balance .user-strip__signout {
  color: var(--primary-color);
  background-color: #fff;
}


/* -- User Strip -- Logged-in, zero balance user strip -- */

.user-strip__bal-amt--zero,
.user-strip__bal-amt--zero:visited {
  background-color: var(--warn-color);
  color: #fff;
}

.user-strip__buybtn--zero,
.user-strip__buybtn--zero:visited {
  background-color: var(--warn-color);
  color: #fff;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 3px;
  border: 0.75px solid var(--tag-font-color);
}

/* Mobile: collapse .user-strip to just auth actions, hide copy, email and balance */
@media (max-width: 768px) {
  .user-strip {
    padding: 0 10px;
    gap: 6px;
    justify-content: center;
  }
  .user-strip__spacer {
    display: none;
  }
  .user-strip__dashboard {
    margin-left: 7.5px;
  }
  .user-strip__copy,
  .user-strip__bal-label,
  .user-strip__bal-amt,
  .user-strip__zero-msg,
  .user-strip__email,
  .user-strip__gift {
    display: none;
  }
  .user-strip--promo .user-strip__signin,
  .user-strip--promo .user-strip__signup {
    font-size: 0.75rem;
  }
}


/* -- Docs Layout with Sidebar -- */

.body-container.docs-layout {
  margin-left: 265px;
  max-width: initial;
}

.body-container.docs-layout .panel {
  max-width: 828px !important; /* 768px content + 30px+30px padding, border-box now includes padding in max-width */
}

@media (max-width: 768px) { /* iPad Portrait */
  .body-container.docs-layout {
    margin-left: 0px;
  }
}


/*-- Hamburger Menu for Mobile Sidebar --*/

.sidebar {
  position: fixed;
  left: 0;
  top: 50px; /* Below topnav */
  bottom: 0;
  width: 295px;
  background: transparent;
  overflow-y: auto;
  padding: 30px 30px 15px 15px;
  z-index: 5;
}

.sidebar-title {
  font-size: 0.875rem;
  font-family: var(--title-font-family);
  font-weight: bold;
  color: var(--title-font-color);
  margin-bottom: 15px;
  padding: 8px 12px;
  letter-spacing: 0.75px;
}

.sidebar-section-title {
  margin: 7.5px 0;
  padding: 7.5px 15px;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 0;
}

.sidebar-nav .endpoint-link {
  border-left: 2px solid var(--highlight-color--magenta);
  padding-left: 15px;
  margin-left: 15px;
}

.sidebar-nav .endpoint-link.last-endpoint-link {
  margin-bottom: 30px;
}

.sidebar-nav a {
  border-left: 2px solid var(--primary-color);
  display: block;
  position: relative;
  margin-left: 15px;
  padding: 5px 15px;
  font-size: 0.8125rem;
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  background-color: var(--bg-color--panel);
  color: var(--link-color);
}

.sidebar-nav a.active {
  border-left: 2px solid var(--highlight-color--orange);
  color: var(--title-font-color);
  background-color: var(--bg-color--panel);
  padding-left: 15px;
  font-weight: bold;
}

.sidebar-nav a .pill,
.sidebar-nav a.active .pill {
  position: absolute;
  right: 36px;
  top: 5px;
  font-weight: bold;
}

.sidebar-nav a .pill-green,
.sidebar-nav a.active .pill-green {
  right: 3px;
}


/*-- Hamburger Menu for Mobile --*/

.sidebar-toggle {
  display: none;
  position: fixed;
  z-index: 9;
  top: 38px;
  left: 10px;
  background-color: var(--link-color);
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  width: 40px;
  height: 34px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--link-color);
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.visible {
  opacity: 1;
}


/*-- Mobile Sidebar Styles --*/

@media (max-width: 768px) {
  .sidebar {
    z-index: 10;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 87%;
    max-width: 345px;
    top: 0;
    background-color: var(--bg-color--body);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: block;
  }
  .sidebar-close {
    display: block;
  }
  .sidebar-overlay {
    display: none;
  }
  .sidebar-overlay.visible {
    display: block;
  }
  .body-container {
    margin-left: 0;
  }
}


/* -- Homepage -- */

.homepage-hero {
  height: calc(100vh - 92px);
  min-height: 620px;
  position: relative;
}

.url-form {
  z-index: 0;
  margin: 6rem auto;
  position: relative;
  max-width: 900px;
}

@media (max-width: 480px) { /* Small Phone */
  .url-form {
    margin-top: 4rem;
    margin-bottom: 6rem;
  }
}

.validation {
  font-size: 0.875rem; /* 14px */
  color: var(--default-font-color);
  z-index: -10;
  position: absolute;
  top: -2.5rem;
  left: 0;
  right: 0;
  height: 2.5rem;
  line-height: 2.2rem;
  text-align: center;
  transition: top 0.5s;
}

.validation.hidden {
  top: 2rem;
  height: 1rem;
}

.validation .msg-type {
  color: #fff;
  font-size: 0.75rem; /* 12px */
  border-radius: 0.75rem;
  padding: 0.25rem 1rem;
  margin-right: 0.25rem;
  font-weight: bold;
  line-height: 1rem;
}

.validation.neutral .msg-type.neutral {
  display: inline-block;
  background-color: var(--default-font-color);
}

.validation.neutral .msg-type.success,
.validation.neutral .msg-type.fail {
  display: none;
}

.validation.success .msg-type.success {
  display: inline-block;
  background-color: var(--success-color);
}

.validation.success .msg-type.fail,
.validation.success .msg-type.neutral {
  display: none;
}

.validation.fail .msg-type.fail {
  display: inline-block;
  background-color: var(--fail-color);
}

.validation.fail .msg-type.success,
.validation.fail .msg-type.neutral {
  display: none;
}

.url-form input[type="text"] {
  background-color: var(--bg-color--input);
  border: 2px solid var(--secondary-color);
  outline: none;
  padding: 20px 15px;
  width: 100%;
  font-size: 1rem;
  border-radius: 2px;
}

.url-form input[type="text"]::placeholder {
  color: var(--input-placeholder-font-color);
}

.url-form input[type="text"]:active,
input[type="text"]:focus {
  border: 2px solid var(--primary-color);
}

.url-form input::selection {
  background-color: var(--bg-color--selection);
}

.url-form-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.url-form-buttons button {
  width: 9rem;
}

.url-form-buttons button:disabled {
  opacity: 0.25;
}

@media (max-width: 480px) { /* Small Phone */
  .url-form-buttons button {
    width: 8rem;
  }
}

.hero-explore-api-link .emphasis {
  color: var(--highlight-color--magenta);
  font-weight: bold;
}

@media (max-width: 768px) { /* iPad Portrait */
  .hero-explore-api-link {
    margin-top: 60px;
  }
}

.scroll-down-link {
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--default-font-color);
  transition: opacity 0.3s ease;
}

.scroll-down-link:hover {
  opacity: 1;
}

.scroll-down-text {
  color: var(--link-color);
  font-size: 0.9375rem; /* 15px */
}

.scroll-down-arrow {
  width: 10px;
  height: 10px;
  border-right: 0.75px solid var(--link-color);
  border-bottom: 1px solid var(--link-color);
  transform: rotate(45deg);
  animation: bounce 5s infinite;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(6px);
  }
  60% {
    transform: rotate(45deg) translateY(3px);
  }
}

@media (max-width: 768px) {
  .scroll-down-link {
    bottom: 180px;
  }
}


/* -- API Docs -- */

.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.param-table th, .param-table td {
  border: 1px solid var(--border-color--panel);
  padding: 8px;
  text-align: left;
}

.param-table th {
  background-color: var(--bg-color--panel);
}

.status-code {
  font-weight: bold;
  margin-right: 5px;
}

.status-success {
  color: #2e7d32;
}

.status-error {
  color: #c62828;
}


/* -- Dashboard - Logged-out state -- */

.dashboard-layout-45-55 {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-flow: row nowrap;
}

.dashboard-layout-45-55__left {
  width: 50%;
  flex: 1 1 auto;
  height: 100vh;
  min-height: 600px;
}

.dashboard-layout-45-55__left p {
  max-width: 315px;
  font-size: 14px;
  margin-top: 30px;
}

.dashboard-layout-45-55__left p .bold {
  color: var(--title-font-color);
}

.dashboard-layout-45-55__right {
  width: 50%;
  flex: 1 1 auto;
  height: 100vh;
  min-height: 600px;
}

.dashboard-layout-45-55__right .use-case-card {
  margin-top: 165px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.dashboard-layout-45-55__right .use-case-card div {
  text-align: center;
  margin: 60px auto;
}

.dashboard-layout-45-55__right .use-case-card h3 {
  color: var(--title-font-color);
}

@media (max-width: 768px) { /* iPad Portrait */
  .dashboard-layout-45-55 {
    display: block;
    height: auto;
  }

  .dashboard-layout-45-55__left,
  .dashboard-layout-45-55__right {
    flex: none;
    height: auto;
    min-height: 0;
    width: 100%;
  }

  .dashboard-layout-45-55__left .pitch {
    display: none;
  }

  .dashboard-layout-45-55__left p {
    max-width: 100%;
    margin-bottom: 0;
  }

  .dashboard-layout-45-55__right .use-case-card {
    margin-top: 15px;
    padding-top: 30px;
    padding-bottom: 15px;
  }

  .dashboard-layout-45-55__right .use-case-card div {
    margin: 22.5px auto;
  }
}

/* these "buttons" are <a> tags  */
.dashboard__button,
.dashboard__button:visited {
  display: block;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border: 0.75px solid var(--primary-color);
  background-color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8125rem; /* 13px */
  margin-bottom: 7.5px;
}

.dashboard__button:hover {
  color: #fff;
  background-color: var(--primary-color--active);
}

.dashboard__button--signin,
.dashboard__button--signin:hover,
.dashboard__button--signin:visited {
  background-color: #fff;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.dashboard__button--signin:hover {
  color: var(--primary-color--active);
}

/* -- Dashboard - Logged-in state -- */

.dashboard-header {
  margin-top: 3rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-header-links {
  font-size: 0.875rem;
}

.dashboard-header-links a {
  text-decoration: none;
  background-color: #fff;
  color: var(--primary-color);
  font-weight: bold;
  padding: 7.5px 10px;
  border-radius: 3px;
  border: 0.75px solid var(--primary-color);
}

@media (max-width: 768px) {
  .dashboard-header {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  .dashboard-header-links a {
    font-size: 0.75rem;
  }
}

.balance-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.balance-amount {
  font-size: 2rem;
  font-family: var(--title-font-family);
  font-weight: bold;
  color: var(--title-font-color);
}

.balance-label {
  font-size: 0.875rem;
  opacity: 0.6;
}

.package-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.package-option {
  border: 2px solid var(--border-color--panel);
  background-color: var(--bg-color--input);
  color: var(--default-font-color);
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
}

.package-option:hover {
  border-color: var(--primary-color);
}

.package-option.selected {
  border-color: var(--primary-color--active);
  background-color: var(--bg-color--panel);
  font-weight: bold;
  color: #000;
}

.create-key-form {
  border-radius: 3px;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding: 15px;
}

.create-key-form input {
  border-radius: 2px;
  background-color: var(--bg-color--input);
  border: 2px solid var(--secondary-color);
  outline: none;
  padding: 15px;
  width: 240px;
  font-size: 0.875rem;
}

.create-key-form input[type="text"]::placeholder {
  color: var(--input-placeholder-font-color);
}

.create-key-form input input[type="text"]:active,
input[type="text"]:focus {
  border: 2px solid var(--primary-color);
}

.keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.keys-table th {
  text-align: left;
  padding: 8px 12px;
  background-color: var(--bg-color--panel);
  border-bottom: 0.75px solid var(--border-color--panel);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  color: var(--title-font-color);
}

.keys-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color--panel);
  vertical-align: middle;
}

.keys-table tr:last-child td {
  border-bottom: none;
}

.keys-table tr.revoked td {
  opacity: 0.4;
}

.key-prefix {
  font-family: var(--title-font-family);
  font-weight: bold;
  font-size: 0.8125rem;
}

.key-raw-display {
  font-family: var(--title-font-family);
  font-weight: bold;
  font-size: 0.8126rem;
  background-color: var(--highlight-color--yellow);
  padding: 4px;
  word-break: break-all;
  display: block;
  margin-top: 4px;
  color: var(--primary-color);
}

.revoke-btn {
  color: var(--primary-color);
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
}

.revoke-btn:hover {
  opacity: 0.7;
}

.keys-table .dashboard-empty {
  text-align: center;
  padding: 3rem;
  opacity: 0.5;
  font-size: 0.875rem;
}

.dashboard-feedback {
  font-size: 0.8125rem;
  margin-top: 1rem;
  min-height: 1.2rem;
}

.dashboard-feedback.success {
  color: var(--primary-color);
  background-color: var(--highlight-color--yellow);
  padding: 4px;
}

.dashboard-feedback.error {
  color: var(--fail-color);
}

@media (max-width: 600px) {
  .keys-table th:nth-child(3),
  .keys-table td:nth-child(3),
  .keys-table th:nth-child(4),
  .keys-table td:nth-child(4) {
    display: none;
  }

  .balance-amount {
    font-size: 1.5rem;
  }
}


/* -- Result Page -- */

.result-header {
  padding: 7.5px 0 0 0 ;
}
.result-header .pill {
  font-size: 0.75rem;
  padding-left: 10px;
  padding-right: 10px;
}
.result-header a {
  float: right;
  padding-left: 30px;
}
@media (max-width: 768px) {
  .result-header a {
    display: none;
  }
}
.result-summary {
  display: flex;
  flex-direction: row;
  gap: 7.5px;
  align-items: stretch;
  flex-wrap: nowrap;
  padding-bottom: 7.5px;
}
.result-summary .section-title {
  flex-basis: 100%;
}
.result-summary .result-summary-score {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  /* On small screens: chart sits alone on top, score cards share a row underneath. */
  .result-summary {
    flex-wrap: wrap;
    gap: 7.5px;
  }
  /* The chart's wrapper is the first .result-summary-score (the one containing the canvas). */
  .result-summary .result-summary-score:first-child {
    flex-basis: 100%;
  }
  /* Each of the three pass/warn/fail cards: ~1/3 width minus gaps. */
  .result-summary .result-summary-score:not(:first-child) {
    flex: 1 1 calc(33.333% - 7.5px);
    min-width: 0;
    padding: 15px 7.5px 7.5px 7.5px;
    font-size: 1rem;
  }
  /* Shrink the large pass/warn/fail label so 3 cards fit horizontally. */
  .result-summary .pass-warn-fail-label.large-label {
    font-size: 1rem; /* 16px */
    width: auto;
    padding: 3.5px 15px;
  }
  /* Shrink the count below the label. */
  .result-summary .result-score {
    font-size: 1.25rem; /* 20px */
  }
}
.result-summary-score {
  background: var(--bg-color--results);
  color: var(--results-font-color);
  border-radius: 3px;
  padding: 22.5px 15px 15px 15px;
  font-size: 1.5rem; /* 24px */
}
.pass-warn-fail-label {
  background: var(--bg-color--results);
  color: #fff;
  border: 2px solid #eee;
  border-radius: 5px;
  padding: 2px 5px;
  text-transform: uppercase;
  font-size: 0.9375rem; /* 15px; */
  width: 75px;
  display: inline-block;
  text-align: center;
}
.pass-warn-fail-label.large-label {
  display: block;
  width: 112.5px;
  border: none;
  font-size: 1.5rem; /* 24px */
  padding: 3.5px 0;
}
.pass-warn-fail-label.info-label {
  background-color: var(--info-color--on-dark-bg);
}
.pass-warn-fail-label.pass-label {
  background-color: var(--success-color--on-dark-bg);
}
.pass-warn-fail-label.warn-label {
  background-color: var(--warn-color--on-dark-bg);
}
.pass-warn-fail-label.fail-label {
  background-color: var(--fail-color--on-dark-bg);
}
.result-score {
  font-size: 2rem;
  margin-top: 7.5px;
  margin-bottom: 0;
  font-weight: bold;
}
.result-block-container {
  position: relative;
  width: 100%;
  z-index: 10;
}
.result-block-container .button {
  position: absolute;
  right: 30px;
  top: 30px;
  z-index: 20;
}
.result-block {
  background: var(--bg-color--results);
  padding: 30px;
  overflow: auto;
  height: 80vh;
  position: relative;
  resize: vertical; /* in browser: resize handle */
}
.result-block pre {
  overflow-y: auto;
  margin: 0;
  color: var(--results-font-color);
  font-family: var(--title-font-family);
  font-weight: bold;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.result-rows .section-title {
  padding: 15px 0;
}
.result-row {
  position: relative;
  border-bottom: 0.75px solid var(--border-color--panel);
  border-radius: 5px;
}
.result-row:nth-of-type(odd) {
  background-color: var(--bg-color--panel);
}
.result-row.has-drawer,
.result-row.has-drawer .pass-warn-fail-label {
  cursor: pointer;
}
.result-row .row-toggle-indicator--left,
.result-row .row-toggle-indicator--right {
  margin-top: 5px;
  font-size: 0.75rem; /* 12px */
  color: var(--link-color);
  letter-spacing: 0.5px;
  font-weight: bold;
  font-family: initial;
  text-transform: uppercase;
}
.result-row .row-toggle-indicator--left {
  position: absolute;
  top: 0;
  left: 0;
  padding-left: 5px;
}
.result-row .row-toggle-indicator--right {
  float: right;
  padding-right: 5px;
}
.result-row .pass-warn-fail-label {
  margin-left: 37.5px;
}
.result-row-drawer {
  display: none;
  padding: 15px 45px 30px 37.5px;
  border-top: 0.75px dashed var(--border-color--panel);
  margin-top: 7.5px;
  cursor: default;
}
.result-row-drawer.open {
  display: block;
}
.result-row-drawer p {
  font-size: 0.8125rem; /* 13px */
  margin: 3px 0;
  margin-left: 0;
  user-select: all;
}
.result-row-drawer .drawer-explanation {
  font-style: italic;
  border-top: 0.75px solid var(--primary-color);
  margin-top: 15px;
  padding-top: 15px;
}
.result-row-drawer ul {
  padding-top: 15px;
  padding-left: 20px;
  font-size: 0.875rem;
}
.result-row p {
  font-size: 0.875rem; /* 14px */
  margin: 0;
  margin-left: 7.5px;
}
@media (max-width: 768px) {
  .result-row .row-toggle-indicator--right {
    display: none;
  }
  /* On mobile, clip overflow with ellipsis so rows don't wrap under themselves.
     Reserves ~112.5px on the right for the status badge (~75px) and left [+] (~37.5px)
     plus breathing room = 135px. */
  .result-row p {
    display: inline-block;
    max-width: calc(100% - 135px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
  /* Drawer paragraphs are inside a block container and should still wrap
     normally — unset the ellipsis behavior. */
  .result-row-drawer p {
    display: block;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}


/* -- Cookie Consent Banner -- */

.consent-banner {
  z-index: 20;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 15px 30px;
  background-color: var(--bg-color--results);
  color: var(--results-font-color);
  box-shadow: 0px 0px 2px 4px rgb(0 0 0 / 8%);
}

.consent-banner__msg {
  flex: 1;
  margin: 0;
  font-size: 0.8125rem; /* 13px */
}

.consent-banner__msg a,
.consent-banner__msg a:visited {
  color: var(--success-color--on-dark-bg);
}

.consent-banner__actions {
  display: flex;
  align-items: center;
  gap: 7.5px;
  flex-shrink: 0;
}

.consent-banner__decline {
  background: none;
  border: 0.75px solid #444;
  color: var(--results-font-color);
  font-size: 0.8125rem;
  padding: 2px 10px;
  line-height: 1.6;
  font-weight: bold;
}

.consent-banner__decline:hover {
  border-color: var(--results-font-color);
}

.consent-banner__accept {
  font-size: 0.8125rem;
  font-weight: bold;
  padding: 2px 10px;
  line-height: 1.6;
}

@media (max-width: 768px) { /* iPad Portrait */
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px;
  }
  .consent-banner__actions {
    justify-content: flex-end;
  }
}
