/* The Download page (download.html), on top of home.css: the home page's type scale and section rhythm (S102). Light
   only. The download box (.dl-card, painted by js/pages/download.js) sits in the hero beside the words. */

/* ------------------------------------------------------------------------------------------------ hero */
.dp-hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(28px, 4vw, 64px);
  max-width: 1360px; margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--gutter) var(--sec-pad);
}
.dp-hero h1 { font-size: var(--t-h1); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; margin: 0; text-wrap: balance; max-width: 12ch; }
.dp-hero .hm-note { margin-top: 26px; }
@media (max-width: 900px) { .dp-hero { grid-template-columns: 1fr; } }

/* The download box. */
.download .dl-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); box-shadow: 0 30px 70px rgba(20, 51, 107, .12); min-width: 0; }
.download .dl-card .ver { font-size: clamp(26px, 2.4vw, 32px); }
.download .dl-card .meta { font-size: var(--t-small); }
.download .dl-card h3 { margin: 26px 0 0; font-size: 16px; font-weight: 600; }
.download .dl-card ul { margin-top: 8px; }
.download .dl-card .arrow-link { font-weight: 600; }
.dp-sign { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.dp-sign p { margin: 0; }
.dp-sign details { margin-top: 8px; }
.dp-sign summary { cursor: pointer; color: var(--navy); font-weight: 500; min-height: 32px; display: inline-flex; align-items: center; }
.dp-sign details p { margin-top: 6px; }
.dp-sign .mono { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 12.5px; }
@media (max-width: 480px) { .download .dl-card .btn-lg { width: 100%; justify-content: center; } }

/* ------------------------------------------------------------------------------------------------ Install and Sign In */
.hm-start .dp-key { display: inline; font-size: inherit; font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------------------------------------ the box's two lines */
/* The free time, and what you need on one line under the button (S166 taste 5, 7). */
.dp-free { margin: 14px 0 0; color: var(--ink); font-size: var(--t-body); line-height: 1.5; }
.dp-free:empty { display: none; }
.download .dl-card .dp-req { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; color: var(--ink-2); }

/* ------------------------------------------------------------------------------------------------ more links */
.dp-more { padding-top: clamp(40px, 5vw, 64px); }
.dp-links { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(24px, 3vw, 40px); }
.dp-links li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: var(--t-body); line-height: 1.5; }
@media (max-width: 820px) { .dp-links { grid-template-columns: 1fr; } }

/* On a phone: get the link to the computer first (S160 W21). */
.download .dl-phone { margin-top: 20px; padding: 16px; border-radius: var(--r-card); background: var(--navy-50); }
.download .dl-phone p:first-child { margin: 0 0 12px; font-weight: 500; }
.download .dl-phone .btn { width: 100%; justify-content: center; }
.download .dl-phone #dl-copied { margin: 8px 0 0; min-height: 1.2em; }
.download .dl-card .dp-req li { margin: 0; }

/* After the install steps, the first lesson (S170). */
.dp-next { margin: 26px 0 0; color: var(--ink-2); font-size: var(--t-body); line-height: 1.5; }
.dp-next .hm-link { margin-left: 4px; }
