.detail-brand {
    color: inherit;
    text-decoration: none;
}

.detail-main {
    padding-top: 24px;
}

.detail-back {
    margin-bottom: 15px;
}

.detail-back a {
    color: #929aa4;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.detail-back a:hover {
    color: #ffb329;
}

.detail-hero {
    position: relative;
    overflow: hidden;

    min-height: 330px;

    display: grid;
    grid-template-columns: 1fr 310px;
    align-items: center;
    gap: 45px;

    padding: 48px 52px;

    border: 1px solid var(--line);
    border-radius: 25px;

    background:
        radial-gradient(
            circle at 90% 80%,
            rgba(255,153,0,.12),
            transparent 28%
        ),
        linear-gradient(
            115deg,
            rgba(153,25,0,.31),
            rgba(31,23,24,.88) 45%,
            rgba(20,21,23,.97)
        );
}

.detail-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 38px,
            rgba(255,255,255,.012) 39px,
            transparent 40px
        );
}

.detail-hero-copy,
.hero-value {
    position: relative;
    z-index: 1;
}

.detail-rup-code {
    margin-top: 18px;

    color: #d89c31;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.detail-hero h1 {
    max-width: 950px;

    margin: 7px 0 12px;

    color: #f4f5f6;

    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.04;
    letter-spacing: -.05em;
}

.detail-satker {
    max-width: 850px;
    margin: 0;

    color: #a8afb7;

    font-size: 13px;
    line-height: 1.5;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 22px;
}

.hero-tags span {
    padding: 6px 10px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;

    background: rgba(255,255,255,.025);

    color: #a9b0b8;
    font-size: 9px;
}

.hero-tags .policy-tag {
    border-color: rgba(255,153,0,.22);
    color: #e3b34f;
}

.hero-value {
    padding: 30px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;

    background: rgba(9,11,13,.35);
    backdrop-filter: blur(12px);
}

.hero-value span,
.hero-value small {
    display: block;

    color: #8f98a2;
    font-size: 10px;
}

.hero-value strong {
    display: block;

    margin: 8px 0 5px;

    color: #fff;

    font-size: 34px;
    letter-spacing: -.05em;
}

.intelligence-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;

    margin-top: 15px;
}

.intelligence-strip > div {
    padding: 20px 22px;

    border: 1px solid var(--line);
    border-radius: 17px;

    background: var(--surface);
}

.intelligence-strip span,
.intelligence-strip small {
    display: block;

    color: #828b95;
    font-size: 9px;
}

.intelligence-strip strong {
    display: block;

    margin: 4px 0;

    color: #f2f3f5;

    font-size: 24px;
}

.intelligence-strip .signal-active {
    border-color: rgba(255,153,0,.24);

    background:
        linear-gradient(
            135deg,
            rgba(153,25,0,.24),
            rgba(255,153,0,.035)
        ),
        var(--surface);
}

.intelligence-strip .signal-active strong {
    color: #ffbd43;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    gap: 15px;

    margin-top: 15px;
}

.detail-card {
    padding: 29px;

    border: 1px solid var(--line);
    border-radius: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.026),
            rgba(255,255,255,.006)
        ),
        var(--surface);
}

.full-card {
    margin-top: 15px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 24px;
}

.section-heading > span {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border: 1px solid rgba(255,153,0,.18);
    border-radius: 10px;

    background: rgba(153,25,0,.12);

    color: #e3a632;

    font-size: 9px;
    font-weight: 900;
}

.section-heading small {
    display: block;

    color: #d59c31;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}

.section-heading h2 {
    margin: 2px 0 0;

    color: #eef0f2;

    font-size: 19px;
    letter-spacing: -.03em;
}

.heading-value {
    margin-left: auto;

    color: #838c96;
    font-size: 9px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: var(--line);
}

.property-grid > div {
    min-width: 0;

    padding: 16px;

    background: #1a1e22;
}

.property-grid span,
.property-grid strong {
    display: block;
}

.property-grid span {
    margin-bottom: 5px;

    color: #737d88;
    font-size: 8px;
    text-transform: uppercase;
}

.property-grid strong {
    overflow-wrap: anywhere;

    color: #dfe3e7;

    font-size: 11px;
    font-weight: 700;
}

.narrative {
    display: grid;
    gap: 16px;

    margin-top: 20px;
}

.narrative > div {
    padding: 16px;

    border-left: 2px solid rgba(255,153,0,.28);

    background: rgba(255,255,255,.015);
}

.narrative span {
    display: block;

    color: #818a94;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.narrative p {
    margin: 6px 0 0;

    color: #c1c7cd;

    font-size: 10px;
    line-height: 1.7;
}

.timeline-list {
    display: grid;
    gap: 0;
}

.timeline-list > div {
    position: relative;

    display: grid;
    grid-template-columns: 17px 1fr auto;
    align-items: center;
    gap: 10px;

    min-height: 43px;

    border-bottom: 1px solid var(--line);
}

.timeline-list > div:last-child {
    border-bottom: 0;
}

.timeline-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ff9900;

    box-shadow:
        0 0 0 4px rgba(255,153,0,.06);
}

.timeline-list small {
    color: #858e98;
    font-size: 9px;
}

.timeline-list strong {
    color: #d8dce0;
    font-size: 10px;
}

.budget-list {
    border-top: 1px solid var(--line);
}

.budget-row {
    display: grid;
    grid-template-columns: 44px 1fr 180px;
    gap: 15px;
    align-items: center;

    padding: 17px 4px;

    border-bottom: 1px solid var(--line);
}

.budget-number {
    color: #636d77;

    font-size: 10px;
    font-weight: 900;
}

.budget-main strong,
.budget-main span,
.budget-main small {
    display: block;
}

.budget-main strong {
    color: #dfe2e5;
    font-size: 11px;
}

.budget-main span {
    margin-top: 3px;

    color: #8a939d;
    font-size: 9px;
}

.budget-main small {
    margin-top: 5px;

    color: #626c76;
    font-size: 8px;
}

.budget-value {
    text-align: right;
}

.budget-value span,
.budget-value strong {
    display: block;
}

.budget-value span {
    color: #777f89;
    font-size: 8px;
}

.budget-value strong {
    margin-top: 3px;

    color: #f0f1f2;
    font-size: 15px;
}

.data-note {
    margin-top: 17px;
    padding: 12px 14px;

    border: 1px solid rgba(255,153,0,.09);
    border-radius: 10px;

    background: rgba(255,153,0,.025);

    color: #777f88;

    font-size: 8px;
    line-height: 1.6;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.location-item {
    display: flex;
    gap: 12px;

    min-height: 100px;
    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 13px;

    background: rgba(255,255,255,.012);
}

.location-pin {
    color: #ff9900;
    font-size: 9px;
}

.location-item strong,
.location-item span,
.location-item p {
    display: block;
}

.location-item strong {
    color: #dfe2e5;
    font-size: 11px;
}

.location-item div > span {
    margin-top: 3px;

    color: #7f8993;
    font-size: 9px;
}

.location-item p {
    margin: 8px 0 0;

    color: #9ba3ac;
    font-size: 9px;
    line-height: 1.5;
}

.revision-list {
    border-top: 1px solid var(--line);
}

.revision-event {
    display: grid;
    grid-template-columns: 100px 300px 1fr;
    gap: 20px;
    align-items: start;

    padding: 18px 3px;

    border-bottom: 1px solid var(--line);
}

.revision-date {
    color: #7e8791;
    font-size: 9px;
}

.revision-flow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.revision-flow span {
    padding: 5px 8px;

    border: 1px solid var(--line);
    border-radius: 7px;

    color: #858f99;
    font-size: 8px;
}

.revision-flow span.current-rup {
    border-color: rgba(255,153,0,.25);

    background: rgba(153,25,0,.13);
    color: #e5ae45;
}

.revision-flow b {
    color: #555e67;
    font-size: 10px;
}

.revision-info strong {
    color: #e0e3e6;
    font-size: 10px;
}

.revision-info p {
    margin: 5px 0 0;

    color: #89929c;

    font-size: 9px;
    line-height: 1.55;
}

.lifecycle-card {
    position: relative;
    overflow: hidden;
}

.lifecycle-rail {
    display: grid;
    grid-template-columns:
        1fr 60px 1fr 60px 1fr 60px 1fr;
    align-items: center;

    margin: 30px 0;
}

.rail-node {
    min-height: 112px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--line);
    border-radius: 15px;

    background: #191d21;

    text-align: center;
}

.rail-node > span {
    color: #68717b;

    font-size: 8px;
    font-weight: 900;
}

.rail-node strong {
    margin: 6px 0 3px;

    color: #9ca4ad;
    font-size: 13px;
}

.rail-node small {
    color: #68717b;
    font-size: 8px;
}

.rail-node.active {
    border-color: rgba(255,153,0,.27);

    background:
        linear-gradient(
            145deg,
            rgba(153,25,0,.30),
            rgba(255,153,0,.035)
        ),
        #191d21;
}

.rail-node.active strong {
    color: #fff;
}

.rail-node.matched {
    border-color: rgba(71,213,132,.20);

    background:
        linear-gradient(
            145deg,
            rgba(71,213,132,.06),
            transparent
        ),
        #191d21;
}

.rail-node.matched strong {
    color: #c8ead7;
}

.rail-line {
    height: 1px;
    background: #30353a;
}

.trace-group {
    margin-top: 26px;
}

.trace-title {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 10px;
}

.trace-title > span {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,153,0,.18);
    border-radius: 9px;

    color: #e0a635;

    font-size: 8px;
    font-weight: 900;
}

.trace-title small {
    color: #8d969f;

    font-size: 7px;
    font-weight: 900;
}

.trace-title h3 {
    margin: 2px 0 0;

    color: #e6e8ea;
    font-size: 13px;
}

.trace-item {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 20px;

    padding: 17px 3px;

    border-top: 1px solid var(--line);
}

.trace-code {
    color: #d19a32;

    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.trace-item h4 {
    margin: 4px 0 0;

    color: #e3e6e8;

    font-size: 12px;
    line-height: 1.4;
}

.trace-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 8px;
}

.trace-tags span {
    padding: 4px 7px;

    border: 1px solid var(--line);
    border-radius: 999px;

    color: #7f8993;
    font-size: 7px;
}

.trace-value {
    text-align: right;
}

.trace-value span,
.trace-value strong,
.trace-value small {
    display: block;
}

.trace-value span {
    color: #737d87;
    font-size: 8px;
}

.trace-value strong {
    margin: 3px 0;

    color: #f0f2f3;
    font-size: 16px;
}

.trace-value small {
    color: #858e98;
    font-size: 8px;
}

.empty-intelligence {
    padding: 28px;

    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 13px;

    color: #7f8892;

    text-align: center;
    font-size: 9px;
}

.prominent-empty strong,
.prominent-empty span {
    display: block;
}

.prominent-empty strong {
    color: #adb4bb;
    font-size: 11px;
}

.prominent-empty span {
    max-width: 620px;
    margin: 6px auto 0;

    line-height: 1.6;
}

.detail-footer-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    margin: 15px 0 0;
}

.detail-footer-meta > div {
    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: rgba(255,255,255,.012);
}

.detail-footer-meta span,
.detail-footer-meta strong {
    display: block;
}

.detail-footer-meta span {
    color: #676f78;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: .1em;
}

.detail-footer-meta strong {
    margin-top: 4px;

    color: #a8afb6;
    font-size: 9px;
}

.detail-error {
    max-width: 700px;

    margin: 100px auto;
    padding: 50px;

    border: 1px solid var(--line);
    border-radius: 22px;

    background: var(--surface);

    text-align: center;
}

.detail-error > span {
    color: #d89c31;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.detail-error h1 {
    margin: 12px 0 7px;
}

.detail-error p {
    color: #8d969f;
    font-size: 11px;
}

.detail-error a {
    display: inline-block;

    margin-top: 20px;

    color: #e0a63a;

    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .hero-value {
        max-width: 380px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lifecycle-rail {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rail-line {
        width: 1px;
        height: 18px;

        margin: auto;
    }
}

@media (max-width: 700px) {
    .detail-main {
        padding-top: 15px;
    }

    .detail-hero {
        padding: 29px 22px;
    }

    .hero-value {
        padding: 21px;
    }

    .intelligence-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-card {
        padding: 20px;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .budget-row {
        grid-template-columns: 30px 1fr;
    }

    .budget-value {
        grid-column: 2;
        text-align: left;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .revision-event {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .revision-flow {
        flex-wrap: wrap;
    }

    .trace-item {
        grid-template-columns: 1fr;
    }

    .trace-value {
        text-align: left;
    }

    .detail-footer-meta {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   RUP TENDER INTELLIGENCE MARRIAGE
   ========================================================== */

.trace-tender-title-link {
    color: inherit;
    text-decoration: none;
    transition:
        color .18s ease,
        opacity .18s ease;
}

.trace-tender-title-link:hover,
.trace-tender-title-link:focus-visible {
    color: #f3a13a;
}

.trace-tender-intelligence-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 13px;
    color: #f3a13a;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    transition:
        transform .18s ease,
        color .18s ease;
}

.trace-tender-intelligence-link:hover,
.trace-tender-intelligence-link:focus-visible {
    color: #ffb34f;
    transform: translateX(3px);
}

@media (max-width: 760px) {
    .trace-tender-intelligence-link {
        justify-content: flex-start;
    }
}


/* ==========================================================
   RUP NON-TENDER INTELLIGENCE MARRIAGE
   ========================================================== */

.trace-nontender-title-link {
    color: inherit;
    text-decoration: none;
    transition:
        color .18s ease,
        opacity .18s ease;
}

.trace-nontender-title-link:hover,
.trace-nontender-title-link:focus-visible {
    color: #f3a13a;
}

.trace-nontender-intelligence-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 13px;

    color: #f3a13a;
    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;

    transition:
        transform .18s ease,
        color .18s ease;
}

.trace-nontender-intelligence-link:hover,
.trace-nontender-intelligence-link:focus-visible {
    color: #ffb34f;
    transform: translateX(3px);
}

@media (max-width: 760px) {
    .trace-nontender-intelligence-link {
        justify-content: flex-start;
    }
}


/* ==========================================================
   RUP e-KATALOG INTELLIGENCE MARRIAGE v0.1
   ========================================================== */

.trace-catalog-code-link,
.trace-catalog-code-link:link,
.trace-catalog-code-link:visited {
    color: inherit;
    text-decoration: none;
    transition:
        color .18s ease,
        opacity .18s ease;
}

.trace-catalog-code-link:hover {
    color: #ff9a15;
}

.trace-catalog-intelligence-link,
.trace-catalog-intelligence-link:link,
.trace-catalog-intelligence-link:visited {
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    color: #ff9a15;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 800;
    transition:
        color .18s ease,
        transform .18s ease;
}

.trace-catalog-intelligence-link:hover {
    color: #ffb347;
    transform: translateX(2px);
}
