/* ── The listing editor ───────────────────────────────────────────────
 *
 * Was one column, seven sections deep, with the save button at the bottom of
 * a five-minute scroll and no way to see what any of it produced. Now: tabs,
 * a pinned preview of the real directory tile, and a tracker that names the
 * next thing worth doing.
 *
 * Rewritten onto the system tokens in 4.70.27. The page had been moved to the
 * chrome + strip shell without its components following, so a blue editor
 * rendered inside a green one. Everything this file can borrow from
 * hrhs-system.css it now borrows — .wrap, .phead, .sec, .rcard, .fld, .inp,
 * .btn, .notice, .eyebrow — and what is left here are the shapes that exist
 * nowhere else: the tab bar that doubles as a progress map, the sticky save
 * bar, the preview frame and the tracker ring.
 *
 * The .hrhs-pe-tile block that used to live here is gone with the hand-built
 * tile it styled: the sidebar renders _provider-card-v2.php, the same partial
 * the directory renders, so a preview cannot drift from the thing it previews.
 * Nothing referenced those class names any more.
 *
 * Loaded only on /dashboard/provider/profile/. */

/* The head is .phead now; this only removes the margin .phead sets, because the
 * tab bar directly under it carries its own. */
.hrhs-pe-head { margin-bottom: 16px; }

/* Every tick box on this page — hours, payment methods, service areas, trust,
   the specialty grid — in the system green rather than the browser default
   blue. One rule, because they are all real <input type=checkbox>. */
.hrhs-pe input[type="checkbox"], .hrhs-pe input[type="radio"] { accent-color: var(--go); }

/* ── tabs, which are also the progress map ───────────────────────── */
.hrhs-pe-tabs {
    display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px;
    border-bottom: 1px solid var(--line); margin-bottom: 20px;
    scrollbar-width: thin;
}
/* position:relative is load-bearing, not decoration.
 *
 * Each locked tab carries a .hrhs-screen-reader-text span, which is
 * position:absolute. With no positioned ancestor its containing block was the
 * page, so the scrolling tab bar did not clip it — and a 1px span sitting at
 * x=895 made the whole DOCUMENT 896px wide. Every phone-width view of this page
 * scrolled sideways because of three invisible words. */
.hrhs-pe-tab {
    position: relative;
    display: inline-flex; align-items: center; white-space: nowrap;
    font-size: 13.5px; font-weight: 600; color: var(--muted);
    text-decoration: none; padding: 9px 14px; border-radius: 11px;
    border: 1px solid transparent; min-height: 40px;
}
.hrhs-pe-tab:hover { background: var(--tint); color: var(--ink); }
.hrhs-pe-tab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.hrhs-pe-tab:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }
.hrhs-pe-tab__n {
    display: inline-grid; place-items: center; width: 18px; height: 18px;
    border-radius: 50%; font-size: 10px; margin-right: 7px;
    background: var(--line); color: var(--muted); font-weight: 800;
}
.hrhs-pe-tab.is-done .hrhs-pe-tab__n { background: var(--go-bed); color: var(--go); }
.hrhs-pe-tab.is-on .hrhs-pe-tab__n { background: rgba(255,255,255,.16); color: #fff; }
.hrhs-pe-tab.is-on.is-done .hrhs-pe-tab__n { background: var(--green); color: #062B18; }
/* Locked reads as locked, not as finished. A green tick beside Contact told a
 * free member they had completed a section they cannot open. */
.hrhs-pe-tab.is-locked { color: var(--warn-ink); }
.hrhs-pe-tab.is-locked .hrhs-pe-tab__n { background: var(--warn-bed); color: var(--warn-ink); font-size: 9.5px; }
.hrhs-pe-tab.is-locked.is-on { background: var(--warn-bed); color: var(--warn-deep); border-color: var(--warn-line); }
.hrhs-pe-tab.is-locked.is-on .hrhs-pe-tab__n { background: var(--warn-deep); color: #fff; }

/* Visible to a screen reader, not on screen: the padlock is decorative and the
 * word has to reach somebody who cannot see it. */
.hrhs-screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Typed into, not yet saved. Sits on the tab because with sections hidden the
 * change is invisible the moment they move on. */
.hrhs-pe-tab__dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
    margin-left: 7px;
}

/* ── the two columns ─────────────────────────────────────────────── */
.hrhs-pe { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.hrhs-pe__main { min-width: 0; }
/* Clears the masthead and the strip, both sticky, or the preview slides under
 * them as the form scrolls. */
.hrhs-pe__side { position: sticky; top: 152px; display: flex; flex-direction: column; gap: 16px; }

/* One section at a time. Hidden, never removed, so one Save posts everything. */
.hrhs-pe-panel { display: none; }
.hrhs-pe-panel.is-on { display: block; }
/* Without the script every panel shows: long, but complete and still saveable. */
.no-js .hrhs-pe-panel { display: block; }

/* ── the sticky save bar ─────────────────────────────────────────── */
.hrhs-pe-save {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; justify-content: flex-end; align-items: center; gap: 14px;
    padding: 14px 0 18px; margin-top: 6px;
    background: linear-gradient( to top, var(--page) 62%, rgba(241, 244, 249, 0) );
}
.hrhs-pe-save__note { font-size: 12.5px; color: var(--warn-ink); font-weight: 700; }

/* ── sidebar cards ───────────────────────────────────────────────── */
/* .rcard supplies the frame; these two rules re-flush it, because the header
 * strip and the tinted body run to the card edge. */
.hrhs-pe-card { padding: 0; overflow: hidden; }
.hrhs-pe-card__hd {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 16px; border-bottom: 1px solid var(--line); margin: 0;
}
.hrhs-pe-card__hd b {
    font-size: 11px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted);
}
.hrhs-pe-card__hd a { font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--go); }
.hrhs-pe-card__hd a:hover { text-decoration: underline; }
.hrhs-pe-card__bd { padding: 16px; background: var(--tint); }
.hrhs-pe-card__note { margin: 11px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── the tracker ─────────────────────────────────────────────────── */
.hrhs-pe-prog { display: flex; gap: 15px; align-items: center; padding: 18px 16px 16px; }
.hrhs-pe-ring { position: relative; width: 78px; height: 78px; flex: none; }
/* Flex column, not `display:grid; place-items:center`.
 *
 * A two-child grid makes two rows and centers each child in its OWN row, so the
 * word landed 22px below the ring center — where the clear width inside a 33r/9
 * stroke is only 36px, and COMPLETE is 39px. It sat on the stroke, gray on dark
 * green, and read as a chopped-off word. Centerd as a pair it sits 8px down,
 * where there are 54px to play with. */
.hrhs-pe-ring__t {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}
.hrhs-pe-ring__t b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
/* Three digits and a percent sign do not fit the ring at the two-digit size —
 * "100%" overran the stroke and pushed the word underneath it out of sight,
 * which meant the one state worth celebrating was the one that looked broken.
 * The word is capped to the ring's inner width for the same reason: at 78px
 * across with a 9px stroke there are 52px of clear middle, and COMPLETE set at
 * 9px with letter-spacing did not fit them. */
.hrhs-pe-ring__t.is-full b { font-size: 16px; letter-spacing: -.04em; }
/* Sized to the clear middle of the ring, not to the ring. At 78px across with a
 * 9px stroke there are 52px of unpainted center; COMPLETE set at 8px with
 * letter-spacing measured 58px and ran out over the stroke, where gray text on
 * dark green is not text at all — the word looked chopped in half. */
.hrhs-pe-ring__t span {
    display: block; max-width: 50px; font-size: 7px; font-weight: 700;
    letter-spacing: 0; text-transform: uppercase; color: var(--muted);
    line-height: 1.2; margin-top: 2px;
}
.hrhs-pe-prog__lv { min-width: 0; }
.hrhs-pe-prog__lv b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.hrhs-pe-prog__lv p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.hrhs-pe-badge {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; background: var(--go-bed); color: var(--go);
    padding: 3px 9px; border-radius: 999px; margin-bottom: 7px;
}

.hrhs-pe-steps { border-top: 1px solid var(--line); }
.hrhs-pe-step {
    display: flex; gap: 11px; align-items: flex-start; padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit;
}
.hrhs-pe-step:last-child { border-bottom: 0; }
.hrhs-pe-step:hover { background: var(--tint); }
.hrhs-pe-step__ic {
    width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--go-bed); color: var(--go); font-size: 11px; font-weight: 800;
}
.hrhs-pe-step__b { flex: 1; min-width: 0; }
.hrhs-pe-step__b b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.hrhs-pe-step__b span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.hrhs-pe-step__p {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: var(--go);
    background: var(--go-bed); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}

.hrhs-pe-prog__ft { padding: 14px 16px; background: var(--tint); border-top: 1px solid var(--line); }
.hrhs-pe-prog__ft b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.hrhs-pe-prog__ft p { margin: 3px 0 11px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 1100px) {
    .hrhs-pe { grid-template-columns: 1fr; }
    /* The preview goes above the form on a narrow screen: pinned to the bottom
     * of a page this long, it would be a footer nobody scrolls to. */
    .hrhs-pe__side { position: static; order: -1; }
}
@media (max-width: 700px) {
    .hrhs-pe-save { justify-content: stretch; }
    .hrhs-pe-save .btn { flex: 1; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   SET PRICES — the builder
   ─────────────────────────────────────────────────────────────────────
   The public card's own styles live in hrhs-core.css and are reused verbatim
   by the preview, which is the point: the pro is looking at the real component
   with the real numbers, not at an impression of it.
   ══════════════════════════════════════════════════════════════════════ */

.hrhs-prl { list-style: none; margin: 0 0 4px; padding: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.hrhs-prl__r {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; background: #fff; border-bottom: 1px solid var(--line-soft);
}
.hrhs-prl__r:last-child { border-bottom: 0; }
.hrhs-prl__r.is-off { background: var(--tint); }
.hrhs-prl__r.is-drag { opacity: .45; }
.hrhs-prl__gr { color: var(--faint); cursor: grab; line-height: 0; flex-shrink: 0; }
.hrhs-prl__b { flex: 1; min-width: 0; }
.hrhs-prl__b b { display: block; font-size: 0.86rem; letter-spacing: -.01em; color: var(--ink); }
.hrhs-prl__b span { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.hrhs-prl__r.is-off .hrhs-prl__b b, .hrhs-prl__r.is-off .hrhs-prl__b span { color: var(--faint); }
.hrhs-prl__p { font-size: 0.86rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.hrhs-prl__r.is-off .hrhs-prl__p { color: var(--faint); }
.hrhs-prl__ed { font-size: 0.77rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.hrhs-prl__del { font: inherit; font-size: 0.77rem; font-weight: 800; color: var(--bad);
  background: none; border: 0; cursor: pointer; padding: 4px 2px; white-space: nowrap; }

/* Hide / show. A switch rather than a checkbox because it is a state, not a
   choice being submitted with a form — it takes effect on click. */
.hrhs-tog2 {
  width: 38px; height: 22px; border-radius: 99px; background: var(--go);
  border: 0; position: relative; flex-shrink: 0; cursor: pointer; padding: 0;
}
.hrhs-tog2 i { position: absolute; top: 2px; left: 18px; width: 18px; height: 18px; border-radius: 50%; background: #fff; display: block; transition: left .14s ease; }
.hrhs-tog2.is-off { background: #D3DCEA; }
.hrhs-tog2.is-off i { left: 2px; }

.hrhs-prsplit { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.hrhs-prprev { position: sticky; top: 18px; }

/* The shape picker. Real radios, hidden, so the keyboard and the form both
   behave without a line of script — the labels are the control. */
.hrhs-prseg { display: flex; gap: 6px; flex-wrap: wrap; }
.hrhs-prseg__o { position: relative; }
.hrhs-prseg__o input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.hrhs-prseg__o span {
  display: inline-block; font-size: 0.8rem; font-weight: 800; line-height: 1;
  padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2);
}
.hrhs-prseg__o.is-on span { background: var(--ink); border-color: var(--ink); color: #fff; }
.hrhs-prseg__o input:focus-visible + span { outline: 2px solid var(--go); outline-offset: 2px; }

.hrhs-money { position: relative; }
.hrhs-money > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.87rem; font-weight: 700; color: var(--muted); pointer-events: none; }
.hrhs-money .in { padding-left: 26px; }

.hrhs-prpicks { display: flex; gap: 8px; flex-wrap: wrap; }
.hrhs-prpick { position: relative; width: 62px; height: 48px; border-radius: 9px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.hrhs-prpick input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.hrhs-prpick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hrhs-prpick.is-on { border-color: var(--go); box-shadow: 0 0 0 3px var(--go-bed); }
.hrhs-prpick--none { display: grid; place-items: center; background: var(--tint); border: 1px dashed var(--line); }
.hrhs-prpick--none span { font-size: 0.68rem; font-weight: 800; color: var(--faint); }

.hrhs-prsave { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* The preview reuses the real card, which is a two-column grid on the public
   listing; in a 330px rail it is one. */
.hrhs-prprev .hrhs-prices { grid-template-columns: 1fr; }
.hrhs-prprev .hrhs-price__act .hrhs-btn { pointer-events: none; }

@media (max-width: 1080px) {
  .hrhs-prsplit { grid-template-columns: 1fr; }
  .hrhs-prprev { position: static; }
  .hrhs-prprev .hrhs-prices { max-width: 380px; }
}
@media (max-width: 560px) {
  /* At this width the row is a name, a price and four controls. The edit and
     delete links go under, or the title gets two characters. */
  .hrhs-prl__r { flex-wrap: wrap; }
  .hrhs-prl__b { flex: 1 1 100%; order: 1; }
  .hrhs-prl__gr { display: none; }
}

/* The specialty tick boxes (moved from hrhs-jobboard.css in 4.95.0, the
   only rule that sheet still styled - and this page never loaded it). */
.hrhs-jb-check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: var(--ink);
    flex: 1;
    min-width: 180px;
    padding-bottom: 9px;
    cursor: pointer;
}
.hrhs-jb-check input { width: 16px; height: 16px; accent-color: var(--go); cursor: pointer; }

/* 5.22.0: Send for review. In place of the steps band until the listing is
 * approved: the three must-haves, then the button. */
.hrhs-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center;
    margin: 0 0 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.hrhs-send__t { min-width: 0; }
.hrhs-send h2 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.hrhs-send p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hrhs-send__f { margin: 0; }
.hrhs-send__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px;
    border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 800 14px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none; }
.hrhs-send__btn[disabled] { background: var(--line); border-color: var(--line); color: #8A99AD; cursor: not-allowed; }
.hrhs-send__btn--line { background: #fff; color: var(--ink); border-color: #D5DEEA; }
.hrhs-send--ready { border-color: #0BFF84; box-shadow: 0 0 0 3px rgba(11,255,132,.18); }
.hrhs-send--ready .hrhs-send__btn:not(.hrhs-send__btn--line) { background: #0BFF84; border-color: #0BFF84; color: #0A1A2F; }
.hrhs-send--sent { background: #FFFBF0; border-color: #F2D58A; }
.hrhs-send--fix { background: #FFF8F6; border-color: #F3B4AC; }
.hrhs-send__btn:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }
.hrhs-send__must { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hrhs-send__must a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border-radius: 999px;
    background: var(--tint, #F1F4F9); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.hrhs-send__must a:hover { color: var(--ink); }
.hrhs-send__must .is-done a { background: #E6F7EF; border-color: #BDE9D2; color: #0A5C38; }
.hrhs-send__dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #9AA8BA; display: inline-grid; place-items: center; flex: none; color: #fff; }
.hrhs-send__must .is-done .hrhs-send__dot { border: 0; background: #0A7A4B; }
.hrhs-send__s { display: none; }
.hrhs-send__confirm { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(10,26,47,.5); }
.hrhs-send__confirm[hidden] { display: none; }
.hrhs-send__sheet { width: min(400px, 100%); background: #fff; border-radius: 20px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hrhs-send__sheet h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.hrhs-send__sheet p { margin: 0; font-size: 14px; color: var(--muted); }
.hrhs-send__sheet ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 3px; }
.hrhs-send__acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.hrhs-send__sheet .hrhs-send__btn:not(.hrhs-send__btn--line) { background: #0BFF84; border-color: #0BFF84; color: #0A1A2F; }
@media (max-width: 620px) {
    .hrhs-send { grid-template-columns: minmax(0, 1fr); }
    .hrhs-send__f, .hrhs-send__f .hrhs-send__btn, .hrhs-send > .hrhs-send__btn { width: 100%; }
    .hrhs-send__f { order: 3; }
    .hrhs-send__l { display: none; }
    .hrhs-send__s { display: inline; }
}
.hrhs-must { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #FEF0EE; color: #B42318;
    font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-transform: none; vertical-align: 1px; }
.hrhs-pe-tab.is-must .hrhs-pe-tab__n { background: #FEF0EE; color: #B42318; }
.hrhs-pe-tab.is-on.is-must .hrhs-pe-tab__n { background: #fff; color: #B42318; }
.hrhs-send h2, .hrhs-send__sheet h3 { font-weight: 800; font-family: Inter, sans-serif; }
