/* Public directory and public profile detail styles only. Extracted from frontend.css to keep anonymous list/detail pages light. */

.astar-user-nav {
    display: none !important;
}

.astar-v2-field-multiselect select {
    min-height: 180px;
}

.astar-v2-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.astar-v2-filter-check input {
    width: auto;
    margin: 0;
}

.astar-v2-filter-check span {
    min-width: 0;
}

.astar-v2-filter-check > span:not(.astar-v2-badge-info) {
    flex: 1 1 auto;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.astar-v2-filter-check .astar-v2-badge-info {
    flex: 0 0 auto;
}

.astar-v2-filter-check .astar-v2-badge-tooltip {
    display: none;
}

.astar-v2-filter-check .astar-v2-badge-info:hover .astar-v2-badge-tooltip,
.astar-v2-filter-check .astar-v2-badge-info:focus .astar-v2-badge-tooltip,
.astar-v2-filter-check .astar-v2-badge-info:focus-visible .astar-v2-badge-tooltip {
    display: block;
}

.astar-v2-filter-check-destination {
    align-items: flex-start;
}

.astar-v2-inline-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.astar-v2-inline-check input {
    width: auto;
    margin-top: 3px;
}

.astar-v2-pagination-gate {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #1f3c88;
    color: #fff;
    text-decoration: none;
}

.astar-v2-pagination-gate-inline {
    margin-left: 8px;
    background: #2859a8;
}

.astar-v2-pagination-gate-soft {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin: 0 0 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #143b7a 0%, #1f5fbf 100%);
    box-shadow: 0 16px 40px rgba(20, 59, 122, 0.18);
}

.astar-v2-pagination-gate-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.astar-v2-pagination-gate-copy strong {
    color: #fff;
}

.astar-v2-pagination-gate-copy span {
    color: rgba(255, 255, 255, 0.88);
}

.astar-v2-pagination-gate-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.astar-v2-pagination-gate-dismiss {
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .astar-v2-pagination-gate-soft {
        flex-direction: column;
        align-items: flex-start;
    }

    .astar-v2-pagination-gate-actions {
        width: 100%;
    }
}

body.astar-v2-page {
    background: linear-gradient(180deg, #f7fafc 0%, #eff5fb 100%);
}

body.astar-v2-modal-open {
    overflow: hidden;
}

#profileTip,
.tip#profileTip,
a.astar-user-profile {
    display: none !important;
}

body.astar-v2-page .site-content {
    padding-top: 12px;
    padding-bottom: 24px;
}

body.astar-v2-page.astar-v2-auth-shell .site-content,
body.astar-v2-page.astar-v2-member-shell .site-content,
body.astar-v2-page.astar-v2-communication-shell .site-content {
    padding-bottom: 8px;
}

body.astar-v2-page .entry-header {
    display: none !important;
}

body.astar-v2-page .site-main {
    padding-top: 0 !important;
}

body.astar-v2-page.astar-v2-auth-shell .site-below-footer-wrap,
body.astar-v2-page.astar-v2-member-shell .site-below-footer-wrap,
body.astar-v2-page.astar-v2-communication-shell .site-below-footer-wrap {
    margin-top: 8px;
}

.astar-v2-shell {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 20px 40px;
    color: #163049;
}

body.astar-v2-page.astar-v2-auth-shell .astar-v2-shell,
body.astar-v2-page.astar-v2-member-shell .astar-v2-shell {
    max-width: 960px;
    margin: 24px auto;
    padding-bottom: 20px;
}

body.astar-v2-page.astar-v2-communication-shell .astar-v2-shell {
    max-width: 1080px;
    margin: 24px auto;
    padding-bottom: 20px;
}

@media (max-width: 1100px) {
    body.astar-v2-page #ast-mobile-header {
        position: relative;
        z-index: 10000;
    }

    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content,
    body.astar-v2-page.ast-main-header-nav-open .ast-mobile-header-content {
        position: fixed !important;
        top: 80px !important;
        left: 50vw !important;
        right: auto !important;
        z-index: 10001 !important;
        display: block !important;
        width: min(94vw, 520px) !important;
        margin-left: 0 !important;
        padding: 10px 16px 14px !important;
        max-height: calc(100vh - 96px);
        transform: translateX(-50%) !important;
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid #e4edf5;
        box-shadow: 0 18px 32px rgba(20, 45, 72, 0.14);
    }

    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header #ast-mobile-site-navigation,
    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .main-navigation,
    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .main-header-menu {
        display: block !important;
        width: 100% !important;
    }

    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .main-header-menu > .menu-item {
        display: block !important;
        width: 100% !important;
    }

    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .main-header-menu .menu-item > a,
    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .main-header-menu .menu-item > .menu-link {
        display: flex !important;
        align-items: center;
        min-height: 44px;
        padding: 10px 14px !important;
        border-radius: 10px;
        color: #163049;
    }

    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .main-header-menu .menu-item + .menu-item {
        border-top: 1px solid #edf3f8;
    }

    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .ast-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

.astar-v2-shell h1,
.astar-v2-shell h2,
.astar-v2-shell p,
.astar-v2-shell li,
.astar-v2-shell span,
.astar-v2-shell strong,
.astar-v2-shell label,
.astar-v2-shell input,
.astar-v2-shell textarea,
.astar-v2-shell select,
.astar-v2-shell button {
    line-height: 1.55;
}

.astar-v2-shell h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.astar-v2-shell h2 {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.6vw, 24px);
}

.astar-v2-card {
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(24, 54, 84, 0.08);
    padding: 28px;
}

.astar-v2-card-wide {
    padding: 36px;
}

.astar-v2-eyebrow {
    color: #1f6aa5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.astar-v2-lead,
.astar-v2-muted {
    color: #546679;
}


.astar-v2-choice-grid,
.astar-v2-highlight-grid,
.astar-v2-status-grid,
.astar-v2-form-grid,
.astar-v2-photo-grid {
    display: grid;
    gap: 16px;
}

.astar-v2-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 24px 0;
}

.astar-v2-highlight-grid,
.astar-v2-status-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 20px 0;
}

.astar-v2-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.astar-v2-choice-card,
.astar-v2-status-card {
    display: block;
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    padding: 18px;
    background: #f8fbfe;
    color: #17334d;
    text-decoration: none;
}

.astar-v2-choice-card {
    position: relative;
    z-index: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(31, 95, 191, 0.16);
}

.astar-v2-choice-card,
.astar-v2-choice-card:hover,
.astar-v2-choice-card:focus,
.astar-v2-choice-card:active,
.astar-v2-choice-card * {
    text-decoration: none !important;
}

.astar-v2-choice-card strong,
.astar-v2-status-card strong {
    display: block;
    margin-bottom: 6px;
}


.astar-v2-button {
    appearance: none;
    border: 1px solid #244e73;
    background: #ffffff;
    color: #244e73;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.astar-v2-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(24, 54, 84, 0.12);
}

.astar-v2-button-primary {
    background: #244e73;
    color: #fff !important;
    text-decoration: none !important;
}

.astar-v2-button-primary:hover,
.astar-v2-button-primary:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.astar-v2-button-secondary {
    background: #eef5fb;
    color: #244e73;
}

.astar-v2-button-danger {
    border-color: #9a2e2e;
    color: #9a2e2e;
}

.astar-v2-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.astar-v2-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.astar-v2-notice {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: #edf7ff;
    color: #144a74;
}

.astar-v2-notice-inline {
    border: 1px solid #b8dafc;
    box-shadow: 0 8px 20px rgba(32, 92, 173, 0.08);
    font-weight: 600;
}

.astar-v2-notice--media-fallback {
    margin-top: 12px;
    margin-bottom: 0;
    background: linear-gradient(180deg, #f4f9ff 0%, #edf7ff 100%);
    border: 1px solid #d6e9fb;
    box-shadow: 0 10px 24px rgba(20, 74, 116, 0.06);
}

.astar-v2-notice-error {
    background: #fff1f1;
    color: #8d1f1f;
}

.astar-v2-directory-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.astar-v2-directory-sidebar {
    align-self: start;
    position: sticky;
    top: 24px;
}

.astar-v2-filter-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #d8e4ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbfe 0%, #f2f8fc 100%);
    position: relative;
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.astar-v2-filter-form h2 {
    margin-bottom: 2px;
}

.astar-v2-filter-form input[type="text"],
.astar-v2-filter-form select {
    min-height: 58px;
    height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 46px;
    line-height: 1.35;
}

.astar-v2-filter-hint {
    display: block;
    margin-top: 6px;
    color: #5e7185;
    font-size: 12px;
    line-height: 1.45;
}

.astar-v2-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.astar-v2-filter-actions .astar-v2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    line-height: 1.2;
}

.astar-v2-filter-form.is-submitting {
    opacity: 0.88;
    transform: translateY(1px);
    box-shadow: 0 12px 26px rgba(24, 54, 84, 0.12);
}

.astar-v2-filter-form.is-submitting::after {
    content: attr(data-loading-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 18px;
    background: rgba(248, 251, 254, 0.78);
    color: #163049;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    backdrop-filter: blur(3px);
}

.astar-v2-filter-form .is-disabled {
    pointer-events: none;
}

.astar-v2-profile-form {
    position: relative;
}

.astar-v2-profile-form[data-astar-v2-submitting="1"] {
    opacity: 0.82;
    pointer-events: none;
}

.astar-v2-profile-form[data-astar-v2-submitting="1"]::after {
    content: attr(data-astar-v2-loading-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 18px;
    background: rgba(248, 251, 254, 0.78);
    color: #163049;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    backdrop-filter: blur(3px);
    z-index: 5;
}

.astar-v2-directory-main {
    min-width: 0;
    position: relative;
}

.astar-v2-directory-main.is-loading::after {
    content: attr(data-loading-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.24) 100%);
    color: #163049;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
    z-index: 3;
}

.astar-v2-directory-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: #546679;
}

.astar-v2-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.astar-v2-profile-card {
    display: grid;
    grid-template-rows: 220px 1fr;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #d8e4ef;
    border-radius: 20px;
    overflow: visible;
    background: #ffffff;
    color: #163049;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(24, 54, 84, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.astar-v2-profile-card,
.astar-v2-profile-card *,
.astar-v2-profile-card:hover,
.astar-v2-profile-card:focus-visible {
    text-decoration: none !important;
}

.astar-v2-profile-card:hover {
    transform: translateY(-2px);
    border-color: #b7cee2;
    box-shadow: 0 20px 40px rgba(24, 54, 84, 0.12);
}

.astar-v2-profile-card.is-opening {
    transform: scale(0.995);
    border-color: #9fc0da;
    box-shadow: 0 22px 42px rgba(24, 54, 84, 0.16);
}

.astar-v2-profile-card.is-opening::after {
    content: attr(data-loading-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(22, 48, 73, 0.22);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    backdrop-filter: blur(2px);
    z-index: 4;
}

.astar-v2-profile-card-media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #dfeef8 0%, #eef7fb 100%);
}

.astar-v2-profile-card-badges {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100% - 24px);
}

.astar-v2-profile-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.astar-v2-profile-card.is-pending-review .astar-v2-profile-card-media img {
    filter: blur(10px);
    transform: scale(1.05);
}

.astar-v2-profile-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 32, 53, 0.88);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.astar-v2-profile-card-badge.is-visibility {
    background: rgba(130, 37, 0, 0.92);
}

.astar-v2-profile-card-badge.is-exclusive {
    background: linear-gradient(135deg, rgba(10, 88, 74, 0.96) 0%, rgba(30, 128, 104, 0.96) 100%);
}

.astar-v2-term-lock {
    white-space: nowrap;
}

.astar-v2-detail-visibility-row {
    margin: 8px 0 0;
}

.astar-v2-badge-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.astar-v2-badge-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(280px, 80vw);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(16, 32, 53, 0.96);
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 16px 30px rgba(16, 32, 53, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.astar-v2-profile-card-badges .astar-v2-badge-tooltip {
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    transform: none;
    width: min(300px, calc(100vw - 48px));
    max-width: 300px;
}

.astar-v2-badge-info:hover .astar-v2-badge-tooltip,
.astar-v2-badge-info:focus .astar-v2-badge-tooltip,
.astar-v2-badge-info:focus-visible .astar-v2-badge-tooltip {
    opacity: 1;
    visibility: visible;
}

.astar-v2-badge-info.is-open {
    background: rgba(255, 255, 255, 0.3);
}

body.astar-v2-has-floating-tooltips .astar-v2-badge-tooltip {
    display: none !important;
}

.astar-v2-floating-tooltip {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 9999;
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(16, 32, 53, 0.97);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 18px 40px rgba(16, 32, 53, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.astar-v2-floating-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.astar-v2-profile-card-body {
    display: grid;
    gap: 12px;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
}

.astar-v2-profile-card-body > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.astar-v2-profile-card-body h3 {
    margin: 0;
    font-size: 24px;
    overflow-wrap: anywhere;
}

.astar-v2-profile-card-lead {
    margin: 0;
    font-weight: 700;
    color: #244e73;
}

.astar-v2-profile-card-text {
    margin: 0;
    color: #586979;
    overflow-wrap: anywhere;
}

.astar-v2-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.astar-v2-meta-list span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf4f9;
    color: #244e73;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: normal;
}

.astar-v2-profile-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f6aa5;
    font-weight: 700;
}

.astar-v2-profile-card-admin-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #244e73;
    border-radius: 999px;
    background: #244e73;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.astar-v2-profile-card-admin-action:hover,
.astar-v2-profile-card-admin-action:focus-visible {
    background: #173a57;
    box-shadow: 0 10px 20px rgba(24, 54, 84, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.astar-v2-empty-state {
    padding: 28px;
    border: 1px dashed #c7d3de;
    border-radius: 18px;
    color: #546679;
    background: #f8fbfe;
    text-align: center;
}

.astar-v2-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.astar-v2-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #d8e4ef;
    color: #163049;
    text-decoration: none;
    background: #fff;
}

.astar-v2-pagination a.is-active {
    background: #244e73;
    border-color: #244e73;
    color: #fff;
}

.astar-v2-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 42px;
    color: #51677b;
    font-weight: 700;
}

.astar-v2-detail-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.astar-v2-detail-toolbar a {
    color: #1f6aa5;
    font-weight: 700;
    text-decoration: none;
}

.astar-v2-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 26px;
    align-items: start;
}

.astar-v2-detail-gallery > img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px;
    display: block;
    background: #e8f1f7;
}

.astar-v2-detail-gallery-main {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.astar-v2-detail-gallery-main--missing {
    position: relative;
    cursor: default;
    background: linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
}

.astar-v2-detail-gallery-main.is-blurred {
    position: relative;
    cursor: default;
}

.astar-v2-detail-gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #e8f1f7;
    transition: transform 0.18s ease;
}

.astar-v2-detail-gallery-flag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 42, 65, 0.82);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.astar-v2-detail-gallery-main:hover img {
    transform: scale(1.015);
}

.astar-v2-detail-gallery-main:focus-visible {
    outline: 3px solid rgba(31, 106, 165, 0.3);
    outline-offset: 4px;
}

.astar-v2-detail-gallery-main.is-blurred img,
.astar-v2-detail-thumb.is-blurred img {
    filter: blur(16px);
    transform: scale(1.06);
}

.astar-v2-blur-overlay {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 42, 65, 0.82);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.astar-v2-detail-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.astar-v2-detail-thumb {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.astar-v2-detail-thumb.is-active {
    border-color: #244e73;
    box-shadow: 0 10px 18px rgba(24, 54, 84, 0.14);
}

.astar-v2-detail-thumb img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
    display: block;
}

.astar-v2-detail-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(16, 28, 41, 0.58);
}

.astar-v2-detail-lightbox[hidden] {
    display: none !important;
}

.astar-v2-detail-lightbox__dialog {
    position: relative;
    width: min(880px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    padding: 18px;
    border-radius: 24px;
    border: 1px solid #d8e4ef;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.astar-v2-detail-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(22, 58, 99, 0.08);
    color: #163a63;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.astar-v2-detail-lightbox__viewport {
    overflow: auto;
    border-radius: 18px;
    background: #f4f8fb;
}

.astar-v2-detail-lightbox__viewport img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    margin: 0 auto;
    background: #f4f8fb;
}

.astar-v2-detail-summary {
    display: grid;
    gap: 14px;
}

.astar-v2-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.astar-v2-detail-actions form {
    margin: 0;
}

.astar-v2-detail-inline-note {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f0f5fa;
    color: #244e73;
    font-weight: 700;
}

.astar-v2-meta-list-large span {
    padding: 10px 14px;
}

.astar-v2-detail-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e0e7ef;
}

.astar-v2-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.astar-v2-detail-item {
    padding: 14px 16px;
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    background: #f8fbfe;
}

.astar-v2-detail-item strong {
    display: block;
    margin-bottom: 6px;
    color: #244e73;
}

.astar-v2-detail-item--wide {
    grid-column: 1 / -1;
}

.astar-v2-detail-item--wide .astar-v2-free-text {
    max-width: 78ch;
}

.astar-v2-language-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.astar-v2-language-lines li {
    margin: 0;
    line-height: 1.45;
}

.astar-v2-detail-item--has-translation {
    background: #f8fbfe;
}

.astar-v2-detail-translation-inline {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed #c8d9e9;
    color: #45627c;
    font-size: 0.92em;
    line-height: 1.62;
}

.astar-v2-detail-translation-inline strong {
    display: block;
    margin-bottom: 4px;
    color: #35617f;
    font-size: 0.92em;
    font-weight: 700;
}

.astar-v2-detail-translation-inline .astar-v2-free-text {
    font-size: 0.95em;
}

.astar-v2-detail-item--ai-translation {
    border-color: #c8d9e9;
    background: #f3f8fc;
}

ul.astar-v2-site-info-links {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

p.astar-v2-site-info-links {
    display: block;
    margin: 0 0 1em;
    padding: 0;
    line-height: 1.6;
}

.astar-v2-site-info-links a,
.astar-v2-site-info-follow a {
    color: #1257b8;
    text-decoration: none;
    font-weight: 600;
}

.astar-v2-site-info-links a:hover,
.astar-v2-site-info-follow a:hover {
    text-decoration: underline;
}

.astar-v2-site-info-follow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.98rem;
    line-height: 1.6;
}


@media (max-width: 900px) {
    .astar-v2-directory-layout,
    .astar-v2-detail-header,
    .astar-v2-detail-grid {
        grid-template-columns: 1fr;
    }

    .astar-v2-directory-sidebar {
        position: static;
    }

    .astar-v2-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .astar-v2-shell {
        margin: 20px auto;
        padding: 0 14px 28px;
    }

    .astar-v2-card,
    .astar-v2-card-wide {
        padding: 18px;
        border-radius: 16px;
    }

    .astar-v2-choice-grid,
    .astar-v2-highlight-grid,
    .astar-v2-status-grid,
    .astar-v2-form-grid {
        grid-template-columns: 1fr;
    }

    .astar-v2-form-actions {
        flex-direction: column;
    }

    .astar-v2-form-actions .astar-v2-button {
        width: 100%;
    }

    .astar-v2-filter-actions {
        flex-direction: column;
    }

    .astar-v2-filter-actions .astar-v2-button {
        width: 100%;
        justify-content: center;
    }

    .astar-v2-directory-summary,
    .astar-v2-detail-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .astar-v2-profile-card {
        grid-template-rows: 200px 1fr;
    }

    .astar-v2-detail-gallery-main img {
        height: 280px;
    }

    .astar-v2-detail-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .astar-v2-detail-thumb img {
        height: 76px;
    }
}

@media (max-width: 544px) {
    .astar-v2-detail-lightbox {
        padding: 12px;
    }

    .astar-v2-detail-lightbox__dialog {
        width: calc(100vw - 20px);
        padding: 14px;
        border-radius: 18px;
    }

    .astar-v2-detail-lightbox__viewport img {
        max-height: 72vh;
    }
}
