/* ==========================================================
   Showstopper — editor block styles used on policy pages
   (loaded on the site and inside the WordPress editor)
   ========================================================== */

/* Zero-specificity reset so the design's own component margins (policy.css) win */
:where(.entry-content > * + *) { margin-top: 0; }
.policy-body h2.wp-block-heading { margin: 22px 0 10px; color: var(--brown); font-size: clamp(21px, 2.3vw, 24px); }
.entry-content h3.wp-block-heading { margin: 0 0 4px; color: var(--brown); font-size: 17px; }
/* Paragraph blocks only — Icon List markup keeps the sizes from policy.css */
.entry-content > p:not([class]),
.wp-block-group__inner-container > p:not([class]) { font-size: 13.5px; line-height: 1.65; }
.entry-content a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }

/* Lists with icons: ticks, gold ticks, crosses, dots */
.wp-block-list.is-style-checks,
.wp-block-list.is-style-gold-checks,
.wp-block-list.is-style-crosses,
.wp-block-list.is-style-dots { list-style: none; margin: 0; padding: 0; }
.is-style-checks > li,
.is-style-gold-checks > li,
.is-style-crosses > li,
.is-style-dots > li { position: relative; padding-left: 27px; font-size: 13.5px; line-height: 1.55; }
.is-style-checks > li + li,
.is-style-gold-checks > li + li,
.is-style-crosses > li + li,
.is-style-dots > li + li { margin-top: 6px; }
.is-style-checks > li::before,
.is-style-gold-checks > li::before,
.is-style-crosses > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-checks > li::before { background: #3e9b4f; }
.is-style-gold-checks > li::before { background: var(--gold-2); }
.is-style-crosses > li::before {
  background: #d6402f;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm3.5 12.1-1.4 1.4L12 13.4l-2.1 2.1-1.4-1.4 2.1-2.1-2.1-2.1 1.4-1.4 2.1 2.1 2.1-2.1 1.4 1.4-2.1 2.1z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm3.5 12.1-1.4 1.4L12 13.4l-2.1 2.1-1.4-1.4 2.1-2.1-2.1-2.1 1.4-1.4 2.1 2.1 2.1-2.1 1.4 1.4-2.1 2.1z'/%3E%3C/svg%3E");
}
.is-style-dots > li { padding-left: 18px; }
.is-style-dots > li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }
/* Free-standing tick/cross lists get the soft box from the design */
.policy-body > .wp-block-list.is-style-checks,
.policy-body > .wp-block-list.is-style-crosses,
.policy-body > .wp-block-list.is-style-gold-checks {
  padding: 12px 24px;
  border: 1px solid #efe4d6;
  border-radius: 10px;
  background: #fdfaf6;
}

/* Step cards (numbered list) */
.wp-block-list.is-style-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.is-style-steps > li {
  position: relative;
  padding: 14px 10px 12px;
  border: 1px solid #efe4d6;
  border-radius: 10px;
  background: #fdfaf6;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  counter-increment: step;
}
.is-style-steps > li::before {
  content: "Step " counter(step);
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--brown);
}
.is-style-steps > li + li::after {
  content: "";
  position: absolute;
  left: -23px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Gold header table */
.wp-block-table.is-style-gold { margin: 0; }
.wp-block-table.is-style-gold table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e8dccb;
  border-radius: 8px;
  overflow: hidden;
  font-size: 13.5px;
}
.wp-block-table.is-style-gold th,
.wp-block-table.is-style-gold td { padding: 5px 28px; text-align: left; border: 0; }
.wp-block-table.is-style-gold thead th { background: linear-gradient(180deg, #c08744, #a8773f); color: #fff; font-weight: 500; }
.wp-block-table.is-style-gold tbody td:first-child { width: 50%; font-weight: 500; background: #f9f1e7; border-right: 1px solid #e8dccb; }
.wp-block-table.is-style-gold tbody td { background: #fff; }
.wp-block-table.is-style-gold tbody tr + tr td { border-top: 1px solid #efe4d6; }

/* Boxes */
.wp-block-group.is-style-info-box {
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f8eddf, #fbf4ea);
}
.wp-block-group.is-style-note-box {
  margin-top: 16px;
  padding: 16px 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f9ead6, #fbf2e7);
}
.wp-block-group.is-style-note-box h3.wp-block-heading { margin-bottom: 8px; font-size: 19px; }
.wp-block-group.is-style-card {
  margin-top: 8px;
  padding: 12px 20px;
  border: 1px solid #efe4d6;
  border-left: 3px solid var(--gold-light);
  border-radius: 10px;
  background: #fdfaf6;
}
.wp-block-group.is-style-card p { font-size: 12.5px; }
.policy-body > .wp-block-group.is-style-card:first-of-type { margin-top: 18px; }

@media (max-width: 600px) {
  .wp-block-list.is-style-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .is-style-steps > li + li::after { left: 50%; top: -20px; transform: translateX(-50%) rotate(90deg); }
  .wp-block-table.is-style-gold th, .wp-block-table.is-style-gold td { padding: 7px 12px; }
  .wp-block-group.is-style-info-box, .wp-block-group.is-style-note-box { padding: 14px 16px; }
  .policy-body > .wp-block-list.is-style-checks, .policy-body > .wp-block-list.is-style-crosses, .policy-body > .wp-block-list.is-style-gold-checks { padding: 12px 14px; }
}

/* "Side-by-side boxes" group: two Icon List info boxes with headings (privacy policy) */
.wp-block-group.is-style-pairs > .wp-block-group__inner-container,
.wp-block-group.is-style-pairs:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.is-style-pairs .pair-item { display: flex; flex-direction: column; }
.is-style-pairs .pair-item h2 { margin: 16px 0 8px; color: var(--brown); font-size: clamp(21px, 2.3vw, 24px); }
.is-style-pairs .info-box {
  flex: 1;
  align-items: center;
  gap: 30px;
  padding: 12px 24px;
  border: 1px solid #efe4d6;
  background: #fdfaf6;
}
.is-style-pairs .info-box > svg { width: 38px; height: 38px; }
.is-style-pairs .info-box p { font-size: 12.5px; }
.is-style-pairs .info-box ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; }
.is-style-pairs .info-box ul li + li { margin-top: 4px; }
.is-style-pairs .info-box ul li svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--gold-2); }

/* Icon List block in the editor */
.ss-icon-list-edit { margin: 14px 0; }
.ss-icon-list-label { margin-bottom: 4px; font: 500 11px/1.4 var(--sans, sans-serif); letter-spacing: .04em; text-transform: uppercase; color: #a8773f; }
.ss-icon-list-edit svg { width: 24px; height: 24px; color: var(--gold); }

@media (max-width: 900px) {
  .wp-block-group.is-style-pairs > .wp-block-group__inner-container,
  .wp-block-group.is-style-pairs:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .is-style-pairs .info-box { gap: 14px; padding: 14px 16px; }
  .is-style-pairs .info-box > svg { width: 30px; height: 30px; }
}

/* Full-width part: highlight tiles and side-by-side boxes as in the privacy design */
.policy-wide-content .entry-content > h2:first-child { margin-top: 14px; }
.policy-wide-content .highlights { gap: 8px; }
.policy-wide-content .wp-block-group.is-style-pairs { margin-top: 6px; }
