/* Compact mobile reading profile.
   Keep the desktop documentation rhythm unchanged and reduce only phone-width
   spacing that does not carry semantic or interaction value. */
@media screen and (max-width: 44.984375em) {
  .md-main__inner {
    margin-top: 0.35rem;
  }

  .md-path {
    margin: 0 0.6rem;
    padding-top: 0.2rem;
    font-size: 0.64rem;
  }

  .md-content__inner {
    margin-right: 0.6rem;
    margin-bottom: 0.9rem;
    margin-left: 0.6rem;
    padding-top: 0.3rem;
  }

  .md-content__inner::before {
    height: 0.15rem;
  }

  .md-typeset {
    line-height: 1.58;
  }

  .md-typeset h1 {
    margin-bottom: 0.7em;
    font-size: 1.68em;
    line-height: 1.22;
  }

  .md-typeset h2 {
    margin-top: 1.15em;
    margin-bottom: 0.42em;
    font-size: 1.35em;
    line-height: 1.3;
  }

  .md-typeset h3 {
    margin-top: 1.15em;
    margin-bottom: 0.5em;
    font-size: 1.15em;
    line-height: 1.35;
  }

  .md-typeset blockquote,
  .md-typeset dl,
  .md-typeset figure,
  .md-typeset ol,
  .md-typeset pre,
  .md-typeset ul {
    margin-top: 0.65em;
    margin-bottom: 0.65em;
  }

  .md-typeset ol li,
  .md-typeset ul li {
    margin-bottom: 0.25em;
  }

  .md-typeset table:not([class]) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .md-typeset table:not([class]) th,
  .md-typeset table:not([class]) td {
    padding: 0.65em 0.8em;
  }

  .md-typeset table:not([class]) code {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .md-typeset table:not([class]) td:first-child code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .portal-landing--cover {
    margin-top: 0;
  }

  .portal-cover {
    min-height: 0;
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: 0.8rem;
  }

  /* The task choice is already explicit in the headline. Removing the kicker
     avoids spending another line block before the first actionable control. */
  .portal-cover .portal-cover__kicker {
    display: none;
  }

  .portal-cover h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.5rem, 7.4vw, 1.9rem);
    line-height: 1.02;
  }

  .portal-cover .portal-cover__lead {
    margin-bottom: 0.55rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .portal-cover__actions {
    gap: 0.4rem;
    margin-bottom: 0;
  }

  .portal-cover__button,
  .portal-policy-panel__action,
  .portal-doc-link {
    min-height: 48px;
  }

  .portal-cover__button {
    padding: 0.4rem 0.65rem;
    font-size: 0.76rem;
  }

  /* Detailed signals and the decorative illustration are repeated below the
     cover in task cards / mental-model sections. Keep mobile first paint focused
     on the two actionable controls. */
  .portal-cover .portal-cover__signals,
  .portal-cover .portal-cover__visual {
    display: none;
  }

  .portal-authority,
  .portal-doc-nav,
  .portal-guarantees {
    margin-top: 0.7rem;
    padding: 0.75rem;
    border-radius: 0.8rem;
  }

  .portal-section-heading {
    margin-bottom: 0.65rem;
  }

  .portal-section-heading h2,
  .portal-policy-panel h2 {
    font-size: 1.2rem;
  }

  .portal-section-heading p:last-child,
  .portal-policy-panel__copy p:last-child {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .portal-artifact-grid {
    gap: 0.5rem;
  }

  .portal-artifact-card {
    min-height: 7rem;
    padding: 0.65rem;
    gap: 0.5rem;
  }

  .portal-artifact-card__icon,
  .portal-policy-panel__icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .portal-artifact-card__icon img,
  .portal-policy-panel__icon img {
    width: 1.9rem;
    height: 1.9rem;
  }

  .portal-artifact-card__copy strong {
    font-size: 0.88rem;
  }

  .portal-artifact-card__copy span {
    font-size: 0.72rem;
    line-height: 1.38;
  }

  .portal-policy-panel {
    gap: 0.65rem;
    margin-top: 0.7rem;
    padding: 0.75rem;
    border-radius: 0.8rem;
  }

  .portal-policy-panel__action {
    padding: 0.5rem 0.75rem;
  }

  .portal-doc-links {
    gap: 0.4rem;
  }

  .portal-doc-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.74rem;
  }

  .portal-guarantees {
    margin-bottom: 1.3rem;
  }

  .portal-guarantees__grid {
    gap: 0.5rem;
  }

  .portal-guarantees article {
    padding: 0.65rem;
  }
}
