/* Progressive enhancement shared by the public guides; no application dependencies. */
.portal-bar {
  margin-top: 12px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 16px;
  padding: 14px;
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.portal-button,
.portal-bar a,
.portal-workshop button,
.portal-workshop a {
  min-height: 44px;
}
.portal-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}
.portal-button:hover {
  border-color: #a5b4fc;
}
.portal-button[aria-pressed="true"] {
  border-color: #a5b4fc;
  background: #312e65;
}
.portal-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.portal-bar a,
.portal-workshop a {
  color: #c7d2fe;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
}
.portal-disclosure {
  margin-top: 12px;
  padding: 12px;
}
.portal-disclosure summary {
  min-height: 32px;
  align-items: center;
}
.portal-main-disclosure {
  margin-top: 0;
  border: 0;
  padding: 0;
}
.portal-main-disclosure > summary {
  min-height: 44px;
}
.portal-reading-controls {
  padding-top: 10px;
}
.portal-box {
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.portal-box > .portal-field {
  flex: 1 1 220px;
}
.portal-box > p,
.portal-box > ul {
  flex: 1 1 100%;
}
.portal-status {
  font-size: 0.9rem;
  color: var(--text);
  min-height: 1.4em;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.portal-status:empty {
  display: none;
}
.portal-status[role="alert"] {
  color: #fca5a5;
  border-left: 3px solid #f87171;
  padding-left: 10px;
}
.portal-muted {
  color: var(--muted);
  font-size: 0.92rem;
}
.portal-results {
  margin: 0;
  padding-left: 0;
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 12px;
}
.portal-results > li {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  min-width: 0;
}
.portal-result-link {
  font-weight: 700;
}
.portal-results p {
  margin: 4px 0;
}
.portal-index {
  padding-left: 24px;
}
.portal-index li {
  margin: 3px 0;
}
.portal-index a {
  min-height: 40px;
}
.portal-subheading {
  margin-left: 16px !important;
}
.portal-sticky-index {
  position: sticky;
  top: 8px;
  max-height: 55vh;
  overflow-y: auto;
  z-index: 5;
  background: var(--bg-2);
}
.portal-bar progress {
  width: 100%;
  height: 9px;
  accent-color: #a5b4fc;
}
.portal-code-actions {
  margin: 8px 0 24px;
}
.portal-wrap-code {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
}
.portal-active-match {
  outline: 3px solid #fb923c;
  outline-offset: 3px;
}
mark[data-portal-match] {
  background: #fde68a;
  color: #111827;
  border-radius: 2px;
}
.portal-workshop {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
  margin-top: 36px;
  margin-bottom: 36px;
  padding: 24px;
}
.portal-workshop h2 {
  margin: 0;
}
.portal-tool {
  margin-top: 24px;
}
.portal-tool h3 {
  font-size: 1.3rem;
}
.portal-tool form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 14px;
  align-items: end;
}
.portal-tool form > .portal-status {
  grid-column: 1 / -1;
}
.portal-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
  min-width: 0;
  font-size: 0.95rem;
}
.portal-field > span {
  color: var(--text);
}
.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #555575;
  border-radius: 9px;
  background: #0d0d17;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.portal-field select {
  color-scheme: dark;
}
.portal-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
  font-family: var(--mono);
}
.portal-field:has(textarea) {
  grid-column: 1 / -1;
}
.portal-field input[type="file"] {
  padding: 8px;
}
.portal-output {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #6366a1;
  border-radius: 12px;
}
.portal-output textarea {
  min-height: 230px;
}
.portal-checklist {
  padding-left: 24px;
}
.portal-checklist li {
  margin: 12px 0;
}
.portal-checklist a {
  margin-left: 10px;
}
.portal-copy-fallback {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  top: 0;
  left: 0;
  pointer-events: none;
}
.portal-bar [hidden],
.portal-workshop [hidden],
details[hidden] {
  display: none !important;
}
html[data-portal-font="large"] {
  font-size: 19px;
}
html[data-portal-width="wide"] .wrap {
  width: min(1280px, 100% - 32px);
}
html[data-portal-contrast="true"] {
  --muted: #d5d5e6;
  --dim: #bdbdd3;
  --line: #777799;
  --text: #ffffff;
}
html[data-portal-motion="true"] *,
html[data-portal-motion="true"] *::before,
html[data-portal-motion="true"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-portal-motion="true"] {
  scroll-behavior: auto;
}
.portal-relaxed main p,
.portal-relaxed main li {
  line-height: 1.95;
}
.portal-hide-demo .ide {
  display: none;
}
.portal-large-code pre {
  font-size: 1.1rem;
}
main [id] {
  scroll-margin-top: 20px;
}
@media (max-width: 640px) {
  .portal-bar,
  .portal-workshop {
    padding: 14px;
  }
  .portal-actions > *,
  .portal-box > .portal-button {
    flex: 1 1 140px;
  }
  .portal-tool form {
    display: block;
  }
  .portal-tool form > button {
    margin-right: 8px;
    margin-top: 8px;
  }
}
@media print {
  .portal-bar,
  .portal-code-actions,
  .portal-workshop,
  .glow,
  .ide,
  header,
  footer,
  .ctas,
  [data-portal-ui] {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }
  main p,
  main li,
  main h1,
  main h2,
  main h3,
  main h4,
  main span,
  main strong,
  main a,
  main summary {
    color: black !important;
  }
  .wrap {
    width: 100% !important;
  }
  section {
    padding: 14px 0;
    break-inside: avoid;
  }
  pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f5f5f5;
    color: black;
  }
  details {
    background: white;
    border: 1px solid #999;
  }
  details > :not(summary) {
    display: block !important;
  }
  a[href^="https://"]::after
  {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
