/* Home page option D (home-d.html): the landing page exactly as welcome.css,
   home-hero.css and liya-chat.css draw it, with its actions reorganised.
   Only what option D adds or moves is here, painted with welcome.css's own
   tokens; the live home page never loads this file. Scoped under .hd. */

/* ---- The header: four links, Log in as a link, one button ---- */
.hd .nav-cta { align-items: center; gap: 20px; }
.hd-login { font-size: 13px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.hd-login:hover { color: var(--ink); }

/* Solutions: a button that shows the five solution pages (home-d.js). */
.hd-dd { position: relative; display: flex; }
.hd-dd-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  color: var(--ink-2); font: inherit; line-height: inherit; white-space: nowrap; cursor: pointer;
}
.hd-dd-btn:hover, .hd-dd-btn[aria-expanded="true"] { color: var(--ink); }
.hd-dd-btn svg { width: 10px; height: 10px; transition: transform 160ms; }
.hd-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.hd-dd-menu {
  position: absolute; top: calc(100% + 18px); left: -12px; z-index: 20; width: 264px;
  margin: 0; padding: 6px; list-style: none; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 24px 56px -30px rgba(17, 17, 17, 0.5);
}
.hd-dd-menu[hidden] { display: none; }
.nav-links .hd-dd-menu a {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px;
  color: var(--ink); white-space: normal;
}
.hd-dd-menu b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.hd-dd-menu span { font: 10.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.nav-links .hd-dd-menu a:hover, .nav-links .hd-dd-menu a:focus-visible { background: var(--ground); }
.hd-dd-menu a:focus-visible { outline-offset: -2px; }
.hd-dd-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.nav-links .hd-dd-all a {
  flex-direction: row; align-items: center; gap: 6px;
  font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.hd-dd-all i { font-style: normal; }

/* The announcement as a small pill beside the brand, not a bar across the
   page. Beside the brand, so the links (pushed right) never move when it
   arrives; it shrinks before anything else does. */
.hd-new {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 400px;
  height: 26px; padding: 0 12px 0 3px; border: 1px solid color-mix(in srgb, var(--signal) 55%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--signal) 8%, var(--paper));
  color: var(--ink-2); font-size: 12.5px; line-height: 1; text-decoration: none;
}
.hd-new[hidden] { display: none; }
.hd-new:hover { border-color: var(--signal); color: var(--ink); }
.hd-new-k {
  flex: none; padding: 5px 8px; border-radius: 999px; background: var(--signal); color: var(--ink);
  font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.hd-new-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1080px) { .hd-new { max-width: 300px; } }
@media (max-width: 860px) { .hd-new-t { display: none; } .hd-new { padding-right: 3px; } }

/* ---- The hero's one action, in the brand orange (ink on it: 6.1:1) ---- */
.btn-signal { background: var(--signal); border: 1px solid var(--signal); color: var(--ink); }
.btn-signal:hover { background: #f04d12; border-color: #f04d12; }

/* ---- Build your own agent: the finder's door, then the command line ---- */
.hd-build .ask-bar { margin-top: 0; }
.hd-dev { margin-top: 26px; }
.hd-dev-k { margin: 0 0 8px; font: 11px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.hd-dev .cmd { display: inline-block; margin-top: 0; vertical-align: top; }

/* Room under the footer's last line for the preview label (below). */
.hd .foot { padding-bottom: 80px; }

/* ---- Phones: the header as today (links give way), Log in as a link ---- */
@media (max-width: 640px) {
  .hd .nav-cta { gap: 14px; }
  .hd .foot { padding-bottom: 120px; }
}

/* ---- The preview label: which option this is, and the way to the others
   (as on home-a/b/c, in this page's tokens) ---- */
/* The cookie card (consent.css) keeps 56px free under it for this label on
   a wide screen, and on a phone the label rises above its sheet. */
.hd { --cc-avoid: 56px; }
.ho-preview {
  position: fixed; left: 16px; bottom: calc(16px + var(--cc-lift, 0px)); z-index: 55; display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 6px 0 14px; border-radius: 10px; background: var(--ink); color: var(--paper);
  font: 13px/1 var(--sans); box-shadow: 0 8px 24px -12px rgba(17, 17, 17, 0.6);
}
.ho-preview p { margin: 0; white-space: nowrap; }
.ho-preview p b { font-weight: 600; }
.ho-preview nav { display: flex; gap: 2px; }
.ho-preview a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px;
  padding: 0 8px; border-radius: 6px; color: inherit; text-decoration: none; opacity: 0.72; white-space: nowrap;
}
.ho-preview a:hover { opacity: 1; background: color-mix(in srgb, var(--paper) 14%, transparent); }
.ho-preview a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, var(--paper) 18%, transparent); font-weight: 600; }
.ho-preview a:focus-visible { outline-color: var(--signal); outline-offset: 1px; }
@media (max-width: 640px) {
  .ho-preview { gap: 6px; padding-left: 12px; }
  /* Clear of Liya's launcher: the highlighted letter says which option. */
  .ho-preview .ho-pv-long, .ho-preview .ho-pv-opt { display: none; }
}
@media print { .ho-preview { display: none !important; } }
