/*
 * Work page plans (Nick 2026-11-28, mockup v3).
 * When the script in work.html runs it adds body.w2gw-on, which hides the old
 * Weebly plan sections (.w2gw-hide) and shows .w2gw instead: intro,
 * Drop in / Membership tabs, flex + dedicated plans with each plan's own terms,
 * Virtual Office card. Phones: plans are rows that open one at a time, plus a
 * sticky Book PAYGO / Free account bar. 768px and up: plans are side-by-side
 * cards with everything visible. If the script fails, the old layout shows.
 * The Select buttons use the same links and #w2g-* pop-ups as before.
 */
.w2gw, .w2gw-bar { display: none; }
body.w2gw-on .w2gw-hide { display: none !important; }
body.w2gw-on .w2gw { display: block; }

.w2gw, .w2gw-bar {
  --rust: #b4340e; --ink: #2a2a2a; --muted: #6b655e; --body: #4a4540;
  --card: #f6f2ec; --warm: #f3efe9; --line: #e6e2dc; --amber: #e9b45a; --brown: #1d1410;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.w2gw { padding: 28px 20px 36px; }
.w2gw *, .w2gw *::before, .w2gw *::after, .w2gw-bar, .w2gw-bar * { box-sizing: border-box; }
.w2gw a, .w2gw-bar a { text-decoration: none !important; }

.w2gw-lead { font-size: 16px; line-height: 28px; margin: 0 0 18px; color: #333; }

.w2gw-tabs { display: flex; gap: 8px; margin: 0 0 6px; }
.w2gw-tab {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 600 13px/1 "Montserrat", sans-serif; padding: 11px 16px; border-radius: 999px; cursor: pointer;
}
.w2gw-tab[aria-selected="true"] { background: var(--rust); border-color: var(--rust); color: #fff; }

.w2gw-h {
  font-family: "Montserrat", sans-serif; font-size: 34px; line-height: 1.15; font-weight: 400;
  letter-spacing: 1px; color: var(--ink); margin: 28px 0 8px; text-transform: none;
}
.w2gw-sublead { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0 0 14px; }

.w2gw-rows { display: flex; flex-direction: column; gap: 10px; }
.w2gw-row { background: var(--card); border-radius: 12px; }
.w2gw-row[open] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--rust); }
.w2gw-row > summary { list-style: none; cursor: pointer; padding: 16px; border-radius: 12px; }
.w2gw-row > summary::-webkit-details-marker { display: none; }
.w2gw-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.w2gw-name { font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.w2gw-tag {
  display: inline-block; margin-left: 6px; vertical-align: 2px; padding: 2px 6px; border-radius: 3px;
  background: var(--amber); color: var(--brown); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.w2gw-price { font-size: 18px; font-weight: 700; white-space: nowrap; }
.w2gw-price small { font-size: 11px; font-weight: 500; }
.w2gw-sub { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.w2gw-sub::after { content: "+"; font-size: 18px; line-height: 13px; color: var(--rust); }
.w2gw-row[open] .w2gw-sub::after { content: "\2212"; }
.w2gw-body { padding: 0 16px 16px; font-size: 13px; line-height: 1.6; }
.w2gw-body h4 { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.w2gw-body ul { margin: 0 0 12px; padding-left: 18px; }
.w2gw-terms {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--warm);
  font-size: 10px; line-height: 1.5; color: var(--muted);
}
.w2gw-terms b { display: block; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }

.w2gw-btn {
  display: block; width: 100%; text-align: center; border: 0; border-radius: 6px;
  font: 700 13px/1.2 "Montserrat", sans-serif; letter-spacing: .04em; padding: 14px 10px; cursor: pointer;
}
.w2gw a.w2gw-btn--rust, .w2gw-bar a.w2gw-btn--rust { background: var(--rust); color: #fff !important; }
.w2gw-bar a.w2gw-btn--line { background: #fff; color: var(--rust) !important; box-shadow: inset 0 0 0 1.5px var(--rust); }

.w2gw-addon { margin-top: 28px; padding: 16px; border-radius: 12px; background: var(--amber); color: var(--brown); }
.w2gw-addon-k { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.w2gw-addon .w2gw-top { margin-top: 6px; }
.w2gw-addon p { font-size: 13px; line-height: 1.55; margin: 6px 0 12px; }
.w2gw-addon .w2gw-terms { background: rgba(255,255,255,.55); color: var(--brown); }
.w2gw a.w2gw-btn--brown { background: var(--brown); color: #fff !important; }

.w2gw-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 20px 0 0; text-align: center; }
.w2gw-note a { color: var(--rust) !important; text-decoration: underline !important; }

.w2gw a:focus-visible, .w2gw button:focus-visible, .w2gw summary:focus-visible, .w2gw-bar a:focus-visible {
  outline: 2px solid #b4340e; outline-offset: 2px;
}

/* Phones: sticky Book PAYGO / Free account bar. */
@media (max-width: 767px) {
  body.w2gw-on .footer-wrap { padding-bottom: 76px; }
  .w2gw-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
    grid-template-columns: 1.4fr 1fr; gap: 8px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,248,240,.97); border-top: 1px solid #e6e2dc;
  }
  body.w2gw-on .w2gw-bar { display: grid; }
  body.nav-open .w2gw-bar, body:has(.w2gloc-overlay.is-open) .w2gw-bar { display: none; }
  .w2gw-bar .w2gw-btn { padding: 13px 6px; font-size: 12.5px; }
}

/* 768px and up: a wide-screen layout in the same design language. No tabs and
   no tap-to-open rows (the script shows both groups and keeps every plan open):
   flex plans 3 across, dedicated plans 2 across, then PAYGO and Virtual Office
   as a pair of cards. */
@media (min-width: 768px) {
  body.w2gw-on .w2gw {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; align-items: stretch;
    max-width: 1180px; margin: 0 auto; padding: 56px 32px 64px;
  }
  .w2gw-lead { grid-column: 1 / -1; grid-row: 1; text-align: center; max-width: 720px; margin: 0 auto 4px; }
  .w2gw-tabs { display: none; }
  #w2gw-member { grid-column: 1 / -1; grid-row: 2; }
  #w2gw-drop { grid-column: 1; grid-row: 3; margin-top: 48px; display: flex; flex-direction: column; }
  .w2gw-addon { grid-column: 2; grid-row: 3; margin-top: 48px; }
  .w2gw-note { grid-column: 1 / -1; grid-row: 4; margin-top: 28px; font-size: 13px; }

  .w2gw-h { text-align: center; font-size: 42px; margin: 44px 0 10px; }
  #w2gw-drop .w2gw-h { display: none; }
  .w2gw-sublead { text-align: center; font-size: 16px; max-width: 720px; margin: 0 auto 26px; }
  .w2gw-rows { display: grid; gap: 20px; align-items: stretch; }
  .w2gw-rows--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w2gw-rows--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
  #w2gw-drop .w2gw-rows { flex: 1; display: flex; }

  .w2gw-row, .w2gw-row[open] {
    flex: 1; display: flex; flex-direction: column; background: #fff; border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .w2gw-row--pick, .w2gw-row--pick[open] { box-shadow: inset 0 0 0 1.5px var(--rust); }
  /* Let the open content fill the card so every button sits at the bottom. */
  .w2gw-row::details-content { flex: 1; display: flex; flex-direction: column; }
  .w2gw-row > summary { cursor: default; padding: 22px 22px 14px; }
  .w2gw-sub::after, .w2gw-row[open] .w2gw-sub::after { content: none; }
  .w2gw-body { flex: 1; display: flex; flex-direction: column; padding: 0 22px 22px; font-size: 14px; }
  .w2gw-body .w2gw-btn { margin-top: auto; }
  #w2gw-drop .w2gw-sublead { text-align: left; font-size: 14px; margin: 0 0 16px; }
  .w2gw-name { font-size: 17px; }
  .w2gw-price { font-size: 22px; }

  .w2gw-addon { display: flex; flex-direction: column; padding: 22px; border-radius: 14px; }
  .w2gw-addon p { font-size: 14px; }
  .w2gw-addon .w2gw-btn { margin-top: auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  body.w2gw-on .w2gw { padding-left: 20px; padding-right: 20px; column-gap: 14px; }
  .w2gw-rows { gap: 14px; }
  .w2gw-row > summary { padding: 18px 16px 12px; }
  .w2gw-body { padding: 0 16px 18px; font-size: 13px; }
  .w2gw-top { flex-direction: column; gap: 2px; }
  .w2gw-name { font-size: 15px; }
  .w2gw-addon { padding: 18px 16px; }
}

/* Phones only for now (Nick 2026-11-28: keep today's desktop page). From 768px
   up the old Weebly plan sections show and the new layout stays hidden. */
@media (min-width: 768px) {
  body.w2gw-on .w2gw { display: none !important; }
  body.w2gw-on .w2gw-hide { display: block !important; }
}
