/* djsdairy.com/help: the help center's pages (pages/help-*.php), on top of site.css and its tokens. */

/* ------------------------------------------------------------ heads */

.hhero .wrap { padding-top: 34px; padding-bottom: 56px; text-align: center; }
.hhero .h1 { margin: 14px auto 0; max-width: 860px; font-size: clamp(34px, 4.6vw, 56px); }
.hhero .lead { margin: 14px auto 0; max-width: 620px; font-size: 18.5px; }
.hhero .hcrumbs { justify-content: center; }
.hhero .kicker { margin-top: 18px; }
.hhead .wrap { padding-top: 26px; padding-bottom: 34px; }
.hhead .lead { margin-top: 10px; font-size: 17.5px; max-width: 680px; }
.hh1 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 900; letter-spacing: -.6px; color: var(--navy); }
html[lang="hi"] .hh1 { letter-spacing: 0; line-height: 1.3; }

.hcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14.5px; color: var(--muted); }
.hcrumbs a { color: var(--navy-2); font-weight: 600; text-decoration: none; }
.hcrumbs a:hover { text-decoration: underline; }
.hcrumbs .sep { color: #64B5F6; font-weight: 700; }

.hsearch { margin: 26px auto 0; max-width: 640px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lift); color: var(--muted); }
.hhead .hsearch { margin: 20px 0 0; max-width: 620px; box-shadow: var(--shadow); }
.hsearch input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16.5px; color: var(--ink); }
.hsearch input::-webkit-search-cancel-button { cursor: pointer; }
.hsearch:focus-within { box-shadow: 0 0 0 3px rgba(30, 136, 229, .35), var(--shadow-lift); }
.hsearch .btn { flex: none; }

.hterms { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.hterms a { padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .8); box-shadow: 0 1px 0 var(--line); color: var(--navy); font-weight: 600; text-decoration: none; }
.hterms a:hover { background: #fff; color: var(--navy-2); }

/* ------------------------------------------------------------ shared pieces */

.hlabel { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
html[lang="hi"] .hlabel { font-size: 14.5px; letter-spacing: 0; text-transform: none; }
.htag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: var(--muted); background: var(--line-2); vertical-align: 2px; white-space: nowrap; }
.htag-new { color: var(--green); background: var(--green-bg); }
.htag-solid { color: #fff; background: var(--navy-2); }
.hver { display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; padding: 4px 11px; border-radius: 10px; color: var(--navy-2); background: var(--sky); }
.hver-solid { color: #fff; background: var(--navy); }
.hhead .hver { margin-top: 18px; }

.hcover { flex: none; display: block; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(8, 54, 121, .14); object-fit: cover; aspect-ratio: 9 / 16; height: auto; }
.hcover-sm { width: 44px; }
.hcover-md { width: 64px; }
.hcover-lg { width: 84px; }
.hcover.blank { display: flex; align-items: center; justify-content: center; background: var(--sky); }
.hcover.blank .art { width: 70%; height: auto; }

.hrows { padding: 8px 22px; }
.hrows .hlabel { padding: 14px 0 6px; }
.hrow { display: flex; align-items: center; gap: 14px; padding: 13px 0; color: inherit; text-decoration: none; }
.hrow + .hrow, .hlabel + .hrow { border-top: 1px solid var(--line-2); }
.hlabel + .hrow { border-top: 0; }
.hrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hrow b { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.hrow small { font-size: 13.5px; color: var(--muted); }
.hrow > .icon { flex: none; color: var(--mid); transition: transform .2s ease, color .2s ease; }
.hmost { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hmost .hrow { padding: 14px 16px; border-top: 0; }
.hmost .hrow > .icon { display: none; }
.hlabel-gap { margin-top: 18px; }
.hrow:hover b { color: var(--navy-2); }
.hrow:hover > .icon { color: var(--navy-2); transform: translateX(3px); }

.hsupport { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.hsupport .who { display: flex; align-items: center; gap: 14px; }
.hsupport .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.hsupport b { display: block; font-size: 17.5px; color: var(--navy); }
.hsupport p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.btn-wa { background: #16A34A; color: #fff; box-shadow: 0 10px 22px rgba(22, 163, 74, .25); }
.btn-wa:hover { color: #fff; background: #15803D; }
.btn-wa-soft { background: var(--green-bg); color: var(--green); }
.btn-wa-soft:hover { color: var(--green); background: #BBF7D0; }

.hchip { flex: none; display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 99px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(8, 54, 121, .06); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hchip:hover { color: var(--navy-2); }
.hchip.on { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(8, 54, 121, .22); }

/* ------------------------------------------------------------ help home */

.hhome { padding-top: 0; padding-bottom: 80px; }
.hways { position: relative; z-index: 2; margin-top: -30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.hway { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lift); color: inherit; text-decoration: none; }
.hway span { flex: 1; min-width: 0; }
.hway b { display: block; font-size: 21px; font-weight: 800; color: var(--navy); }
.hway small { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }
.hway > .icon { flex: none; color: var(--navy-2); }

.hsplit { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.hmain { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.htiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.htile { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.htile .art { flex: none; }
.htile span { min-width: 0; }
.htile b { display: block; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.htile small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }

.hlatest { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.hlatest .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hlatest .top small { font-size: 13.5px; color: var(--muted); }
.hlatest .body { display: flex; gap: 16px; color: inherit; text-decoration: none; }
.hlatest .t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hlatest b { font-size: 17px; color: var(--navy); line-height: 1.35; }
.hlatest small { font-size: 14px; color: var(--muted); }
.hlatest .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--navy-2); }

/* ------------------------------------------------------------ guides */

.hchips { position: sticky; top: 69px; z-index: 20; background: rgba(244, 247, 252, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hchips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.hchips .wrap::-webkit-scrollbar { display: none; }
.hguides { padding-top: 28px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 26px; }
.hfound { font-size: 16px; color: var(--muted); }
.hfound a { font-weight: 700; }
.hempty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 36px 24px; }
.hempty p { font-size: 17px; color: var(--ink); }
/* Two columns that fill top to bottom, so a short feature leaves no hole beside a long one. */
.hgroups { columns: 2 440px; column-gap: 24px; }
.hgroup { scroll-margin-top: 140px; display: flex; flex-direction: column; gap: 12px; break-inside: avoid; padding-bottom: 26px; }
.hgroup header { display: flex; align-items: center; gap: 12px; }
.hgroup h2 { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.hgroup small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------ reader */

.hfeature { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, .8); box-shadow: 0 1px 0 var(--line); color: var(--navy); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.hmeta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; color: var(--muted); }
.hmeta a { font-weight: 700; }
.hacts { display: flex; flex-wrap: wrap; gap: 10px; }
.hacts-top { margin-top: 20px; }
.hsections { margin-top: 18px; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.hsections::-webkit-scrollbar { display: none; }

.hreader { padding-top: 28px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.hreader .hmain { flex: 999 1 520px; }
.hreader .hside { flex: 1 1 300px; }
.hpages { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hpg { position: relative; width: 100%; max-width: 540px; margin: 0; aspect-ratio: 9 / 16; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 14px 34px rgba(8, 54, 121, .14); overflow: hidden; scroll-margin-top: 90px; }
.hpg canvas, .hpg img { display: block; width: 100%; height: 100%; }
.hpgn { margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); }
.hwait { font-size: 15px; color: var(--muted); }

.htoc { padding: 22px 24px; }
.htoc h2, .hnotes-card h2 { font-size: 19px; font-weight: 800; color: var(--navy); }
.htoc ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.htoc li { counter-increment: toc; }
.htoc li + li a { border-top: 1px solid var(--line-2); }
.htoc a { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--ink); font-size: 15.5px; text-decoration: none; }
.htoc a::before { content: counter(toc); flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sky); color: var(--navy-2); font-size: 13px; font-weight: 800; }
.htoc a span { flex: 1; min-width: 0; }
.htoc a small { flex: none; font-size: 13px; color: var(--muted); }
.htoc a:hover span { color: var(--navy-2); }

.hnotes-card { margin-top: 18px; padding: 22px 24px; }
.hnotes { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hnotes li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.hnotes.dots li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.hkind { flex: none; margin-top: 2px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.hkind-new { color: var(--green); background: var(--green-bg); }
.hkind-better { color: var(--navy-2); background: var(--sky); }
.hkind-fix { color: #475569; background: #E2E8F0; }

/* Phones: Download and WhatsApp stay at hand at the bottom. */
.hbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(8, 54, 121, .08); }
.hbar .btn { flex: 1; min-height: 48px; padding: 0 10px; font-size: 15.5px; white-space: nowrap; }
@media (min-width: 900px) {
  .hbar, .hsections { display: none; }
  .hreader .hside { position: sticky; top: 92px; }
}
@media (max-width: 899px) {
  .hacts-top { display: none; }
  .hreader .hside { order: 2; }
}

/* ------------------------------------------------------------ what's new */

.hplay { margin-top: 18px; }
.hplay .icon { color: var(--green); }
.hnew { padding-top: 30px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 26px; }
.hyear { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; }
.hyear span { font-size: 14px; font-weight: 800; color: var(--navy); background: #fff; padding: 5px 13px; border-radius: 99px; box-shadow: 0 1px 0 var(--line); }
.hyear i { flex: 1; height: 1px; background: var(--line); }
/* Each dot sits level with its version pill (--dot-y from the item's top), and the rail runs from one dot
   to the next dot of the same year, under the dots; a year's last release ends it (.yend), so no line
   runs into a year chip. */
.htl { --dot-y: 33px; }
.hitem { position: relative; display: flex; gap: 16px; padding-bottom: 16px; }
.hitem::before { content: ""; position: absolute; left: 13px; top: var(--dot-y); bottom: calc(-1 * var(--dot-y)); width: 2px; background: var(--line); }
.hitem.yend::before { display: none; }
.hdot { flex: none; width: 28px; display: flex; justify-content: center; padding-top: calc(var(--dot-y) - 6px); }
.hdot i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--mid); box-shadow: 0 0 0 4px var(--page); }
.hitem.first .hdot i { width: 20px; height: 20px; margin-top: -4px; background: var(--navy-2); box-shadow: 0 0 0 6px var(--sky-2); }
.hrel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.hitem.first .hrel { box-shadow: 0 0 0 2px var(--navy-2), var(--shadow-lift); }
.vhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vhead .d { margin-left: auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.hrel .rel { display: flex; gap: 16px; }
.hrel .rel > a { flex: none; }
.hrel .t { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hrel b { font-size: 17.5px; color: var(--navy); line-height: 1.35; }
.hrel a { text-decoration: none; }
.hrel .ttl:hover b, .hrel .t a:hover b { color: var(--navy-2); }
.hrel .hacts .grow { flex: 1; }
.hrel .hacts .btn-wa-soft { width: 48px; padding: 0; }
.hrel details summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--navy-2); list-style: none; }
.hrel details summary::-webkit-details-marker { display: none; }
.hrel details[open] summary { display: none; }

@media (max-width: 640px) {
  .hhero .wrap { padding-top: 20px; padding-bottom: 48px; }
  /* The title on one line: its size follows the screen (both languages fit from 320px up). */
  .hhero .h1 { font-size: clamp(22px, calc((100vw - 40px) / 11.4), 34px); }
  /* "Popular:" and the four terms on one line from 350px up; smaller phones wrap. */
  .hterms { gap: 5px; font-size: clamp(12px, 3.4vw, 13.5px); }
  .hterms a { padding: 6px 9px; }
  .hhero .lead, .hhead .lead { font-size: 16.5px; }
  .hsearch { padding-left: 14px; }
  .hsearch input { font-size: 16px; }
  .hway { padding: 16px; gap: 14px; }
  .hway .art { width: 52px; height: 52px; }
  .hway b { font-size: 19px; }
  .htiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .htile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .htile .art { width: 46px; height: 46px; }
  .hrows { padding: 4px 16px; }
  .hrel { padding: 16px; }
  /* A release's notes under its cover and title, not squeezed beside the cover. */
  .hrel .rel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px; }
  .hrel .rel .t { display: contents; }
  .hrel .rel .hnotes { grid-column: 1 / -1; margin-top: 0; }
  .hrel .rel .hcover-lg { width: 64px; }
  .htl { --dot-y: 31px; }
  .hitem { gap: 10px; }
}
@media (min-width: 350px) and (max-width: 640px) {
  .hterms { flex-wrap: nowrap; }
}
@media print {
  .hbar, .hchips, .hsearch, .hsupport { display: none; }
}
