/* Advertising inquiry (advertising-inquiry.html). The sheet, its questions, list rows, fields and buttons are the
   Get in touch styles in site.css (.ask, .ask-opts, .ask-f, .btn). Only what this page adds is here. */
.pg .inq [hidden]{display:none!important}
/* no full-screen height: the horizon comes up under the sheet instead of leaving empty sky between them */
.pg .inq{display:flex;flex-direction:column;padding-bottom:5vw}
.pg .inq .sky-h{padding-top:clamp(22px,3vw,40px)}
.pg .inq .sky-h h1{font-size:clamp(34px,5vw,66px)}
.pg .inq-ask{width:calc(100% - var(--gl) - var(--gr));margin-top:clamp(22px,2.6vw,36px);min-height:0;padding-top:clamp(20px,3vw,34px)}

/* how far along: a line across the top of the sheet that fills in. No count. */
.pg .inq-bar{height:3px;border-radius:2px;background:var(--rule);overflow:hidden}
.pg .inq-bar i{display:block;height:100%;background:var(--coral);border-radius:2px;transform-origin:0 50%;transform:scaleX(var(--p,.04));transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.pg .inq-bar{margin-bottom:clamp(20px,3vw,30px)}
.pg .inq .ask-back{min-height:44px;padding:6px 4px}
.pg .inq .ask-opts+.ask-go{margin-top:14px}
.pg .inq .inq-small{margin-left:auto}

/* every question starts in the same place, and the sheet is only as tall as the question on it: no empty paper.
   When the question changes, the sheet grows or shrinks to the new one (advertising-inquiry.js, show). */
.pg .inq-steps{display:grid}
.pg .inq-step{grid-area:1/1;min-width:0}
.pg .inq-step:not(.on){display:none}

/* the Start sheet is a cover, centred like one */
.pg .inq-step[data-step=start]{text-align:center}
.pg .inq-step[data-step=start] h2{max-width:13em;margin-left:auto;margin-right:auto}
.pg .inq-step[data-step=start] .inq-nums{max-width:640px;margin-left:auto;margin-right:auto}
.pg .inq-step[data-step=start] .inq-lead{text-wrap:balance}
.pg .inq-step[data-step=start] .ask-go{flex-direction:column;align-items:center;gap:10px}
.pg .inq-step.in{animation:askIn .45s cubic-bezier(.2,.8,.2,1) backwards}
.pg .inq-step.in.bk{animation-name:askBk}
.pg .inq-step:not(.in) .ask-opts li{animation:none}
.pg .inq h2 label{display:block;cursor:text}

/* places: pick as many as you like */
.pg .inq-chips{display:flex;flex-wrap:wrap;gap:10px}
.pg .inq-chips label{position:relative;display:inline-flex;align-items:center;min-height:46px;padding:0 18px;border-radius:999px;border:1.5px solid var(--ink);font-weight:600;font-size:16px;line-height:1.2;color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .16s ease}
.pg .inq-chips input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pg .inq-chips label:has(:checked){background:var(--coral)}
.pg .inq-chips label:has(:focus-visible){outline:3px solid var(--coral);outline-offset:2px}
.pg .inq-chips label:has(:checked:focus-visible){outline-color:var(--ink)}
@media (hover:hover){ .pg .inq-chips label:not(:has(:checked)):hover{background:color-mix(in srgb,currentColor 12%,transparent)} }
.pg .inq-chips label:active{background:color-mix(in srgb,currentColor 22%,transparent)}
.pg .inq-chips label:has(:checked):active{background:#E2472C}

/* one paper in particular: a quiet line under the places */
.pg .inq-one{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-top:6px;font-size:15px;font-weight:600;color:var(--mute)}
.pg .inq-one select{flex:0 1 190px;width:150px;min-width:0;max-width:100%;text-overflow:ellipsis;min-height:44px;margin:0;padding:6px 2px 6px 0;border:0;border-bottom:2px solid var(--ink);border-radius:0;background:transparent;font:500 17px var(--body);color:var(--ink);cursor:pointer;outline:none;transition:border-color .2s}
.pg .inq-one select:focus-visible{border-bottom-color:var(--coral)}

/* one answer. The coral mark sits in the margin beside the words: it never touches them, and the words never move
   between rest, hover, pressed and chosen. (On Get in touch the same mark pushes the words over; here it does not.) */
.pg .inq .ask-opts{--mk:14px;--mk-gap:9px}
.pg .inq .ask-opts button,.pg .inq .ask-opts button:hover,.pg .inq .ask-opts button:focus-visible,.pg .inq .ask-opts button:active,.pg .inq .ask-opts button[aria-pressed="true"]{padding:12px 0;font-size:clamp(20px,2.1vw,24px)}
.pg .inq .ask-opts button::before,.pg .inq .ask-opts button:hover::before{left:calc(0px - var(--mk) - var(--mk-gap));width:var(--mk);opacity:0;transition:opacity .16s ease}
.pg .inq .ask-opts button:focus-visible::before,.pg .inq .ask-opts button:active::before,.pg .inq .ask-opts button[aria-pressed="true"]::before{opacity:1}
@media (hover:hover){ .pg .inq .ask-opts button:hover::before{opacity:1} }
@media (max-width:620px){ .pg .inq .ask-opts{--mk:9px;--mk-gap:6px} }

.pg .inq .ask-f textarea{min-height:4.6em;max-height:11em;resize:none;field-sizing:content}
.pg .inq-fields{display:grid;gap:16px}
.pg .inq-fields label{display:block;font-size:15px;font-weight:600;color:var(--mute)}
.pg .inq-fields input{font-size:clamp(18px,2vw,21px);padding:4px 0 8px;border-bottom-width:2px}
.pg .inq-fields input:-webkit-autofill{-webkit-text-fill-color:var(--ink);transition:background-color 99999s 0s}
@media (min-width:700px){ .pg .inq-fields{grid-template-columns:1fr 1fr;gap:24px 32px} }
/* which papers the picked places reach. Two lines are always kept for it, so Next never moves when a place is picked. */
.pg .inq-reach{min-height:2.9em;margin-top:12px;font-size:15.5px;line-height:1.45;font-weight:500;color:var(--soft);text-wrap:pretty}
/* the Start sheet: the three network figures, the papers in one line, Start and how long it takes */
.pg .inq-lead{min-height:0;margin:0}
.pg .inq .inq-time{margin-left:0}
.pg .inq-nums{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px clamp(10px,3vw,28px);margin:0 0 clamp(14px,2vw,20px);padding:0}
.pg .inq-nums li{font-size:14.5px;line-height:1.3;font-weight:500;color:var(--soft)}
.pg .inq-nums strong{display:block;font-family:var(--display);font-weight:600;font-size:clamp(23px,3.2vw,32px);line-height:1.05;color:var(--ink)}
.pg .inq-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.pg .inq .ask-go{align-items:center;gap:10px 18px}
.pg .inq .ask-go .btn{justify-content:center;min-width:104px}
.pg .inq .ask-go .btn[aria-disabled="true"]{cursor:progress}
.pg .inq-small{font-size:14.5px;font-weight:600;color:var(--mute);text-underline-offset:3px}
.pg .inq-say{font-size:clamp(18px,2vw,22px);font-weight:500;line-height:1.4;max-width:28em;overflow-wrap:anywhere}
.pg .inq .ask-err a{color:inherit;text-underline-offset:3px}
.pg .inq .ask-letter{margin-top:20px}
.pg .inq .ask-letter>div[hidden]+pre{margin-top:0;padding-top:0;border-top:0}
.pg .inq .ask-letter+.ask-go{margin-top:22px}

/* the places picked, standing on the horizon under the sheet */
.pg .inq-towns{position:relative;display:flex;justify-content:center;align-items:flex-end;flex:0 0 auto;min-height:0;max-width:min(92vw,1240px);width:100%;margin:clamp(14px,2.4vw,30px) auto 0;pointer-events:none}
/* No height of its own: the row is as tall as the towns standing in it, so the horizon sits close under the sheet
   and never leaves empty sky above small towns. Neighbouring towns overlap a little and read as one skyline.
   advertising-inquiry.js (seat) sets each one down on the curve of the horizon. */
.pg .inq-towns img{display:block;flex:0 1 auto;min-width:0;width:auto;height:auto;max-height:clamp(84px,13vw,168px);max-width:0;margin:0;opacity:0;transform:translateY(46%);transform-origin:50% 100%;filter:drop-shadow(0 6px 5px rgba(60,32,12,.3));
  transition:max-width .7s cubic-bezier(.2,.8,.2,1),margin .7s cubic-bezier(.2,.8,.2,1),opacity .35s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.pg .inq-towns img.on{max-width:clamp(96px,19vw,250px);margin:0 clamp(-12px,-.6vw,-3px);opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){ .pg .inq-step.in{animation:none} }
/* a phone: the first question and its Next fit above the browser's own bar */
@media (max-width:480px){
  .pg .inq .sky-h{padding-top:14px}
  .pg .inq-ask{margin-top:16px;padding-top:18px}
  .pg .inq-bar{margin-bottom:16px}
  .pg .inq .ask h2,.pg .inq-ask h2{margin-bottom:16px}
  .pg .inq-chips{gap:8px}
  .pg .inq-chips label{min-height:44px;padding:0 15px}
  .pg .inq-one{margin-top:0;flex-wrap:nowrap}
  .pg .inq-one select{flex:1 1 110px;width:110px}
  .pg .inq-reach{margin-top:10px;font-size:15px}
  .pg .inq .ask-go{margin-top:18px}
}

/* a phone: the logo and Menu row stays at the top, on the sky's own colour, so the headline and the sheet slide away
   behind it. Nothing runs under the clock, and the Menu button is never on top of the headline, the line or a control.
   The pinned Menu the other pages show once you scroll is the same button in the same corner, so it is not needed here. */
@media (max-width:700px){
  .pg .inq{padding-top:calc(66px + env(safe-area-inset-top,0px))}
  .pg .inq .sky-top{position:fixed;left:0;right:0;top:0;z-index:40;padding-top:calc(14px + env(safe-area-inset-top,0px));padding-bottom:8px;background:var(--sky)}
  .pg .inq .sky-top::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px;background:linear-gradient(var(--sky),transparent);pointer-events:none}
  /* the same sky reaches up behind the clock, so nothing shows there when the keyboard slides the view */
  .pg .inq .sky-top::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:240px;background:var(--sky);pointer-events:none}
  body:has(.inq) .sn-pin{display:none}
}
/* name and business share a row, so all four fields sit above the keyboard */
@media (min-width:360px) and (max-width:699px){ .pg .inq-fields{grid-template-columns:1fr 1fr;gap:14px 18px} }
/* name and business, then email on its own line, then phone and website */
@media (min-width:360px){ .pg .inq-fields label:nth-child(3){grid-column:1/-1} }
