/*
 * The licence pages' own layout. Colour, type and shape come from the Hub's
 * tokens.css (served beside this file); nothing here adds a colour.
 */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/russo-one-latin.woff2") format("woff2");
}

body {
  min-height: 100vh;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.acct-skip {
  position: absolute;
  left: -9999px;
}
.acct-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: rgb(var(--c-surface));
  padding: 0.5rem 0.75rem;
}

.acct-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--hairline);
  padding: 0.75rem 1rem;
}
.acct-top::after {
  /* The Teal-to-Mint top rule: the one place the brand gradient frames the page. */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--brand-gradient);
}
.acct-logo {
  display: block;
  height: 1.75rem;
  width: auto;
}
.acct-logo-light {
  display: none;
}
[data-theme="light"] .acct-logo-dark {
  display: none;
}
[data-theme="light"] .acct-logo-light {
  display: block;
}

.acct-main {
  width: min(46rem, 100%);
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}
.acct-main > * + * {
  margin-top: 1.5rem;
}
.acct-lead {
  margin-top: 0.5rem;
  color: rgb(var(--c-text-muted));
}

.acct-panel {
  --ch: 14px;
  background: rgb(var(--c-surface));
  padding: 1.5rem;
}
.acct-panel > * + * {
  margin-top: 1rem;
}
.acct-panel h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(var(--c-heading));
}

.acct-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.375rem 1.25rem;
  margin: 0;
}
.acct-facts dt {
  color: rgb(var(--c-text-muted));
}
.acct-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .acct-facts {
    grid-template-columns: 1fr;
  }
  .acct-facts dd {
    margin-bottom: 0.5rem;
  }
}

.acct-key {
  display: block;
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  border: 1px solid rgb(var(--c-text-muted) / var(--field-edge-alpha));
  background: rgb(var(--c-background));
  padding: 0.5rem 0.75rem;
  color: rgb(var(--c-text-main));
  font-family: var(--font-code);
  font-size: 0.8125rem;
  line-height: 1.45;
  word-break: break-all;
}

.acct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.acct-form > * + * {
  margin-top: 1rem;
}
.acct-hint {
  margin: 0.25rem 0 0;
  font-size: var(--text-tool);
  color: rgb(var(--c-text-muted));
}
.acct-copied {
  font-size: var(--text-tool);
  color: rgb(var(--c-text-muted));
}

.acct-gate-panel > * + * {
  margin-top: 1rem;
}
.acct-gate-panel p {
  margin-bottom: 0;
}

/* The key box grows to show the whole key; rows="9" is the fallback. */
.acct-key {
  field-sizing: content;
}

.acct-details > summary {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: rgb(var(--c-heading));
  text-decoration: underline;
  text-decoration-color: rgb(var(--c-text-muted));
  text-underline-offset: 3px;
}
.acct-details[open] > summary {
  margin-bottom: 0.75rem;
}

/* Text for screen readers only (the Hub gets this from Tailwind). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.acct-main code {
  font-family: var(--font-code);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.acct-tokens {
  margin: 0;
  padding: 0;
  list-style: none;
}
.acct-tokens > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--hairline);
  padding: 0.625rem 0;
}
.acct-tokens > li > span {
  display: flex;
  flex-direction: column;
}

/* A pull token is one short line; it needs no key-sized box. */
.acct-key-short {
  min-height: 0;
}
.acct-hint + .acct-actions {
  margin-top: 0.75rem;
}

/* The install guide's commands and lists. */
.acct-code {
  margin: 0.5rem 0 0;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  background: rgb(var(--c-background));
  padding: 0.75rem 1rem;
  font-family: var(--font-code);
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre;
}
.acct-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.acct-steps > li + li {
  margin-top: 0.375rem;
}

/* Legal pages: tables scroll on narrow screens rather than squeeze. */
.acct-table-wrap {
  overflow-x: auto;
}
.acct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-tool);
}
.acct-table th,
.acct-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem 0.75rem 0.5rem 0;
  text-align: left;
  vertical-align: top;
}
.acct-table th {
  color: rgb(var(--c-text-muted));
  font-weight: 600;
}
.acct-legal h2,
.acct-legal h3 {
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgb(var(--c-heading));
}
