/* Site-wide adapters for the established Loot Search design.
 * Load after page styles. Layouts, data colours and control states stay local.
 */
@import url('./target-loot-theme.css?v=20261005-site');

body.pt-site-theme {
    --bg2: #090b0f;
    --card: #10151b;
    --panel3: #1a2531;
    --surface: #10151b;
    --raised: #131b24;
    --orange: #f39a3c;
    --soft: #f39a3c13;
    --accent-soft: #f39a3c13;
    --line2: #4e3827;
    --line-strong: #4e3827;
    --shadow: none;
    --builder-bg: #090b0f;
    --builder-panel: #10151b;
    --builder-panel-2: #131b24;
    --builder-line: #27303b;
    --builder-line-hot: #4e3827;
    --builder-orange: #f39a3c;
    --builder-gold: #f2b578;
    --builder-text: #edf2f6;
    --builder-muted: #9aa7b6;
}
.pt-site-theme, .pt-site-theme *, .pt-site-theme *::before, .pt-site-theme *::after { box-sizing: border-box; }
.pt-site-theme::before { display: none; }
.pt-site-theme :is(.wrap, .container, .builder-wrap, .download-shell, .bot-shell, .legal-shell, .page) {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 28px 48px;
    min-width: 0;
}
.pt-site-theme a { color: inherit; }
.pt-site-theme a:hover { color: var(--accent); }
.pt-site-theme :is(h1, h2, h3) { font-family: Rajdhani, system-ui, sans-serif; font-weight: 700; }
.pt-site-theme h1 {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 8px 0 12px;
    text-align: left;
}
.pt-site-theme :is(.hero h1, .page-heading h1, .download-copy h1, .bot-hero h1, .builder-lead h1, .container > h1) {
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.08;
}
.pt-site-theme :is(.eyebrow, .hero-kicker, .bot-kicker, .kicker) {
    color: var(--accent);
    font: 700 11px/1.4 ui-monospace, Consolas, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.pt-site-theme :is(.subtitle, .page-caption, .hero-copy > p, .builder-lead > p) { color: var(--muted); font-size: 15px; font-weight: 400; }
.pt-site-theme :is(.grid, .chart-grid, .layout, .content-shell, .wiki-shell, .hero, .builder-grid) > *,
.pt-site-theme :is(.card, .panel, .table-panel, .xp-table-wrap, .attr-table-wrap) { min-width: 0; }
.pt-site-theme canvas { max-width: 100%; }
.pt-site-theme .gear-group-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pt-site-theme .agent-hero { min-width: 0; width: 100%; aspect-ratio: auto; }
.pt-site-theme .agent-hero .hero-content { position: relative; }

/* A quiet masthead on every route, including older dashboard-style pages. */
.pt-site-theme :is(.site-header, .download-nav, .bot-nav, .legal-nav) {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 12px 0 20px;
    margin: 0 0 28px;
}
.pt-site-theme .site-header { width: calc(100% - 56px); max-width: 1144px; margin: 20px auto 0; }
.pt-site-theme .site-header-inner { padding: 0; gap: 18px; }
.pt-site-theme :is(.site-brand, .download-brand strong, .bot-brand strong, .legal-brand strong) {
    color: var(--text);
    font: 750 17px/1.5 system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    min-width: 0;
}
.pt-site-theme .site-brand { display: flex; align-items: center; gap: 10px; }
.pt-site-theme .site-header .site-brand { flex-wrap: wrap; }
.pt-site-theme .site-brand span:not(.brand-mark) { font: inherit; }
.pt-site-theme :is(.site-brand small, .download-brand small, .bot-brand small, .legal-brand small) {
    color: var(--muted); font: 11px/1.5 ui-monospace, Consolas, monospace; letter-spacing: 0; text-transform: none;
}
body.pt-site-theme .page-top .site-brand { padding: 0; border: 0; background: transparent; box-shadow: none; font: 750 17px/1.5 system-ui, sans-serif; }
.pt-site-theme .brand-mark { box-shadow: none; }
.pt-site-theme .page-top .brand-mark { display: inline-grid; place-items: center; flex: 0 0 32px; padding: 0; color: var(--accent); font: 700 19px Rajdhani, system-ui, sans-serif; }
.pt-site-theme :is(.top-actions, .site-nav) { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-site-theme.tl-search-theme :is(.site-nav, .download-nav, .bot-nav, .legal-nav) :is(a, button, .pt-menu-toggle):not(.site-brand) {
    min-height: 36px; padding: 8px 12px; margin-top: 0;
    border: 1px solid transparent; border-radius: 5px;
    background: transparent; color: var(--muted); box-shadow: none;
    font-size: 13px; font-weight: 500;
}
.pt-site-theme.tl-search-theme :is(.site-nav, .download-nav, .bot-nav, .legal-nav) :is(a, button, .pt-menu-toggle):hover {
    color: var(--accent); background: var(--accent-soft); border-color: #f39a3c30;
}
.pt-site-theme :is(.pt-menu-panel, .loot-share-dialog) { background: var(--panel); border-color: var(--line); border-radius: 6px; }
.pt-site-theme.tl-search-theme :is(.top-nav, .page-top, .site-nav, .admin-nav) [aria-current=page] { color: var(--accent); background: var(--accent-soft); border-color: #f39a3c30; }
.pt-site-theme .pt-menu-panel :is(a, button) { width: 100%; justify-content: flex-start; }

/* Text leads the page, as in Loot Search. Decorative dashboard banners give
 * way to the existing page title; agent identity and seasonal artwork remain. */
.pt-site-theme .prototrack-hero { display: none; }
.pt-site-theme :is(.hero, .page-heading, .builder-top) {
    margin: 38px 0 26px; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.pt-site-theme :is(.hero, .builder-top)::before { display: none; }
.pt-site-theme :is(.hero-stat, .command-kpi, .metric, .status-box, .status-row, .info-fact) {
    background: #0d1218; border: 1px solid var(--line); border-radius: 6px; box-shadow: none;
}
.pt-site-theme :is(.hero-stat span, .command-kpi span, .metric span, .label) {
    color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .04em;
}
.pt-site-theme :is(.hero-stat strong, .command-kpi strong, .metric strong, .statbox h3, .value, .summary-value) {
    font-family: Rajdhani, system-ui, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Page-specific cards share surfaces while meaningful item/status colours
 * remain in their existing badges, cores, charts and progress bars. */
.pt-site-theme :is(.wiki-card, .item-card, .gear-card, .gear-group-card, .weapon-card, .talent-card, .set-card, .stat-card, .augment-card, .bundle-card, .mutator-card, .modifier-card, .rate-card, .login-card, .insight-card, .summary-card, .signature-card, .op-item, .goal-row, .slot-card, .skill-card) {
    border: 1px solid var(--line); border-radius: 8px;
    background: linear-gradient(125deg, #ffffff03, transparent 45%), var(--panel);
    box-shadow: none;
}
.pt-site-theme :is(.wiki-card, .item-card, .gear-card, .weapon-card, .talent-card, .set-card, .stat-card, .augment-card, .bundle-card, .mutator-card, .modifier-card):hover {
    transform: none; border-color: #3a4655; box-shadow: none;
}
.pt-site-theme :is(.wiki-card, .gear-card, .weapon-card, .talent-card, .stat-card, .insight-card)::before { display: none; }
.pt-site-theme :is(.dashboard-command, .operations-command, .cost-panel, .table-shell, .toolbar, .control-bar, .side-rail, .rail, .section-nav, .collapsible-section, .section-panel, .table-panel, .metric-group, .command-panel, .operation-panel, .identity-panel, .focus-panel, .trend-panel, .trend-bars, .goal-shell, .badge-wall, .agent-hero, .download-copy, .bot-hero, .stats-panel, .search-history-panel, .anti-panel, .profile-context, .review-context, .ban-filters) {
    border: 1px solid var(--line); border-radius: 8px;
    background: #0d1218; box-shadow: none;
}
.pt-site-theme :is(.dashboard-command, .operations-command, .agent-hero, .download-copy, .bot-hero) { border-color: var(--border); }
.pt-site-theme :is(.dashboard-command, .operations-command, .agent-hero, .download-copy, .bot-hero)::before,
.pt-site-theme .agent-hero::after { display: none; }
.pt-site-theme :is(.dashboard-control-card, .field-intel-card, .chart-card, .statbox, .group-overview-card) { background: var(--panel); box-shadow: none; border-radius: 8px; }
.pt-site-theme .metric-group .statbox { background: var(--panel); }
.pt-site-theme .floating-session-link a { background: var(--accent); color: #19110a; border-radius: 4px; box-shadow: none; }
.pt-site-theme .statbox::before { display: none; }
.pt-site-theme :is(.intel-item, .detail-card, .desc-card, .stat-block, .value-card, .score-box, .trust-item, .step, .command-box, .season-picker) {
    background: #131b24; border-color: var(--line); border-radius: 5px; box-shadow: none;
}
.pt-site-theme :is(.metric-icon, .card-icon, .brand-mark) { border-radius: 5px; box-shadow: none; }
.pt-site-theme .metric-icon { background: var(--accent-soft); border-color: #f39a3c30; }
.pt-site-theme .metric-icon img { filter: none; }
.pt-site-theme :is(.subline, .mini-note, .command-kpi, .hero-stat, .ops-detail, .status-strip, .site-nav) { font-weight: 400; }
.pt-site-theme .card-copy { font-weight: 400; color: var(--muted); }
.pt-site-theme :is(.card-title, .talent-title, .gear-title, .weapon-title) { font-weight: 700; }

/* Flat actions and outlined navigation retain destructive/success variants. */
.pt-site-theme :is(button, .button, .btn, .pt-button, a.login) {
    border-radius: 4px; font-weight: 600; box-shadow: none; text-shadow: none;
}
.pt-site-theme :is(button, .button, .btn, .pt-button, a.login):hover { transform: none; filter: none; box-shadow: none; }
.pt-site-theme :is(button, .button, .btn, .pt-button, a.login):where(:not(.secondary, .danger, .success, .delete-btn, .tab, .collapse-toggle, .loot-picker-option, .calendar-day, .category-button, .type-filter, .filter-button, .quick-button, .profile-tab, .loot-option)) {
    background: var(--accent); border-color: var(--accent); color: #19110a;
}
.pt-site-theme :is(.button, .btn, .pt-button, button).secondary {
    background: transparent; border-color: #f39a3c4a; color: var(--accent2); box-shadow: none;
}
.pt-site-theme :is(.tabs, .profile-nav, .category-nav, .blueprint-nav, .quick-grid) { background: #0d1218; border-color: var(--line); border-radius: 6px; box-shadow: none; }
.pt-site-theme :is(.tab, .category-button, .type-filter, .filter-button, .quick-button, .rail-link, .nav-link, .section-tab, .blueprint-nav-tile, .chart-toggle button, .profile-tabs button) {
    background: transparent; color: var(--muted); border-color: var(--line);
    border-radius: 4px; box-shadow: none; font-size: 12px; font-weight: 500;
}
.pt-site-theme :is(.tab, .category-button, .type-filter, .filter-button, .quick-button, .rail-link, .nav-link, .section-tab, .blueprint-nav-tile, .chart-toggle button, .profile-tabs button):is(.active, .is-on, .is-active, [aria-current=page], [aria-selected=true], :hover) {
    color: var(--accent); background: var(--accent-soft); border-color: #f39a3c30;
}
.pt-site-theme :is(button, .button, .btn, .pt-button):disabled { opacity: .5; cursor: not-allowed; }
.pt-site-theme :is(input[type=checkbox], input[type=radio]) { accent-color: var(--accent); }
.pt-site-theme.tl-search-theme :is(input, select, textarea):where(:not([type=checkbox], [type=radio], [type=hidden])) { min-width: 0; max-width: 100%; border-radius: 4px; background: #131b24; border-color: var(--line); color: var(--text); font-size: 13px; font-weight: 400; box-shadow: none; }
.pt-site-theme :is(input, select, textarea)::placeholder { color: #8491a1; opacity: 1; }
.pt-site-theme :is(input, select, textarea):focus-visible { border-color: var(--accent); }
.pt-site-theme :is(#dashboardScope, #activeUserDashboard, #missionFilter, #timeFilter, #activeUserRuns, #activeUserUsers) {
    border: 1px solid var(--line); border-radius: 4px;
    background: #131b24; color: var(--text); box-shadow: none; font: 400 13px/1.5 system-ui, sans-serif;
}
.pt-site-theme :is(#dashboardScope, #activeUserDashboard, #missionFilter, #timeFilter, #activeUserRuns, #activeUserUsers):focus { border-color: var(--accent); box-shadow: none; }
.pt-site-theme :is(.table-wrap, .table-scroll, .xp-table-wrap, .attr-table-wrap, .ban-table-wrap) { border-color: var(--line); border-radius: 6px; }
.pt-site-theme table { background: var(--panel); }
.pt-site-theme th { background: #0d1218; color: var(--muted); border-color: var(--line); font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.pt-site-theme td { border-color: var(--line); }
.pt-site-theme tr:hover td { background-color: #1a2531; }
.pt-site-theme :is(.footer, .site-footer, .bot-footer, .legal-footer) { color: var(--muted); font-size: 11px; }

/* Existing specialised consoles retain their control geometry. */
.pt-site-theme.tl-search-theme .command-line input { border: 0; border-radius: 0; background: transparent; font: 15px ui-monospace, Consolas, monospace; }
.pt-site-theme .terminal-bar h2 { font: 600 12px ui-monospace, Consolas, monospace; }
.pt-site-theme .command-line button { font-weight: 700; }
.pt-site-theme .loot-option { background: transparent; color: var(--text); border-color: var(--line); }
.pt-site-theme .loot-option:is(:hover, [aria-selected=true]) { background: #1a2531; border-left-color: var(--accent); }
.pt-site-theme.tl-search-theme :is(.calendar .day, .workspace-tabs button, .view-switch button, .profile-tabs button, .search-enter, .collapse-toggle, .loot-picker-trigger) { background: transparent; color: var(--muted); border-color: var(--line); }
.pt-site-theme.tl-search-theme .calendar .day { background: var(--panel); color: var(--text); }
.pt-site-theme.tl-search-theme :is(.calendar .day[aria-pressed=true], .workspace-tabs button[aria-selected=true], .view-switch button[aria-pressed=true], .profile-tabs button[aria-selected=true]) { background: var(--accent-soft); color: var(--accent); border-color: #f39a3c55; }
.pt-site-theme .login-card { margin: 24px; padding: 30px; }
.pt-site-theme .login-card h1 { text-align: center; }
.pt-site-theme .ban-heading h1 { font-size: clamp(34px, 5vw, 48px); }

@media (max-width: 960px) {
    .pt-site-theme :is(.hero, .builder-top) { gap: 20px; }
    .pt-site-theme .hero-stats { min-width: 0; }
}
@media (max-width: 760px) {
    .pt-site-theme :is(.wrap, .container, .builder-wrap, .download-shell, .bot-shell, .legal-shell, .page) { padding: 15px 16px 32px; }
    .pt-site-theme .site-header { width: calc(100% - 32px); margin-top: 15px; }
    .pt-site-theme :is(.site-header-inner, .download-nav, .bot-nav, .legal-nav) { flex-wrap: wrap; gap: 10px; }
    .pt-site-theme :is(.hero, .page-heading, .builder-top) { margin-top: 28px; }
    .pt-site-theme :is(.site-nav, .top-actions) { justify-content: flex-start; }
    .pt-site-theme .site-nav { display: flex; width: 100%; }
    .pt-site-theme .site-nav :is(.pt-button, button, .pt-menu, .pt-menu-toggle) { width: auto; }
    .pt-site-theme :is(.site-nav, .download-nav, .bot-nav, .legal-nav) :is(a, button, .pt-menu-toggle):not(.site-brand) { font-size: 11px; padding: 6px 8px; }
}
@media (max-width: 480px) {
    .pt-site-theme .site-header-inner { align-items: flex-start; }
    .pt-site-theme :is(.hero-stats, .command-kpis) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-site-theme .login-card { margin: 16px; padding: 24px 20px; }
}

/* Printed reports keep the page's own print layout and a legible paper palette.
 * The dedicated seasonal PDF export never opts in to this theme. */
@media print {
    body.pt-site-theme { --text: #111; --muted: #444; --line: #bbb; --accent: #8a4200; --panel: #fff; --panel2: #f4f4f4; background: #fff; color: #111; }
    .pt-site-theme :is(.wrap, .container) { max-width: none; padding: 0; }
    .pt-site-theme :is(.card, .panel, .insight-card, .summary-card, .identity-panel, .agent-hero, .table-wrap, .trend-panel, .trend-bars, .op-item, .goal-row, .signature-card) { background: #fff; border-color: #bbb; box-shadow: none; }
    .pt-site-theme :is(h1, h2, h3, .value, .summary-value, td) { color: #111; }
    .pt-site-theme th { background: #eee; color: #333; }
}
