/* Desktop home only. The mobile home keeps its existing markup and styles. */
@media (min-width: 901px) {
  .home-route-ledger[data-desktop-home-routes] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 64px);
    margin-bottom: 48px;
    padding: 28px 0 24px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .home-route-ledger > .home-route-lane {
    padding: 0;
    border: 0;
  }

  .home-route-lane-title {
    margin: 0 0 14px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .04em;
  }

  .home-route-lane-title::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    margin-top: 12px;
    background: var(--ink);
  }

  .home-route-ledger a.home-entry {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 16px;
    gap: 16px;
    min-width: 0;
    min-height: 100px;
    padding: 16px 8px 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transform: none;
  }

  .home-route-lane > .home-entry:last-child { border-bottom: 0; }
  .home-route-ledger .home-entry > span { gap: 6px; }
  .home-route-ledger .home-entry strong { font-size: 22px; line-height: 1.4; }
  .home-route-ledger .home-entry small { font-size: 13px; line-height: 1.7; text-wrap: pretty; }
  .home-route-ledger .home-entry .home-route-icon {
    width: 52px;
    height: 52px;
    padding: 13px;
    transform: none;
  }

  .home-route-ledger .home-entry::after {
    font-size: 26px;
    transition: transform 180ms ease, color 180ms ease;
  }

  .home-route-ledger .home-entry:focus-visible {
    outline: 2px solid var(--spark);
    outline-offset: 4px;
  }

  .home-route-ledger > .home-route-lane--organization {
    grid-column: 1 / -1;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .home-route-ledger .home-organization-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(28px, 3vw, 48px);
    padding: 0;
    border: 0;
  }

  .home-route-ledger .home-organization-links[data-entry-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-route-ledger .home-organization-links a { border-bottom: 0; }

  .home-support-contact {
    align-items: start;
    margin-top: 0;
    margin-bottom: 48px;
  }

  .home-support-contact h2 {
    font-size: clamp(26px, 2.25vw, 32px);
    line-height: 1.45;
    text-wrap: balance;
  }
}

@media (min-width: 1280px) {
  .home-route-ledger .home-organization-links[data-entry-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .home-route-ledger .home-organization-links[data-entry-count="4"] a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .home-route-ledger .home-entry:hover { background: #eee7dc; }
  .home-route-ledger .home-entry:hover strong,
  .home-route-ledger .home-entry:hover::after { color: var(--spark); }
  .home-route-ledger .home-entry:hover::after { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-route-ledger .home-entry::after { transition: none; }
}

/* Explicit columns defeat legacy span/arrow placement in the shared stylesheet. */
@media (min-width: 901px) {
 .home-route-ledger[data-desktop-home-routes] > .home-route-lane { border-left: 0; }
 .home-route-ledger a.home-entry > .home-route-icon { grid-column: 1; grid-row: 1; }
 .home-route-ledger a.home-entry > span { grid-column: 2; grid-row: 1; display: grid; min-width: 0; }
 .home-route-ledger a.home-entry::after { grid-column: 3; grid-row: 1; }
 .home-route-ledger .home-organization-links { align-items: stretch; }
 .home-route-ledger .home-organization-links a.home-entry { width: 100%; align-items: center; }
}
