/* ==========================================================================
   WordPress-specific additions to the Broadband Connect design
   ========================================================================== */

/* Sticky header sits below the admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* Jump links to service sections clear the sticky header */
.service-detail[id], #contact-form { scroll-margin-top: 110px; }

/* Accessibility */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  top: 8px; left: 8px; z-index: 1000; padding: 12px 18px;
  background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 6px;
}

/* Contact form */
.form-error {
  background: #fdf0ef; border: 1px solid #f1c9c4; color: #8a2a1f;
  padding: 16px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 20px;
}
.bbc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Article cards: linked titles */
.article-body h3 a { color: inherit; transition: color .2s ease; }
.article-body h3 a:hover { color: var(--gold-dark); }
.bbc-empty { text-align: center; }

/* Pagination */
.bbc-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.bbc-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-300); border-radius: 8px; font-weight: 600; color: var(--gray-900);
}
.bbc-pagination .page-numbers.current,
.bbc-pagination a.page-numbers:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* Single article & generic page content */
.bbc-entry { max-width: 820px; margin: 0 auto; }
.bbc-entry .article-meta { margin-bottom: 24px; }
.bbc-entry .article-meta a { color: var(--gold-dark); }
.bbc-entry-image img { border-radius: var(--radius); margin-bottom: 32px; width: 100%; height: auto; }
.entry-content { font-size: 17px; line-height: 1.8; }
.entry-content h2 { font-size: 28px; margin-top: 40px; }
.entry-content h3 { font-size: 22px; margin-top: 32px; }
.entry-content a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 24px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { height: auto; border-radius: 8px; }
.entry-content blockquote {
  margin: 28px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gold);
  font-style: italic; color: var(--gray-900);
}
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { font-size: 14px; color: var(--gray-500); margin-top: 8px; }
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

.bbc-post-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-300);
}

.bbc-404-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Block editor content mapped onto the design
   ========================================================================== */

/* Buttons (core Button block with btn-* / learn-more classes) */
.wp-block-buttons { gap: 16px; }
.wp-block-button[class*="btn-"] > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 6px;
  font-weight: 600; font-size: 15px; font-family: var(--font-body); line-height: 1.65; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s ease; white-space: nowrap; text-decoration: none;
  background: transparent; color: inherit; box-shadow: none;
}
.wp-block-button.btn-gold > .wp-block-button__link { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.wp-block-button.btn-gold > .wp-block-button__link:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.wp-block-button.btn-outline-dark > .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); }
.wp-block-button.btn-outline-dark > .wp-block-button__link:hover { background: var(--navy); color: var(--white); }
.wp-block-button.btn-outline-light > .wp-block-button__link { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.wp-block-button.btn-outline-light > .wp-block-button__link:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.wp-block-button.btn-block { width: 100%; }
.wp-block-button.btn-block > .wp-block-button__link { width: 100%; justify-content: center; }

.wp-block-button.learn-more > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); font-weight: 700; font-size: 14px;
  line-height: 1.65; background: none; padding: 0; border: 0; border-radius: 0; text-decoration: none; box-shadow: none;
}

/* Arrow / mail icons drawn with CSS so editors only see the button text */
.wp-block-button[class*="btn-"] > .wp-block-button__link::after,
.wp-block-button.learn-more > .wp-block-button__link::after {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.wp-block-button.learn-more > .wp-block-button__link::after { width: 14px; height: 14px; }
.wp-block-button.icon-mail > .wp-block-button__link::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}
.wp-block-button > .wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button.icon-mail > .wp-block-button__link:hover::after { transform: none; }

.who-we-are .wp-block-buttons { display: block; margin-top: 0; padding-top: 12px; line-height: 1.65; }
.who-we-are .wp-block-button { display: inline-block; }

/* Checklists: tick drawn with CSS */
.check-list > li, .choose-grid > li { display: block; position: relative; }
.check-list > li::before, .choose-grid > li::before {
  content: ""; position: absolute; left: 0; background-color: 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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list > li { padding-left: 38px; font-size: 14px; line-height: 26.4px; color: var(--gray-500); }
.check-list > li::before { top: 2px; width: 24px; height: 24px; }
.choose-grid > li { padding-left: 36px; font-size: 15px; color: var(--gray-700); }
.choose-grid > li::before { top: 3px; width: 22px; height: 22px; }

/* Misc. mappings */
hr.wp-block-separator.rule { border: none; opacity: 1; }
.bg-gray { background: var(--gray-100); }
p.bbc-note { text-align: center; margin-top: 28px; font-size: 14px; }
p.bbc-note a { color: var(--gold-dark); font-weight: 700; }
.logo-card .logo-text { font-size: 12px; font-weight: 600; color: var(--gray-700); line-height: 1.3; text-align: center; }
.logo-row .h-92 img { height: 92px; }
.logo-row .h-44 img { height: 44px; }
.wp-block-image img { box-sizing: border-box; }

/* Paragraph blocks that replaced <span>/<div> in the design: undo container "p" rules */
.hero-copy p.eyebrow { font-size: 13px; max-width: none; margin-bottom: 12px; color: var(--gold-light); }
.hero-copy p.trust-pill { font-size: 13px; max-width: none; margin: 0; color: #f1d36b; }

/* Text links (Learn More) sit on a normal text line, like the original inline links */
.service-detail .wp-block-buttons { display: block; line-height: 1.65; }
.service-detail .wp-block-button.learn-more { display: inline-block; }
