/* Page-specific styles for crypto-token-development-cost.
   Loaded last so it can override blog-details.css, real-world-asset-tokenization-guide.css
   and polymarket-tables.css. Everything else on the page reuses those files as-is. */

/* blog-details.css draws this pill as dark text on a green fill; the guide CSS already
   resets its background and border, so only the text colour and spacing are fixed here. */
.bx-updated-pill {
    color: #fff;
    font-weight: 400;
    margin-left: 12px;
}

.blog-single-wrap .bx-meta-strip {
    margin-bottom: 34px;
}

/* Key takeaways panel (same treatment as /real-estate-tokenization-in-usa/). Its title
   is a paragraph so it stays out of the heading outline and the table of contents. */
.blog-single-wrap .bx-takeaways {
    margin-bottom: 34px;
    padding: 22px 26px 8px;
    background: linear-gradient(135deg, rgba(35, 30, 60, 0.55) 0%, rgba(20, 20, 30, 0.85) 100%);
    border: 1px solid rgba(161, 131, 224, 0.25);
    border-radius: 14px;
}

.blog-single-wrap .bx-takeaways-title {
    margin-bottom: 26px;
    padding-bottom: 0;
    font-family: "Exo 2", sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #F5D255;
}

/* Quick answer: the short, direct budget answer, set apart with a teal edge. */
.blog-single-wrap .ctc-answer {
    margin-bottom: 40px;
    padding: 24px 26px;
    border-left: 3px solid #36E7C4;
    border-radius: 0 14px 14px 0;
    background: rgba(54, 231, 196, 0.06);
}

.blog-single-wrap .ctc-answer h2 {
    padding-top: 0;
}

.blog-single-wrap .ctc-answer p {
    padding-bottom: 0;
}

/* The 10 cost drivers, in the light card style of the supplied token-cost-drivers.html:
   white cards, grey border, purple numbers. Clicking a card jumps to its driver below and
   marks the card active (.on, set by the small script next to the grid). */
.blog-single-wrap .ctc-drivers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 6px 0 30px;
}

.blog-single-wrap .ctc-driver {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e6e4f0;
    border-radius: 14px;
    color: #16132b;
    transition: border-color .2s, background .2s, transform .2s;
}

/* blog-details.css paints every article link as gradient text (transparent fill), which would
   blank these cards; give the card and both labels a solid fill again. */
.blog-single-wrap .ctc-driver,
.blog-single-wrap .ctc-driver-n,
.blog-single-wrap .ctc-driver-t {
    -webkit-text-fill-color: currentColor;
}

.blog-single-wrap .ctc-driver:hover {
    border-color: #c9c2f5;
    transform: translateY(-2px);
    color: #16132b;
}

.blog-single-wrap .ctc-driver:focus-visible {
    outline: 2px solid #5b3df5;
    outline-offset: 2px;
}

.blog-single-wrap .ctc-driver.on {
    border-color: #5b3df5;
    background: #ece8ff;
}

.blog-single-wrap .ctc-driver-n {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f6f5fb;
    color: #5b3df5;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s, color .2s;
}

.blog-single-wrap .ctc-driver.on .ctc-driver-n {
    background: #5b3df5;
    color: #fff;
}

.blog-single-wrap .ctc-driver-t {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

/* Clear the fixed site header when a driver card jumps to its heading (the TOC's item-*
   headings already get scroll-margin from real-world-asset-tokenization-guide.css). */
.blog-single-wrap [id^="driver-"] {
    scroll-margin-top: 110px;
}

/* Timeline stage: heading and its duration pill on one line (they wrap on narrow screens). */
.blog-single-wrap .ctc-stage-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-bottom: 12px;
}

.blog-single-wrap .ctc-stage-head h3 {
    padding-bottom: 0;
    margin-bottom: 0;
}

.blog-single-wrap .ctc-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid rgba(54, 231, 196, 0.35);
    border-radius: 999px;
    font-size: 14px;
    color: #36E7C4;
}

/* Clock icon (inline SVG: the site's Bootstrap Icons subset has no bi-clock). */
.blog-single-wrap .ctc-duration svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

/* Tables: span the article column (the shared --auto modifier shrinks them to an 800px
   inline box), start headers and cells on the same left edge, and keep amounts on one line. */
.blog-single-wrap .bx-table-wrap {
    margin: 8px 0 28px;
}

.blog-single-wrap .bx-table-wrap--auto {
    display: block;
    min-width: 0;
}

.blog-single-wrap .bx-table th,
.blog-single-wrap .bx-table td {
    text-align: left;
    vertical-align: middle;
}

.blog-single-wrap .bx-table td:last-child {
    white-space: nowrap;
    font-weight: 700;
}

/* Grid look for both tables: square corners, solid purple header, grey rule around every
   cell, white/light-grey rows. polymarket-tables.css sets these with !important, so the
   overrides need it too; they stay scoped to this article. */
.blog-single-wrap .bx-table-wrap {
    border: 1px solid #d6d6de !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.blog-single-wrap .bx-table thead tr {
    background: #3d1a78 !important;
}

.blog-single-wrap .bx-table thead th {
    color: #fff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.blog-single-wrap .bx-table thead th:last-child {
    border-right: 0;
}

.blog-single-wrap .bx-table tbody td {
    border: 1px solid #d6d6de !important;
}

.blog-single-wrap .bx-table tbody tr:nth-child(odd) {
    background: #fff !important;
}

.blog-single-wrap .bx-table tbody tr:nth-child(even) {
    background: #efeff2 !important;
}

/* real-world-asset-tokenization-guide.css caps .cta-mid at 720px; let it fill the column. */
.blog-single-wrap .cta-mid {
    max-width: none;
    margin: 16px 0 40px;
}

@media (max-width: 575px) {
    .blog-single-wrap .bx-takeaways {
        padding: 18px 16px 6px;
    }

    .blog-single-wrap .bx-takeaways-title {
        margin-bottom: 20px;
    }

    .blog-single-wrap .ctc-answer {
        padding: 18px 16px;
    }

    .blog-single-wrap .ctc-drivers {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-single-wrap .ctc-driver,
    .blog-single-wrap .ctc-driver-n {
        transition: none;
    }
}
