/*
 * Pages: the page builder's blocks on the public site (Core\Pages\Blocks\PageRenderer).
 *
 * Every class is pgb- (page builder), so nothing here touches a theme's own
 * rules. Colours come from the theme through Bootstrap's custom properties,
 * so a built page looks like the site on every theme.
 *
 * Three devices, mobile first, matching the editor's preview:
 *   mobile   below 768px    pgb-c-sm-*  pgb-hide-mobile
 *   tablet   768-991px      pgb-c-md-*  pgb-hide-tablet
 *   desktop  992px and up   pgb-c-lg-*  pgb-hide-desktop
 */

.pgb-page { margin: 0 0 2rem; }
.pgb-page > .pgb-row:first-child { margin-top: 0; }

/* ---- rows ------------------------------------------------------------------ */
.pgb-row { position: relative; border-radius: .75rem; }
.pgb-row + .pgb-row { margin-top: 1rem; }
.pgb-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
.pgb-width-full > .pgb-inner { max-width: var(--pgb-max, 1200px); margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.pgb-bg, .pgb-bg-image { padding-left: 1.25rem; padding-right: 1.25rem; }

/* A Full width row of banners: the banner reaches the edges of the screen. */
.pgb-row.pgb-edge { padding: 0; }
.pgb-edge > .pgb-inner { max-width: none; padding-left: 0; padding-right: 0; }
.pgb-edge .pgb-grid { gap: 0; }
.pgb-edge .pgb-banner { border-radius: 0; }
.pgb-bg-image { background-size: cover; background-position: center; background-repeat: no-repeat; }

.pgb-pad-none { padding-top: 0; padding-bottom: 0; }
.pgb-pad-sm { padding-top: .75rem; padding-bottom: .75rem; }
.pgb-pad-md { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.pgb-pad-lg { padding-top: 3rem; padding-bottom: 3rem; }
.pgb-pad-xl { padding-top: 5rem; padding-bottom: 5rem; }

/* ---- the 12-column grid ---------------------------------------------------- */
.pgb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.pgb-col { min-width: 0; grid-column: span 12; }
.pgb-c-sm-1 { grid-column: span 1; } .pgb-c-sm-2 { grid-column: span 2; } .pgb-c-sm-3 { grid-column: span 3; }
.pgb-c-sm-4 { grid-column: span 4; } .pgb-c-sm-5 { grid-column: span 5; } .pgb-c-sm-6 { grid-column: span 6; }
.pgb-c-sm-7 { grid-column: span 7; } .pgb-c-sm-8 { grid-column: span 8; } .pgb-c-sm-9 { grid-column: span 9; }
.pgb-c-sm-10 { grid-column: span 10; } .pgb-c-sm-11 { grid-column: span 11; } .pgb-c-sm-12 { grid-column: span 12; }

@media (min-width: 768px) {
    .pgb-c-md-1 { grid-column: span 1; } .pgb-c-md-2 { grid-column: span 2; } .pgb-c-md-3 { grid-column: span 3; }
    .pgb-c-md-4 { grid-column: span 4; } .pgb-c-md-5 { grid-column: span 5; } .pgb-c-md-6 { grid-column: span 6; }
    .pgb-c-md-7 { grid-column: span 7; } .pgb-c-md-8 { grid-column: span 8; } .pgb-c-md-9 { grid-column: span 9; }
    .pgb-c-md-10 { grid-column: span 10; } .pgb-c-md-11 { grid-column: span 11; } .pgb-c-md-12 { grid-column: span 12; }
}

@media (min-width: 992px) {
    .pgb-c-lg-1 { grid-column: span 1; } .pgb-c-lg-2 { grid-column: span 2; } .pgb-c-lg-3 { grid-column: span 3; }
    .pgb-c-lg-4 { grid-column: span 4; } .pgb-c-lg-5 { grid-column: span 5; } .pgb-c-lg-6 { grid-column: span 6; }
    .pgb-c-lg-7 { grid-column: span 7; } .pgb-c-lg-8 { grid-column: span 8; } .pgb-c-lg-9 { grid-column: span 9; }
    .pgb-c-lg-10 { grid-column: span 10; } .pgb-c-lg-11 { grid-column: span 11; } .pgb-c-lg-12 { grid-column: span 12; }
}

/* ---- hidden on a device ---------------------------------------------------- */
@media (max-width: 767.98px) { .pgb-hide-mobile { display: none !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .pgb-hide-tablet { display: none !important; } }
@media (min-width: 992px) { .pgb-hide-desktop { display: none !important; } }

/* ---- blocks ---------------------------------------------------------------- */
.pgb-block + .pgb-block { margin-top: 1rem; }
.pgb-align-left { text-align: left; }
.pgb-align-center { text-align: center; }
.pgb-align-right { text-align: right; }

.pgb-heading { margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
h1.pgb-heading { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2.pgb-heading { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3.pgb-heading { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4.pgb-heading { font-size: 1.15rem; }

.pgb-text { overflow-wrap: anywhere; line-height: 1.65; }
.pgb-text > :last-child { margin-bottom: 0; }
.pgb-text { display: flow-root; }
/* A picture in text: wrapped by the text on one side, or centred, at a share of the width. */
.pgb-i-left { float: left; margin: .25rem 1rem .5rem 0; } .pgb-i-right { float: right; margin: .25rem 0 .5rem 1rem; }
.pgb-i-center { float: none; display: block; margin: .5rem auto; }
.pgb-i-w25 { width: 25%; } .pgb-i-w33 { width: 33.333%; } .pgb-i-w50 { width: 50%; } .pgb-i-w66 { width: 66.666%; } .pgb-i-w75 { width: 75%; }
.pgb-i-w25, .pgb-i-w33, .pgb-i-w50, .pgb-i-w66, .pgb-i-w75 { height: auto; }
@media (max-width: 575.98px) { .pgb-i-left, .pgb-i-right { float: none; display: block; margin: .5rem auto; } }
/* FAQ: questions that open to show the answer (native details, no script), or every answer shown. */
.pgb-faq-title { margin-bottom: 1rem; }
.pgb-faq-item { border: 1px solid rgba(128, 128, 128, .3); border-radius: .5rem; margin-bottom: .6rem; background: var(--bs-body-bg, transparent); overflow: hidden; }
.pgb-faq-q { margin: 0; padding: .8rem 1rem; font-size: 1.05rem; font-weight: 600; }
summary.pgb-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
summary.pgb-faq-q::-webkit-details-marker { display: none; }
summary.pgb-faq-q::after { content: '+'; flex: 0 0 auto; font-size: 1.4rem; line-height: 1; color: var(--bs-primary, #0d6efd); transition: transform .15s; }
details[open] > summary.pgb-faq-q::after { content: '\2212'; }
summary.pgb-faq-q:focus-visible { outline: 2px solid var(--bs-primary, #0d6efd); outline-offset: -2px; }
.pgb-faq-a { padding: 0 1rem 1rem; }
.pgb-faq-list .pgb-faq-q { padding-bottom: .4rem; }
/* What the text editor leaves in a text block: alignment, size, font, colour, columns, table. */
.pgb-t-left { text-align: left; } .pgb-t-center { text-align: center; } .pgb-t-right { text-align: right; } .pgb-t-justify { text-align: justify; }
.pgb-t-sm { font-size: .85em; } .pgb-t-lg { font-size: 1.3em; } .pgb-t-xl { font-size: 1.8em; line-height: 1.3; }
.pgb-f-serif { font-family: Georgia, 'Times New Roman', serif; } .pgb-f-mono { font-family: ui-monospace, Consolas, monospace; }
.pgb-f-round { font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; } .pgb-f-display { font-family: Impact, 'Arial Narrow Bold', sans-serif; letter-spacing: .02em; }
.pgb-c-primary { color: var(--bs-primary, #0d6efd); } .pgb-c-dark { color: #212529; } .pgb-c-muted { color: #6c757d; } .pgb-c-red { color: #c0392b; }
.pgb-c-orange { color: #d9730d; } .pgb-c-green { color: #1f9d6b; } .pgb-c-blue { color: #1f6fd6; } .pgb-c-purple { color: #7e3fc2; } .pgb-c-white { color: #fff; }
.pgb-text table, .pgb-t-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.pgb-text td, .pgb-text th { border: 1px solid rgba(128, 128, 128, .35); padding: .4rem .6rem; }
.pgb-text blockquote { border-left: 3px solid rgba(128, 128, 128, .5); padding-left: 1rem; margin-left: 0; opacity: .9; }
.pgb-t-cols-2 { column-count: 2; column-gap: 2rem; } .pgb-t-cols-3 { column-count: 3; column-gap: 2rem; }
@media (max-width: 767.98px) { .pgb-t-cols-2, .pgb-t-cols-3 { column-count: 1; } }
.pgb-text img { max-width: 100%; height: auto; }

.pgb-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pgb-align-center > .pgb-actions, .pgb-actions.pgb-align-center { justify-content: center; }
.pgb-align-right > .pgb-actions, .pgb-actions.pgb-align-right { justify-content: flex-end; }
.pgb-btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1.25rem; border-radius: var(--bs-border-radius, .5rem); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: filter .15s, background-color .15s; }
.pgb-btn-primary { background: var(--bs-primary, #1f6bff); color: #fff; }
.pgb-btn-primary:hover { filter: brightness(.92); color: #fff; }
.pgb-btn-outline { border-color: var(--bs-primary, #1f6bff); color: var(--bs-primary, #1f6bff); background: transparent; }
.pgb-btn-outline:hover { background: var(--bs-primary, #1f6bff); color: #fff; }
.pgb-btn-link { padding-left: 0; padding-right: 0; color: var(--bs-primary, #1f6bff); text-decoration: underline; }

.pgb-figure { margin: 0; }
.pgb-img { max-width: 100%; height: auto; border-radius: .5rem; }
.pgb-img-full { width: 100%; }
.pgb-figure figcaption { margin-top: .5rem; font-size: .875rem; color: var(--bs-secondary-color, #6c757d); }

.pgb-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgb-gallery-item { margin: 0; }
.pgb-gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; }
@media (min-width: 768px) {
    .pgb-gallery.pgb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pgb-gallery.pgb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pgb-banner { display: flex; align-items: center; border-radius: .75rem; padding: 2rem 1.25rem; background: var(--bs-primary-bg-subtle, #e8f0ff); }
.pgb-banner.pgb-align-center { justify-content: center; text-align: center; }
.pgb-banner.pgb-align-right { justify-content: flex-end; text-align: right; }
.pgb-banner.pgb-align-center .pgb-actions { justify-content: center; }
.pgb-banner.pgb-align-right .pgb-actions { justify-content: flex-end; }
.pgb-banner-sm { min-height: 11rem; }
.pgb-banner-md { min-height: 17rem; }
.pgb-banner-lg { min-height: 24rem; }
.pgb-banner { position: relative; overflow: hidden; }
.pgb-banner-overlay { position: absolute; inset: 0; }
.pgb-banner-body { position: relative; max-width: 46rem; }
.pgb-banner-title, .pgb-banner-text { color: inherit; }
.pgb-banner-title { margin: 0 0 .75rem; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.15; }
.pgb-banner-text { margin: 0 0 1.25rem; font-size: 1.1rem; }
/* The box behind a banner's words: light (the default on a picture), dark, or a colour of staff's own. */
.pgb-box-light, .pgb-box-dark, .pgb-box-custom { padding: 1.25rem 1.5rem; border-radius: .75rem; }
.pgb-box-light { background: rgba(255, 255, 255, .88); }
.pgb-box-dark { background: rgba(17, 17, 17, .78); }

/* A column or a block with a background of its own. */
.pgb-cbox, .pgb-boxed { border-radius: .5rem; }
.pgb-cpad-sm, .pgb-bpad-sm { padding: .5rem; }
.pgb-cpad-md, .pgb-bpad-md { padding: 1rem; }
.pgb-cpad-lg, .pgb-bpad-lg { padding: 2rem; }
@media (min-width: 768px) { .pgb-banner { padding: 3rem; } }

.pgb-spacer-none { height: 0; }
.pgb-spacer-sm { height: 1rem; }
.pgb-spacer-md { height: 2rem; }
.pgb-spacer-lg { height: 3.5rem; }
.pgb-spacer-xl { height: 5rem; }

.pgb-divider { border: 0; border-top: 1px solid var(--bs-border-color, #dee2e6); opacity: 1; margin: .5rem 0; }
.pgb-divider-dashed { border-top-style: dashed; }

.pgb-group-title { margin: 0 0 .5rem; }
.pgb-group-text { margin: 0 0 1rem; color: var(--bs-secondary-color, #6c757d); }

.pgb-cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
    .pgb-cards.pgb-cols-2, .pgb-cards.pgb-cols-3, .pgb-cards.pgb-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .pgb-cards.pgb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pgb-cards.pgb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pgb-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .75rem; background: var(--bs-body-bg, #fff); height: 100%; }
.pgb-card-title { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.pgb-card-price { margin: 0; font-weight: 700; font-size: 1.25rem; color: var(--bs-primary, #1f6bff); }
.pgb-card-text { margin: 0; color: var(--bs-secondary-color, #6c757d); flex: 1 1 auto; }
.pgb-card .pgb-actions { margin-top: auto; }
.pgb-card { position: relative; }
.pgb-card-featured { border: 2px solid var(--bs-primary, #1f6bff); box-shadow: 0 .75rem 2rem rgba(31, 107, 255, .12); }
@media (min-width: 992px) { .pgb-card-featured { transform: translateY(-.35rem); } }
.pgb-card-badge { position: absolute; top: -.7rem; left: 1.25rem; padding: .15rem .65rem; border-radius: 999px; background: var(--bs-primary, #1f6bff); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }

/* Domain search and the TLD price table. */
.pgb-domain-search { max-width: 44rem; }
.pgb-domain-search.pgb-align-center { margin-left: auto; margin-right: auto; text-align: center; }
.pgb-domain-search.pgb-align-right { margin-left: auto; text-align: right; }
.pgb-domain-title { margin: 0 0 .5rem; font-size: clamp(1.4rem, 3.5vw, 2.1rem); line-height: 1.2; }
.pgb-domain-text { margin: 0 0 1rem; color: var(--bs-secondary-color, #6c757d); }
.pgb-domain-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.pgb-domain-input { flex: 1 1 14rem; min-width: 0; padding: .7rem 1rem; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .5rem; background: var(--bs-body-bg, #fff); color: inherit; font-size: 1rem; }
.pgb-domain-input:focus { outline: 2px solid var(--bs-primary, #1f6bff); outline-offset: 1px; }
.pgb-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; }
.pgb-domain-search.pgb-align-center .pgb-chips { justify-content: center; }
.pgb-domain-search.pgb-align-right .pgb-chips { justify-content: flex-end; }
.pgb-chip { padding: .25rem .75rem; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: 999px; font-size: .9rem; }
.pgb-chip-tld { font-weight: 700; }
.pgb-chip-price { color: var(--bs-primary, #1f6bff); }

.pgb-table-wrap { overflow-x: auto; }
.pgb-table { width: 100%; border-collapse: collapse; }
.pgb-table th, .pgb-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--bs-border-color, #dee2e6); text-align: left; vertical-align: middle; }
.pgb-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color, #6c757d); }
.pgb-table .pgb-num { text-align: right; white-space: nowrap; }
.pgb-tld { font-family: var(--bs-font-monospace, monospace); font-weight: 700; }
.pgb-term { color: var(--bs-secondary-color, #6c757d); font-size: .85em; }
.pgb-domain-prices .pgb-actions { margin-top: .75rem; }
