/*
 * Public domain pages (/domains/*) and the homepage domain search band.
 * Builds on landing.css tokens (--ss-*) and domain-search.css (.ds-*).
 */

/* ---- Homepage hero domain search band (in the hero, under the hero copy) ---- */
.ss-domain-band {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 1.75rem 0 0;
    padding: 1.1rem 1.35rem;
    border: 1px solid rgba(126, 193, 255, 0.26);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
}
/* Compact, centered variant inside the homepage hero copy (between lede and actions). */
.ss-domain-band.is-compact { max-width: 720px; margin: 1.4rem auto 0; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; text-align: left; }
.ss-domain-band.is-compact .ds-input, .ss-domain-band.is-compact .ds-submit { height: 3.1rem; }
.ss-domain-band.is-compact .ds-foot { margin-top: 0.55rem; justify-content: center; flex-wrap: nowrap; gap: 0.5rem; }
.ss-domain-band.is-compact .ds-chips { justify-content: center; min-height: 0; flex-wrap: nowrap; overflow: hidden; gap: 0.3rem; }
.ss-domain-band.is-compact .ds-chip { padding: 0.22rem 0.55rem; font-size: 0.8rem; white-space: nowrap; }
@media (max-width: 640px) {
    /* Phones: chips scroll sideways on one line instead of wrapping. */
    .ss-domain-band.is-compact .ds-foot { justify-content: flex-start; }
    .ss-domain-band.is-compact .ds-chips { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
    .ss-domain-band.is-compact .ds-chips::-webkit-scrollbar { display: none; }
}
.ss-domain-band-link { color: rgba(255, 255, 255, 0.85); font-size: 0.84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ss-domain-band-link:hover { color: #ffffff; }
.ss-domain-band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.9rem; color: #ffffff; }
.ss-domain-band-head strong { font-size: 1.15rem; font-weight: 800; }
.ss-domain-band-head a { color: #9fd8ff; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.ss-domain-band-head a:hover { color: #ffffff; }
.ss-domain-band .ds-foot { margin-top: 0.85rem; }

/* ---- Domain page hero (shorter than the homepage hero) ---- */
.dp-hero {
    position: relative;
    overflow: hidden;
    padding: 8.5rem 1.5rem 3.5rem;
    color: #ffffff;
    /* --dp-hero-image is set by the page via asset(), so no path is hard-coded here. */
    background:
        linear-gradient(90deg, rgba(3, 13, 23, 0.96) 0%, rgba(4, 24, 36, 0.92) 50%, rgba(0, 61, 107, 0.86) 100%),
        var(--dp-hero-image, none);
    background-size: cover;
    background-position: center right;
}
.dp-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, var(--ss-green), var(--ss-gold), var(--ss-blue)); }
.dp-hero-inner { position: relative; z-index: 1; width: min(920px, 100%); margin: 0 auto; text-align: center; }
.dp-hero h1 { margin: 0; font-size: 3.2rem; line-height: 1.08; font-weight: 800; letter-spacing: 0; }
.dp-hero p { margin: 1rem auto 0; max-width: 680px; color: rgba(255, 255, 255, 0.86); font-size: 1.08rem; line-height: 1.7; }
.dp-hero .ds-form { margin-top: 1.75rem; text-align: left; }
.dp-hero .ds-foot { justify-content: center; }
.dp-hero.is-compact { padding-bottom: 2.5rem; }
.dp-hero.is-compact h1 { font-size: 2.4rem; }

.dp-main { background: var(--ss-soft); color: var(--ss-ink); }
.dp-container { width: min(1080px, 100%); margin: 0 auto; padding: 2.5rem 1.5rem 4.5rem; box-sizing: border-box; }
.dp-container .ds-app { --ds-ink: var(--ss-ink); --ds-muted: var(--ss-muted); --ds-line: var(--ss-border); }

/* ---- Landing sections ---- */
.dp-section { padding: 4.5rem 1.5rem; }
.dp-section.is-white { background: #ffffff; }
.dp-section-inner { width: min(1180px, 100%); margin: 0 auto; }
.dp-heading { max-width: 720px; margin: 0 auto 2.4rem; text-align: center; }
.dp-heading h2 { margin: 0; font-size: 2.2rem; line-height: 1.15; font-weight: 800; color: var(--ss-ink); }
.dp-heading p { margin: 0.9rem 0 0; color: var(--ss-muted); line-height: 1.7; }
.dp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.dp-card { padding: 1.5rem; border: 1px solid var(--ss-border); border-radius: 12px; background: #ffffff; box-shadow: 0 10px 26px rgba(7, 17, 31, 0.05); }
.dp-card i { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: #e6f0f7; color: #003D6B; font-size: 1.1rem; }
.dp-card h3 { margin: 1rem 0 0.4rem; font-size: 1.05rem; font-weight: 800; color: var(--ss-ink); }
.dp-card p { margin: 0; color: var(--ss-muted); font-size: 0.93rem; line-height: 1.65; }

.dp-tld-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.9rem; }
.dp-tld { display: block; padding: 1.1rem 1rem; border: 1px solid var(--ss-border); border-radius: 12px; background: #ffffff; text-align: center; text-decoration: none; color: var(--ss-ink); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.dp-tld:hover { transform: translateY(-2px); border-color: #b3d1e6; box-shadow: 0 12px 26px rgba(0, 61, 107, 0.1); }
.dp-tld strong { display: block; font-size: 1.3rem; font-weight: 800; color: #003D6B; }
.dp-tld span { display: block; margin-top: 0.35rem; font-weight: 800; }
.dp-tld small { display: block; margin-top: 0.15rem; color: var(--ss-muted); font-size: 0.75rem; }
.dp-tld-grid:empty::before { content: 'Loading prices…'; grid-column: 1 / -1; text-align: center; color: var(--ss-muted); }

.dp-faq { max-width: 820px; margin: 0 auto; }
.dp-faq details { border: 1px solid var(--ss-border); border-radius: 12px; background: #ffffff; margin-bottom: 0.75rem; }
.dp-faq summary { cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 800; color: var(--ss-ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.dp-faq summary::-webkit-details-marker { display: none; }
.dp-faq summary::after { content: '+'; color: #0066b3; font-size: 1.3rem; line-height: 1; }
.dp-faq details[open] summary::after { content: '–'; }
.dp-faq details p { margin: 0; padding: 0 1.25rem 1.15rem; color: var(--ss-muted); line-height: 1.7; }

.dp-cta { text-align: center; margin-top: 2rem; }
.dp-cta .ss-btn-secondary { color: #003D6B; border-color: #b3d1e6; background: #ffffff; }

/* ---- Pricing table ---- */
.dp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.dp-filter { display: flex; gap: 0.5rem; flex: 1; max-width: 460px; }
.dp-filter input { flex: 1; min-width: 0; height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--ss-border); border-radius: 8px; font-size: 0.95rem; background: #ffffff; color: var(--ss-ink); }
.dp-filter input:focus { outline: 3px solid rgba(0, 102, 179, 0.2); border-color: #0066b3; }
.dp-filter button, .dp-filter a { height: 2.75rem; padding: 0 1rem; border-radius: 8px; border: 0; font-weight: 800; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.dp-filter button { background: #003D6B; color: #ffffff; }
.dp-filter a { background: #ffffff; color: var(--ss-muted); border: 1px solid var(--ss-border); }
.dp-currency { display: inline-flex; padding: 0.2rem; border-radius: 9px; background: #e9eef4; }
.dp-currency a { padding: 0.35rem 0.85rem; border-radius: 7px; font-size: 0.85rem; font-weight: 800; color: var(--ss-muted); text-decoration: none; }
.dp-currency a.active { background: #ffffff; color: #003D6B; box-shadow: 0 1px 3px rgba(7, 17, 31, 0.12); }
.dp-table-wrap { overflow-x: auto; border: 1px solid var(--ss-border); border-radius: 12px; background: #ffffff; }
.dp-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dp-table th { padding: 0.85rem 1.1rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ss-muted); background: #f5f8fb; border-bottom: 1px solid var(--ss-border); white-space: nowrap; }
.dp-table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--ss-border); color: var(--ss-ink); white-space: nowrap; }
.dp-table tr:last-child td { border-bottom: 0; }
.dp-table .is-num { text-align: right; }
.dp-table .dp-ext { font-weight: 800; color: #003D6B; font-size: 1rem; }
.dp-table .dp-sub { display: block; color: var(--ss-muted); font-size: 0.75rem; font-weight: 400; }
.dp-badge { display: inline-block; margin-left: 0.35rem; padding: 0.1rem 0.45rem; border-radius: 6px; font-size: 0.7rem; font-weight: 800; vertical-align: middle; }
.dp-badge.is-promo { background: rgba(0, 166, 106, 0.12); color: #007251; }
.dp-badge.is-req { background: rgba(242, 169, 0, 0.14); color: #8a6200; }
.dp-table a.dp-row-cta { color: #0066b3; font-weight: 800; text-decoration: none; font-size: 0.88rem; }
.dp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; color: var(--ss-muted); font-size: 0.9rem; }
.dp-pager nav { display: flex; gap: 0.35rem; }
.dp-pager a, .dp-pager span.is-current { min-width: 2.4rem; height: 2.4rem; padding: 0 0.6rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; border: 1px solid var(--ss-border); background: #ffffff; color: #003D6B; box-sizing: border-box; }
.dp-pager span.is-current { background: #003D6B; color: #ffffff; border-color: #003D6B; }
.dp-pager span.is-gap { padding: 0 0.3rem; align-self: center; }
.dp-empty { padding: 3rem 1rem; text-align: center; color: var(--ss-muted); }
.dp-footnote { margin-top: 1rem; color: var(--ss-muted); font-size: 0.82rem; line-height: 1.6; }

@media (max-width: 992px) {
    .dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-tld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dp-hero h1 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
    .ss-domain-band { margin-top: 1.25rem; padding: 0.9rem; }
    .ss-domain-band .ds-input, .ss-domain-band .ds-submit { height: 3rem; }
    .dp-hero { padding: 7.5rem 1rem 2.5rem; }
    .dp-hero h1, .dp-hero.is-compact h1 { font-size: 1.9rem; }
    .dp-grid { grid-template-columns: 1fr; }
    .dp-tld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-heading h2 { font-size: 1.65rem; }
    .dp-section { padding: 3rem 1rem; }
    .dp-container { padding: 1.75rem 1rem 3rem; }
    .dp-filter { max-width: none; }
}
