/* WpTechStudio: block adaptations.

   styles.css is the prototype stylesheet, unchanged. This file maps core
   block markup onto it: buttons live inside wrapper divs, navigation renders
   lists, icons that were inline SVG are drawn here as CSS masks, and a few
   controls (the burger, the plan switch) are core buttons. Nothing here
   restyles the design; it only re-points the same rules at block output. */

/* ---------- Site shell ---------- */

.wp-site-blocks > * { margin: 0; }

/* Skip link: a paragraph block carrying the link. */
.skip-link { top: -60px; }
.skip-link:focus-within { top: 12px; }
.skip-link a { color: inherit; }

/* The fixed nav and the menu sheet clear the admin bar when logged in. */
.admin-bar .nav { top: 32px; }
.admin-bar .menu { top: 32px; height: calc(100% - 32px); }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .menu { top: 46px; height: calc(100% - 46px); }
}

/* ---------- Brand: the three-stroke mark is drawn as a mask, the STUDIO stamp is <strong> ---------- */

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.nav__brand::before {
  content: "";
  display: inline-block;
  width: 0.81em;
  height: 0.81em;
  align-self: center;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><rect x='0' y='0' width='11' height='44'/><rect x='16.5' y='12' width='11' height='32'/><rect x='33' y='0' width='11' height='44'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><rect x='0' y='0' width='11' height='44'/><rect x='16.5' y='12' width='11' height='32'/><rect x='33' y='0' width='11' height='44'/></svg>") center / contain no-repeat;
  transition: background-color 0.2s ease;
}
.nav__brand:hover::before { background: var(--orange); }
.wordmark a { color: inherit; }
.wordmark strong {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.14em;
  padding: 0.06em 0.14em;
  line-height: 0.81em;
  font-weight: 900;
  background: var(--orange);
  color: var(--orange-ink);
  border-radius: 2px;
}
.nav__brand:hover .wordmark strong { background: var(--orange-hover); }

/* ---------- Buttons: every core button is the ghost pill ---------- */

.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wp-block-button { margin: 0; }
.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--white);
  height: auto;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.wp-block-button__link:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--bg);
}

/* Solid: the popular tier. */
.is-style-solid .wp-block-button__link {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}
.is-style-solid .wp-block-button__link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--orange-ink);
}

/* CTA: the orange pill, the arrow chip drawn as ::after. */
.is-style-cta .wp-block-button__link,
.is-style-cta-large .wp-block-button__link {
  gap: 18px;
  padding: 10px 10px 10px 26px;
  border: 0;
  background: var(--orange);
  color: var(--orange-ink);
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1;
  letter-spacing: 0.005em;
  transition: background-color 0.25s ease;
}
.is-style-cta .wp-block-button__link::after,
.is-style-cta-large .wp-block-button__link::after {
  content: "";
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--orange-ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a2b' stroke-width='2'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  transition: transform 0.45s var(--ease-out);
}
.is-style-cta .wp-block-button__link:hover,
.is-style-cta-large .wp-block-button__link:hover {
  background: var(--orange-hover);
  color: var(--orange-ink);
}
.is-style-cta .wp-block-button__link:hover::after,
.is-style-cta-large .wp-block-button__link:hover::after { transform: rotate(-45deg); }
.is-style-cta-large .wp-block-button__link {
  font-size: clamp(17px, 1.4vw, 21px);
  padding: 12px 12px 12px 32px;
  gap: 22px;
}
.is-style-cta-large .wp-block-button__link::after {
  width: 56px;
  height: 56px;
  background-size: 22px 22px;
}
@media (max-width: 600px) {
  .is-style-cta-large .wp-block-button__link { font-size: 16px; padding: 10px 10px 10px 24px; }
  .is-style-cta-large .wp-block-button__link::after { width: 44px; height: 44px; background-size: 18px 18px; }
}

/* ---------- Nav right end: ghost button and the burger ring ---------- */

.nav__right { gap: 14px; }
.nav .nav__cta .wp-block-button__link {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  min-height: 44px;
}
.nav .nav__cta .wp-block-button__link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}
.nav.is-menu-open .nav__cta { opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
@media (max-width: 900px) { .nav .nav__cta { display: none; } }

.nav__burger .wp-block-button__link {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #ffffff;
  font-size: 0;
  /* The three bars: the middle one is the button's background, the outer two are pseudo-elements. */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 18px 1.5px;
  background-position: center;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, background-size 0.3s var(--ease-out);
}
.nav__burger .wp-block-button__link::before,
.nav__burger .wp-block-button__link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin: -0.75px 0 0 -9px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform 0.45s var(--ease-out);
}
.nav__burger .wp-block-button__link::before { transform: translateY(-6px); }
.nav__burger .wp-block-button__link::after { transform: translateY(6px); }
.nav__burger .wp-block-button__link:hover { border-color: #ffffff; background-color: transparent; background-size: 12px 1.5px; }
.nav__burger .wp-block-button__link[aria-expanded="true"] {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #000000;
  background-size: 0 1.5px;
}
.nav__burger .wp-block-button__link[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav__burger .wp-block-button__link[aria-expanded="true"]::after { transform: rotate(-45deg); }

/* ---------- Menu sheet: a navigation block styled as the stacked links ---------- */

.menu__links { display: block; border-top: 1px solid var(--rule); }
.menu__links .wp-block-navigation__container {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}
.menu__links .wp-block-navigation-item { display: block; }
.menu__links .wp-block-navigation-item__content {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.08em;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(56px, 12.5vh, 150px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: #ffffff;
  transition: color 0.25s ease, padding-left 0.5s var(--ease-out);
}
.menu__links .wp-block-navigation-item__label {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out);
}
.menu.is-open .menu__links .wp-block-navigation-item__label {
  transform: translateY(0);
  transition-delay: calc(0.18s + var(--i) * 0.06s);
}
.menu__links .wp-block-navigation-item:nth-child(1) { --i: 0; }
.menu__links .wp-block-navigation-item:nth-child(2) { --i: 1; }
.menu__links .wp-block-navigation-item:nth-child(3) { --i: 2; }
.menu__links .wp-block-navigation-item:nth-child(4) { --i: 3; }
.menu__links .wp-block-navigation-item:nth-child(5) { --i: 4; }
.menu__links .wp-block-navigation-item:nth-child(6) { --i: 5; }
.menu__links .wp-block-navigation-item__content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-150%, -50%) scale(0.4);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.25s ease;
}
.menu__links .wp-block-navigation-item__content:hover,
.menu__links .wp-block-navigation-item__content:focus-visible {
  padding-left: 0.3em;
  color: var(--grey-1);
  outline: none;
}
.menu__links .wp-block-navigation-item__content:hover::before,
.menu__links .wp-block-navigation-item__content:focus-visible::before {
  transform: translate(0, -50%) scale(1);
  opacity: 1;
}
@media (max-width: 900px) {
  .menu__links .wp-block-navigation-item__content { font-size: clamp(48px, 9vh, 88px); }
}
.menu__blurb .mark { display: block; }
p.menu__mail a { color: inherit; text-decoration: inherit; }

/* ---------- Footer: navigation block as the link row ---------- */

.footer__links .wp-block-navigation__container { gap: 24px; flex-wrap: nowrap; }
.footer__links .wp-block-navigation-item__content { color: var(--grey-2); font-size: 13.5px; }
.footer__links .wp-block-navigation-item__content:hover { color: var(--white); }
@media (max-width: 900px) { .footer__links .wp-block-navigation__container { flex-wrap: wrap; } }

/* ---------- Schedule: tiles and the hover arrow drawn with masks ---------- */

.schedule__tile::before {
  content: "";
  width: 62%;
  height: 62%;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
  transition: transform 0.6s var(--ease-out);
}
.schedule__row:hover .schedule__tile::before { transform: rotate(90deg); }
.glyph-code   { --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M38 22 14 50l24 28 8-8-20-20 20-20zM62 22l24 28-24 28-8-8 20-20-20-20z'/></svg>"); }
.glyph-design { --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect x='12' y='12' width='32' height='76'/><rect x='54' y='12' width='34' height='34'/><circle cx='71' cy='71' r='17'/></svg>"); }
.glyph-search { --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M44 14a30 30 0 1 1 0 60 30 30 0 1 1 0-60zm0 12a18 18 0 1 0 0 36 18 18 0 1 0 0-36z'/><path d='M62 70l8-8 18 18-8 8z'/></svg>"); }
.glyph-plug   { --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect x='32' y='12' width='10' height='26'/><rect x='58' y='12' width='10' height='26'/><path d='M20 38h60v14a30 30 0 0 1-60 0z'/><rect x='45' y='76' width='10' height='14'/></svg>"); }
.glyph-spark  { --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect x='44' y='6' width='12' height='88'/><rect x='6' y='44' width='88' height='12'/><g transform='rotate(45 50 50)'><rect x='44' y='6' width='12' height='88'/><rect x='6' y='44' width='88' height='12'/></g></svg>"); }
.glyph-shield { --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 8l34 12v26c0 22-14 38-34 46C30 84 16 68 16 46V20z'/></svg>"); }
.glyph-bolt   { --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M56 6 20 56h24l-6 38 40-52H54z'/></svg>"); }
.glyph-stack  { --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect x='14' y='14' width='72' height='18'/><rect x='14' y='41' width='72' height='18'/><rect x='14' y='68' width='72' height='18'/></svg>"); }

/* The arrow chip at the row's end: placed in the fifth column explicitly so
   the four content blocks auto-flow into the first four. */
.schedule__row::before {
  content: "";
  grid-column: 5;
  grid-row: 1;
  justify-self: end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  transform: scale(0) rotate(-45deg);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.3s ease;
}
.schedule__row:hover::before { transform: scale(1) rotate(0deg); opacity: 1; }
@media (max-width: 1080px) { .schedule__row::before { display: none; } }

/* ---------- Client panel: check and lock icons ---------- */

.panel__row::before {
  content: "";
  width: 14px;
  height: 14px;
  align-self: center;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><path d='M5 12l4 4L19 6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><path d='M5 12l4 4L19 6'/></svg>") center / contain no-repeat;
}
.panel__row:not(.panel__row--locked)::before { background: var(--orange); }
.sheet--paper .panel__row:not(.panel__row--locked)::before { background: #d94a20; }
.panel__row--locked::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><rect x='5' y='11' width='14' height='10' rx='1.5'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><rect x='5' y='11' width='14' height='10' rx='1.5'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
}

/* ---------- Plans: the switch is a buttons block, the thumb is ::before ---------- */

.switch { padding: 4px; }
.switch.wp-block-buttons { display: inline-grid; grid-auto-flow: column; gap: 0; }
.switch .wp-block-button__link {
  border: 0;
  min-height: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  transition: color 0.3s ease;
}
.switch .wp-block-button__link:hover { background: transparent; color: var(--white); }
.switch .wp-block-button__link[aria-pressed="true"] { color: var(--bg); }
.switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.45s var(--ease-out);
}
.switch[data-mode="once"]::before { transform: translateX(100%); }
@media (max-width: 600px) { .switch .wp-block-button__link { padding: 9px 12px; font-size: 13px; } }

/* Tier lists: three list blocks read as one ruled list; the check is a mask. */
.tier__lists { margin-top: 20px; }
.tier__list { margin-top: 0; border-top: 1px solid var(--rule); }
.tier__list + .tier__list { border-top: 0; }
.tier__list li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 5px;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M5 12l4 4L19 6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M5 12l4 4L19 6'/></svg>") center / contain no-repeat;
}
.tier__list li.is-off::before { background: var(--grey-3); }
.tier__price p { margin: 0; }
.tier__cta.wp-block-buttons { margin-top: 28px; justify-self: start; align-self: end; }
.tier--popular .tier__cta { background: none; border: 0; }

/* ---------- Quotes: core quote block inside the figure group ---------- */

.quote .wp-block-quote { margin: 0; padding: 0; border: 0; }
.quote .wp-block-quote p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.quote__who p { margin: 0; }

/* ---------- FAQ: core details blocks, the plus drawn as ::after ---------- */

.faq .wp-block-details { margin: 0; }
.faq summary::after {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><path d='M12 5v14M5 12h14'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><path d='M12 5v14M5 12h14'/></svg>") center / contain no-repeat;
  transition: transform 0.4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }

/* ---------- Close: the bill is two heading blocks fitted by main.js ---------- */

.close__line.wp-block-heading { margin: 0; }

/* ---------- Element-selector rules in styles.css that now catch print-mark paragraphs ---------- */

/* The copy's paragraph rhythm must not reach into the client panel's rows. */
.edge__copy .panel p { margin-top: 0; }
.panel__head p { margin: 0; }

/* Marks keep their own size and colour where the prototype styles "every p" in a container. */
.plate__meta p.mark,
.plans__foot p.mark,
.plates__foot p.mark {
  font-size: 11px;
  line-height: 1.55;
  color: var(--grey-2);
  margin-top: 0;
}
