/* AU State Page Styles — Konnex Explorer */
/* Matches Explorer design system: warm palette, terracotta accents */

/* ===== LIGHT THEME (default) ===== */
:root {
    --bg: #F5F0EB;
    --surface: #EDE7E0;
    --surface-elevated: #E8E2DB;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --text: #1A1A1A;
    --text-secondary: #52525B;
    --text-tertiary: #71717A;
    --terracotta: #E8703A;
    --accent: #E8703A;
    --accent-deep: #C4581F;
    --accent-glow: rgba(232, 112, 58, 0.12);
    --accent-surface: rgba(232, 112, 58, 0.06);
    --nav-bg: rgba(245, 240, 235, 0.92);
    --radius: 12px;
    --radius-lg: 16px;
    --max-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ========== NAV ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text);
    font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.1rem;
}
.nav-logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-link {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ========== CONTAINER ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto; padding: 80px 24px 40px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 0.8rem; color: var(--text-tertiary);
    margin-bottom: 24px;
}
.breadcrumb a {
    color: var(--text-secondary); text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-tertiary); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ========== H1 ========== */
h1 {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem; font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* ========== INTRO TEXT ========== */
.intro-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 700px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ========== STAT GRID ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.stat-value {
    font-family: 'Lexend', sans-serif;
    font-size: 1.6rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========== SECTIONS ========== */
.section {
    margin-bottom: 40px;
}
.section h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem; font-weight: 600;
    margin-bottom: 16px;
}

/* ========== DATA TABLE ========== */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-strong);
    background: var(--surface-elevated);
}
.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.data-table td a:hover { color: var(--accent); }

/* ========== LINK GRIDS ========== */
.link-grid {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.sibling-link, .cross-ind-link {
    display: inline-block;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.sibling-link:hover, .cross-ind-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== STAT GRID 5-COLUMN ========== */
.stat-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ========== TOP-RATED BUSINESS ========== */
.top-rated-card {
    background: var(--accent-surface);
    border: 1px solid var(--accent-glow);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 32px;
}
.top-rated-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}
.top-rated-name {
    font-family: 'Lexend', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.top-rated-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========== COMPARISON SECTION ========== */
.comparison-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 40px;
}
.comparison-section h2 {
    margin-bottom: 8px;
}
.comparison-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.comparison-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.comparison-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.comparison-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.comparison-value {
    font-family: 'Lexend', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}
.comparison-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}
.badge-above {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.badge-below {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.comparison-context {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ========== FAQ SECTION ========== */
.faq-section {
    margin-bottom: 40px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--surface);
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--border-strong);
}
.faq-question {
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-tertiary);
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
    content: '−';
}
.faq-answer {
    padding: 0 18px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--accent-deep) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    margin: 48px 0;
}
.cta-section h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: var(--accent-deep);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ========== FOOTER ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 40px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-tertiary);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid-5 .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .comparison-grid { grid-template-columns: 1fr; }
    .comparison-section { padding: 20px; }
    h1 { font-size: 1.5rem; }
    .cta-section { padding: 32px 24px; }
    .cta-section h2 { font-size: 1.25rem; }
    .nav-links { gap: 16px; }
    .nav-link { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .container { padding: 70px 16px 32px; }
    .stat-grid { gap: 10px; }
    .stat-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 1.3rem; }
    .comparison-value { font-size: 1.1rem; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .breadcrumb { font-size: 0.75rem; }
}

/* ========== ENRICHED POC — Content Enrichment sections ========== */

/* Page Hero */
.page-hero {
    text-align: left;
    margin-bottom: 32px;
}
.page-hero h1 {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}
.hero-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent-deep);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.hero-hook {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 680px;
}

/* Rich Intro */
.rich-intro { margin-bottom: 32px; }
.intro-text--rich {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 780px;
}

/* Stat card highlight variant */
.stat-card--highlight {
    border-left: 3px solid var(--accent);
}

/* Section subtitle */
.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

/* Sortable table */
.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}
.sortable-table th.sortable:hover {
    color: var(--accent);
}
.sortable-table th.sorted-asc,
.sortable-table th.sorted-desc {
    color: var(--accent-deep);
}

/* Badge equal */
.badge-equal {
    background: rgba(107, 114, 128, 0.12);
    color: #6b7280;
}

/* Industry Context */
.industry-context p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 780px;
}
.industry-context p:last-child { margin-bottom: 0; }

/* Related Industries */
.related-industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.related-industry-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.related-industry-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
}
.ri-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 4px;
}
.ri-count {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}
.ri-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    align-self: flex-start;
}
.badge-complementary {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.badge-subcontract {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
}
.badge-related {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}
.badge-referral {
    background: rgba(232, 112, 58, 0.1);
    color: var(--accent-deep);
}

/* Dual CTA */
.dual-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: none;
    padding: 0;
    margin: 48px 0;
}
.cta-card {
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
}
.cta-consumer {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--accent-deep) 100%);
}
.cta-owner {
    background: var(--surface);
    border: 1px solid var(--border);
}
.cta-card h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-consumer h3, .cta-consumer p { color: #fff; }
.cta-consumer p { color: rgba(255,255,255,0.85); }
.cta-owner h3 { color: var(--text); }
.cta-owner p { color: var(--text-secondary); }
.cta-card p {
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.cta-btn--secondary {
    background: var(--accent);
    color: #fff;
}
.cta-btn--secondary:hover {
    background: var(--accent-deep);
}

/* SAB Value Prop */
.sab-section {
    background: var(--card-bg);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 12px 0 24px;
}
.sab-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Data Methodology */
.methodology-section {
    margin: 24px 0 0;
}
.methodology-text {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

/* ========== ENRICHED RESPONSIVE ========== */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.5rem; }
    .related-industry-grid { grid-template-columns: repeat(2, 1fr); }
    .dual-cta { grid-template-columns: 1fr; }
    .cta-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.3rem; }
    .hero-hook { font-size: 0.9rem; }
    .intro-text--rich { font-size: 0.92rem; }
    .related-industry-grid { grid-template-columns: 1fr; }
}
