/* WordPress-only additions. The HTML Version 1 styles (styles.css) are untouched. */

/* contact form: spam trap (invisible to people), privacy tick box, sending state, thank-you message */
.bws-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.55; color: var(--mist); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); }
.consent .link { font-weight: 500; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.form__done { grid-column: 1 / -1; padding: 12px 0; outline: none; }
.form__done .h3 { color: var(--cream); margin-bottom: 12px; }
.form__done p { color: var(--mist); line-height: 1.6; }

/* Version 3.1 contact page: the quick questions */
.form__intro { grid-column: 1 / -1; margin-top: -4px; font-size: .9rem; line-height: 1.55; color: var(--mist); }
.form__part { grid-column: 1 / -1; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line-d); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.checks { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.checks legend { grid-column: 1 / -1; padding: 0; margin-bottom: 10px; font-size: .88rem; font-weight: 500; color: var(--cream); }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: var(--cream); cursor: pointer; }
.checks input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--gold); }
.field select optgroup { background: var(--navy); color: var(--gold-soft); font-style: normal; }
.cta__promise { margin: 4px 0 26px; gap: 10px; }
@media (max-width: 640px) {
  .checks { grid-template-columns: 1fr; }
  .cta__promise { display: inline-grid; text-align: left; }
}

/* Version 3.1 Our work / home cards: a website running live inside the screen, phone or thumbnail */
.live { position: relative; display: block; width: 100%; aspect-ratio: 1582 / 848; overflow: hidden; background: #fff; }
.screen__view, .phone__view { position: relative; }
.screen__view > .live, .phone__view > .live { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
.live__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.live iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; }

/* Version 3.1 home page: the four promises (the last one is the highlighted "Don't want it? Don't pay.") */
.how .plans-foot { margin-top: 8px; }

/* content typed into the WordPress editor (extra sections, other pages) */
.bws-content { max-width: 760px; color: var(--slate); line-height: 1.7; }
.bws-content > * + * { margin-top: 1em; }
.bws-content h2, .bws-content h3 { font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.2; margin-top: 1.6em; }
.bws-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.bws-content h3 { font-size: 1.35rem; }
.bws-content ul, .bws-content ol { padding-left: 1.3em; }
.bws-content ul { list-style: disc; }
.bws-content ol { list-style: decimal; }
.bws-content a { color: var(--gold-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.bws-content img { max-width: 100%; height: auto; }
.bws-404 { display: flex; flex-wrap: wrap; gap: 14px; }

/* search pages (pay monthly guide, areas we cover, the five area pages): a question, then its answer */
.answer { max-width: 840px; }
.answer .h2 { margin-bottom: 22px; }
.answer .lead { max-width: none; color: var(--ink); font-weight: 500; }
.answer > p:not(.lead) { color: var(--slate); line-height: 1.7; }
.answer > * + p, .answer > p + ul { margin-top: 16px; }
.answer > .ticks, .answer > .dash { margin-top: 22px; }
.answer .dash { display: grid; gap: 12px; color: var(--slate); }
.answer .dash li::before { background: var(--gold-deep); }
.answer .dash b { color: var(--ink); }
.answer > .btn { margin-top: 30px; }
.midnight .answer .lead, .navy .answer .lead { color: var(--cream); }
.midnight .answer > p:not(.lead), .navy .answer > p:not(.lead) { color: var(--mist); }
.answer__facts { margin-top: clamp(40px, 5vw, 64px); }
.levels--areas { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
.towns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.towns__list { align-content: start; padding-top: 8px; }
.included .plans-foot { margin-top: 8px; }
.footer__areas { margin-top: 40px; font-size: .9rem; line-height: 1.7; color: var(--mist); }
.footer__areas a { color: var(--cream); font-weight: 400; text-decoration: none; }
.footer__areas a:hover { color: var(--gold-soft); }
.footer__areas + .footer__bottom { margin-top: 22px; }
@media (max-width: 900px) {
  .levels--areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .towns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .levels--areas { grid-template-columns: 1fr; row-gap: 8px; }
  .answer, .footer__areas { text-align: center; margin-left: auto; margin-right: auto; }
  .answer .ticks, .answer .dash, .towns__list { display: inline-grid; text-align: left; }
  .towns { justify-items: center; }
  .towns__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* logged-in admin bar: keep the fixed header and the phone menu below it (visitors never see this) */
@media (min-width: 783px) {
  body.admin-bar .header { top: 32px; }
  body.admin-bar .menu { top: 120px; }
}
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  body.admin-bar .menu { top: 134px; }
}
@media (min-width: 601px) and (max-width: 640px) {
  body.admin-bar .menu { top: 118px; }
}
@media (max-width: 600px) {
  body.admin-bar .header { top: 0; }
  body.admin-bar .menu { top: 72px; }
}
