/* Shared styles; colors per site in boy.css / girl.css */

/* Comic Neue (SIL OFL 1.1, fonts/OFL.txt), self-hosted: no requests to Google */
@font-face {
    font-family: "Comic Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/comic-neue-latin-400.woff2") format("woff2");
}
@font-face {
    font-family: "Comic Neue";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/comic-neue-latin-700.woff2") format("woff2");
}

html {
    font-size: 18px;
}

body,
h1,
h2,
h3 {
    font-family: "Comic Neue", cursive;
}

a {
    color: var(--theme-link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.navbar-brand {
    font-weight: 700;
}

.form-control {
    border-color: var(--theme-accent);
}
.form-inputs {
    position: relative;
}
.form-inputs .form-control {
    height: 45px;
}
.form-inputs .form-control:focus {
    box-shadow: none;
    border: 1px solid var(--theme-accent-dark);
    background-color: #fff;
}
.form-inputs .search-icon {
    position: absolute;
    right: 10px;
    top: 15px;
    pointer-events: none;
}

.button-direction,
.button-direction:hover,
.button-direction:active,
.button-direction:focus {
    background-color: #fff;
    border: 1px solid var(--theme-accent);
}
.button-direction svg {
    vertical-align: -2px;
}

.card {
    --bs-card-border-color: var(--theme-accent);
    --bs-card-bg: #fff;
}
.card > a:hover {
    text-decoration: none;
}

.list-group {
    --bs-list-group-border-color: var(--theme-accent);
    --bs-list-group-bg: #fff;
}

p.info {
    color: var(--bs-body-color);
}

.name-title {
    font-size: 0.9em;
    font-weight: bold;
}
.name-details {
    font-size: 18px;
}
.name-details p:last-child {
    margin-bottom: 0;
}

.breadcrumb {
    margin-bottom: 0.5rem;
}

/* Cookie bar: one line at the bottom, wraps on phones */
.cookie-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 1050;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    max-width: 640px;
    margin: 0 auto;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--theme-accent);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.cookie-bar[hidden] {
    display: none;
}
.cookie-accept,
.cookie-accept:hover,
.cookie-accept:focus {
    background-color: var(--theme-link);
    border-color: var(--theme-link);
    color: #fff;
}

/* Share links on name pages; wrap on phones */
.share {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.share-title {
    width: 100%;
    font-size: 0.9rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--theme-accent);
    border-radius: 50px;
    background-color: #fff;
    color: var(--bs-body-color);
    font: inherit;
    font-size: 0.85rem;
}
.share-btn:hover {
    background-color: var(--theme-accent);
    text-decoration: none;
    color: var(--bs-body-color);
}
.share-btn[hidden] {
    display: none;
}

.contact-card {
    max-width: 640px;
}
.contact-topic.active,
.contact-topic.active:hover {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent-dark);
}
.contact-captcha {
    max-width: 6rem;
}

.pagination-modern-wrap {
    margin: 1rem 0;
}
.pagination-modern {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination-modern li {
    display: flex;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 50px;
    background-color: #fff;
    border: 1px solid var(--theme-accent);
    color: var(--bs-body-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.page-btn:hover {
    background-color: var(--theme-accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.page-btn.active {
    background-color: var(--theme-accent-dark);
    border-color: var(--theme-accent-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.page-btn.disabled {
    opacity: 0.35;
    border-color: #ddd;
}
.page-btn-arrow {
    font-size: 1.1rem;
}
.pagination-modern-info {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
}
