/* Hide from */
.back-link {
  display: inline-block;
}

.back-link::before {
  content: "← Back";
  color: #333;
  text-decoration: underline;
}

/* Compare */
.compare-green {
    color: #2ecc71; /* nice green */
    font-weight: 600;
}

#compare-bar {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 12px 0px 0px 0px;
    background: #f7f7f7;
    display: none; /* JS toggles .show */
}

#compare-bar.show {
    display: block;
}

.compare-bar.show {
    transform: translateY(0);
}

.compare-bar-content {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.compare-actions {
    display: flex;
    gap: 8px;
}

.compare-btn {
    background: #4caf50;
    border: none;
    padding: 8px 14px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.clear-btn {
    background: #444;
    border: none;
    padding: 8px 12px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .compare-bar-content {
        flex-direction: column;
        text-align: center;
    }
}


/* -----------------------------------------
   GLOBAL SOFTENING LAYER
   Applies everywhere for a unified feel
----------------------------------------- */

/* Softer text colours + softer background + unified font */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f7f8fa;
    margin: 0;
    padding: 40px;
    color: #444;
    line-height: 1.55;
}

/* Headings slightly softer + more modern */
h1, h2, h3 {
    color: #0A3D91;
    line-height: 1.3;
    font-weight: 600;
}

/* Slightly larger base text */
body, p, .metric, .metric-card p {
    font-size: 16px;
}
/* Big Health Score Component */
/* Base component */
.health-score-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    padding: 24px 32px;
    margin-bottom: 20px;

    max-width: 180px;
}

.health-score-big .score-number {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
}

.health-score-big .score-label {
    margin-top: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

.score-band {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}


/* Colour bands */
.score-very-weak .score-number { color: #b91c1c; }      /* deep red */
.score-weak .score-number { color: #dc2626; }           /* red */
.score-mild-weak .score-number { color: #f97316; }      /* orange */
.score-neutral .score-number { color: #6b7280; }        /* grey */
.score-mild-strong .score-number { color: #16a34a; }    /* green */
.score-strong .score-number { color: #15803d; }         /* deep green */
.score-very-strong .score-number { color: #0f766e; }    /* teal */

/* Softer card shadows + rounder corners */
.top-left, .top-right, .section, .metric-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 10px;
}

/* More breathing room in sections */
.section {
    background: #fff;
    padding: 32px;
    margin-bottom: 32px;
}

/* Softer micro text */
.br-micro {
    color: #777;
}

.score-number {
    opacity: 0;
}
.score-number.animated {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* While animating, force dark grey/black */
.score-pending .score-number {
    color: #111 !important; /* deep grey/black */
}


/* -----------------------------------------
   HEADER
----------------------------------------- */

.br-header {
    background: #0A3D91;
    color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.br-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.br-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.br-tagline {
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.br-nav {
    color: #fff;
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.br-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.br-nav a:hover {
    color: #ffffff;
}

.br-nav a:active,
.br-nav a:focus {
    color: #dce9ff;
}

.br-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.br-search-input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    width: 220px;
    transition: all 0.2s ease;
}

.br-search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.br-search-input:focus {
    border-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.28);
}

.br-search-btn {
    padding: 8px 12px;
    background: #ffffff;
    color: #0A3D91;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-search-btn:hover {
    background: #dce9ff;
    color: #072f72;
}

.br-search-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* -----------------------------------------
   GRID + CARD SYSTEM
----------------------------------------- */

.top-grid {
    margin-top: 28px;
	display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.top-left, .top-right {
    background: #fff;
    padding: 20px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
	margin: 6px 0;
}

.metric-value {
    white-space: nowrap;
}

.metric .label {
    font-weight: 500;
    color: #333;
}

.metric-box {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 14px;
    background: #fafafa;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-box .label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.metric-box .value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.metric-box .health-label {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 2px;
}

.metric-very-strong   { color: #1B7F4A; }  /* deep green */
.metric-strong        { color: #2E8B57; }  /* green */
.metric-mild-strength { color: #6FBF73; }  /* soft green */
.metric-neutral       { color: #777; }     /* grey */
.metric-mild-weakness { color: #D9A441; }  /* soft amber */
.metric-weak          { color: #D9822B; }  /* orange */
.metric-very-weak     { color: #C0392B; }  /* red */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.metric-box {
    border-left: 6px solid transparent;
}

.metric-box.metric-very-strong   { border-left-color: #1B7F4A; }
.metric-box.metric-strong        { border-left-color: #2E8B57; }
.metric-box.metric-mild-strength { border-left-color: #6FBF73; }
.metric-box.metric-neutral       { border-left-color: #777; }
.metric-box.metric-mild-weakness { border-left-color: #D9A441; }
.metric-box.metric-weak          { border-left-color: #D9822B; }
.metric-box.metric-very-weak     { border-left-color: #C0392B; }


.delta-pos {
    color: #0a8f3a;
    font-weight: 600;
}

.delta-neg {
    color: #c62828;
    font-weight: 600;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: #fafafa;
    padding: 16px;
    border: 1px solid #eee;
}

.label {
    font-weight: 600;
    color: #333;
}

.company-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

.company-link {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0057d8;
    text-decoration: none;
}

.company-link:hover {
    text-decoration: underline;
}

.dormant-banner {
    background: #fff7d6;
    border-left: 4px solid #e0b200;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.5;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
}

/* -----------------------------------------
   HOMEPAGE HERO TEXT
----------------------------------------- */

.br-hero-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.br-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #0A3D91;
    line-height: 1.25;
}

.br-hero-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.55;
}

.br-hero-meta {
    font-size: 16px;
    color: #666;
    line-height: 1.55;
}

.br-hero-caption {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
}

/* -----------------------------------------
   HOMEPAGE PILL TAGS
----------------------------------------- */

.br-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px 0;
}

.br-pill {
    background: #f0f3f7;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: #444;
    border: 1px solid #e4e7eb;
}

/* -----------------------------------------
   ABSTRACT GRAPHIC (CSS-ONLY)
----------------------------------------- */

.br-abstract-wrapper {
    position: relative;
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 0%, #e8f4ff 0, #f5f8fc 40%, #f5f6f8 100%);
    border: 1px solid #e5e5e5;
}

.br-abstract-orbit {
    position: absolute;
    width: 220%;
    height: 220%;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    top: -60%;
    left: -60%;
    transform: rotate(-8deg);
}

.br-abstract-orbit:nth-child(2) {
    top: -40%;
    left: -50%;
    transform: rotate(10deg);
    border-color: rgba(148, 163, 184, 0.18);
}

.br-abstract-orbit:nth-child(3) {
    top: -20%;
    left: -40%;
    transform: rotate(24deg);
    border-color: rgba(148, 163, 184, 0.12);
}

.br-abstract-pulse {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #e0f2fe, #0ea5e9);
    right: 10%;
    bottom: 12%;
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.35);
}

.br-abstract-pulse::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.br-abstract-pill {
    position: absolute;
    left: 10%;
    bottom: 18%;
    width: 150px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.25);
}

.br-abstract-pill::before,
.br-abstract-pill::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-50%);
}

.br-abstract-pill::before {
    left: 16px;
    width: 18px;
}

.br-abstract-pill::after {
    left: 40px;
    width: 26px;
}

.br-abstract-sparkline {
    position: absolute;
    left: 12%;
    top: 18%;
    width: 55%;
    height: 40px;
}

.br-abstract-sparkline-line {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.55));
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 40%, transparent 100%);
}

.br-abstract-sparkline-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    right: 8%;
    top: 30%;
}



