/* The support pages: the FAQ (views/marketing/faq.html), the help centre (views/help/) and the contact page
   (views/marketing/contact.js), on the design system in site.css: colours, type, buttons, cards, tiles, fields,
   notices and the question list come from there; this sheet only lays out these pages' own parts (hp-).
   It loads after site.css. */
body{margin:0;background:#fff;color:var(--dh-ink)}
.skip{position:absolute;left:12px;top:-80px;z-index:100;padding:12px 18px;border-radius:12px;background:var(--dh-ink);color:#fff;font-weight:700;text-decoration:none}
.skip:focus{top:12px;outline:3px solid var(--dh-mint);outline-offset:2px}
.hp *{box-sizing:border-box}
/* Resets carry no weight (:where), so the design system's and this sheet's own rules always win over them */
:where(.hp) :where(h1,h2,h3,p,ol,ul){margin:0}
:where(.hp) :where(ol,ul){padding:0;list-style:none}
.hp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.hp-head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--dh-s4);padding-top:var(--dh-s8);padding-bottom:var(--dh-s7)}
.hp .hp-title{font-size:clamp(40px,4vw + 16px,72px)}

/* Help centre: one coloured tile per guide, the whole tile is the link (two wide tiles, then three) */
.hp-guides{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--dh-s4)}
.hp-guide{grid-column:span 2;min-height:300px;padding:var(--dh-s6)}
.hp-guide:nth-child(-n+2){grid-column:span 3}
.hp-num{font:700 15px var(--dh-font-display);letter-spacing:.04em}
.hp-guide .dh-muted{font-size:17px}
.hp-go{display:inline-flex;align-items:center;gap:var(--dh-s2);margin-top:auto;padding-top:var(--dh-s3);color:inherit;font-weight:600;text-decoration:none}
.hp-go::after{content:'';position:absolute;inset:0;border-radius:inherit}
.hp-go svg{transition:transform var(--dh-fast) var(--dh-ease)}
.hp-guide:hover .hp-go svg{transform:translateX(4px)}
.hp .hp-go:focus-visible{outline:none;box-shadow:none}
.hp-guide:focus-within{outline:3px solid var(--dh-ink);outline-offset:3px}
.hp-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--dh-s4)}
.hp-more .dh-card,.hp-ask{padding:var(--dh-s6)}
.hp-more .dh-btn,.hp-ask .dh-btn{align-self:flex-start;margin-top:auto}

/* FAQ: the questions in two groups, the guides and a way to ask at the side (it stays in view as the page scrolls) */
.hp-faq,.hp-art,.hp-contact{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:var(--dh-s8);align-items:start}
.hp-faq-main{display:flex;flex-direction:column;gap:var(--dh-s8)}
.hp-group{display:flex;flex-direction:column;gap:var(--dh-s4)}
.hp .dh-faq summary{font-size:20px}
.hp-side{position:sticky;top:96px;display:flex;flex-direction:column;gap:var(--dh-s4)}
.hp-others{gap:var(--dh-s3)}
.hp-side .dh-subheading{font-size:22px}
.hp .hp-links a{display:flex;justify-content:space-between;align-items:center;gap:var(--dh-s3);padding:14px 0;border-bottom:1.5px solid var(--dh-line);color:var(--dh-ink);font-weight:600;text-decoration:none}
.hp .hp-links a:hover{color:var(--dh-forest)}
.hp-links svg{flex:none;color:var(--dh-forest)}
.hp-others p{font-size:16px}

/* A guide: the short answer first, then numbered steps joined by a line, then a tip */
.hp-crumbs{padding-top:var(--dh-s7)}
.hp-crumbs ol{display:flex;flex-wrap:wrap;gap:var(--dh-s2);font-size:15px;color:var(--dh-muted)}
.hp-crumbs li+li::before{content:'/';margin-right:var(--dh-s2);color:var(--dh-field)}
.hp-art{padding-top:var(--dh-s5)}
.hp-art-main{display:flex;flex-direction:column;gap:var(--dh-s5);max-width:760px}
.hp-answer{padding:var(--dh-s5) var(--dh-s6);border-left:6px solid var(--dh-mint);border-radius:0 20px 20px 0;background:var(--dh-soft);font-size:20px;line-height:1.55;font-weight:500}
.hp .hp-steps-h{margin-top:var(--dh-s4)}
.hp-steps{display:flex;flex-direction:column;gap:var(--dh-s5);counter-reset:hp-step}
.hp-steps li{position:relative;min-height:40px;padding-left:60px;line-height:1.6}
.hp-steps li::before{counter-increment:hp-step;content:counter(hp-step);position:absolute;left:0;top:-4px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--dh-ink);color:#fff;font:700 17px var(--dh-font-display)}
.hp-steps li:not(:last-child)::after{content:'';position:absolute;left:19px;top:44px;bottom:calc(var(--dh-s5) * -1 + 4px);width:2px;background:var(--dh-line)}
.hp-tip p{margin:0}
.hp-tip svg{color:var(--dh-forest)}

/* Contact: the form in a card, two fields to a row, then the confirmation once it is sent */
.hp-form-card{padding:var(--dh-s7)}
.hp-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--dh-s5) var(--dh-s4)}
.hp-wide{grid-column:1/-1}
.hp-form textarea{resize:vertical}
.hp-err{margin-bottom:var(--dh-s5);padding:var(--dh-s4) var(--dh-s5);border-radius:var(--dh-r-field);background:#FCECEB;color:var(--dh-error);font-weight:600}
.hp-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.hp-sent{display:flex;flex-direction:column;align-items:flex-start;gap:var(--dh-s4)}
.hp-sent-mark{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--dh-mint);color:var(--dh-ink)}
.hp .hp-mail{color:var(--dh-mint);font-size:18px;font-weight:600;text-underline-offset:.18em}

@media (max-width:960px){
  .hp-guides{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-guide,.hp-guide:nth-child(-n+2){grid-column:auto;min-height:260px}
  .hp-guide:last-child:nth-child(odd){grid-column:1/-1}
  .hp-faq,.hp-art,.hp-more,.hp-contact{grid-template-columns:minmax(0,1fr)}
  .hp-side{position:static}
}
@media (max-width:640px){
  .hp-head{padding-top:var(--dh-s6);padding-bottom:var(--dh-s6)}
  .hp-guides{grid-template-columns:minmax(0,1fr)}
  .hp-guide,.hp-guide:nth-child(-n+2){min-height:0}
  .hp-crumbs{padding-top:var(--dh-s5)}
  .hp-answer{padding:var(--dh-s4) var(--dh-s5);font-size:18px}
  .hp-steps li{padding-left:52px}
  .hp .dh-faq summary{font-size:19px}
  .hp-form-card{padding:var(--dh-s5)}
  .hp-form{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
  .hp-go svg{transition:none}
  .hp-guide:hover .hp-go svg{transform:none}
}
