/* Styling for the project "learn more" pages (Swift WebServices & Colorize). */

/* --- Hero --------------------------------------------------------------- */
.lm-hero-webservices {
    background: linear-gradient(135deg, #F0AE56 0%, #EB4D37 100%);
}

.lm-hero-colorize {
    background: linear-gradient(135deg, #20242e 0%, #38324a 55%, #5a3a52 100%);
}

.lm-hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.lm-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* --- Figures ------------------------------------------------------------ */
.lm-figure-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.lm-gallery-img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Benchmark bars ----------------------------------------------------- */
.lm-bar-track {
    width: 100%;
    height: 14px;
    background: rgba(127, 127, 127, 0.16);
    border-radius: 8px;
    overflow: hidden;
}

.lm-bar-fill {
    height: 100%;
    min-width: 4px;
    border-radius: 8px;
    background: rgba(127, 127, 127, 0.45);
}

.lm-bar-fill.lm-win {
    background: linear-gradient(90deg, #F0AE56 0%, #EB4D37 100%);
}

.lm-w-2   { width: 2%; }
.lm-w-4   { width: 4%; }
.lm-w-17  { width: 17%; }
.lm-w-54  { width: 54%; }
.lm-w-56  { width: 56%; }
.lm-w-69  { width: 69%; }
.lm-w-77  { width: 77%; }
.lm-w-100 { width: 100%; }

/* --- Feature / spec table ----------------------------------------------- */
.lm-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lm-table th,
.lm-table td {
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 0.5px solid rgba(127, 127, 127, 0.22);
}

.lm-table th {
    font-weight: 600;
    opacity: 0.7;
}

.lm-table td.lm-cell-key {
    font-weight: 600;
    white-space: nowrap;
    padding-right: 18px;
}

.lm-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Code block --------------------------------------------------------- */
.lm-code {
    display: block;
    white-space: pre;
    overflow-x: auto;
    background: #0d1117;
    color: #e6edf3;
    border: 0.5px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 18px 20px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

.lm-code .lm-k { color: #ff7b72; }   /* keyword */
.lm-code .lm-t { color: #79c0ff; }   /* type */
.lm-code .lm-s { color: #a5d6ff; }   /* string */
.lm-code .lm-a { color: #d2a8ff; }   /* attribute / macro */
.lm-code .lm-c { color: #8b949e; }   /* comment */
.lm-code .lm-n { color: #ffa657; }   /* number / literal */

/* --- Storytelling devices ---------------------------------------------- */

/* Big gradient numbers in the "why it's different" proof band. */
.lm-stat-num {
    display: block;
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #F0AE56 0%, #EB4D37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* A small monospace badge that labels which module a chapter belongs to. */
.lm-pill {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 3px 11px;
    border-radius: 999px;
    color: #EB4D37;
    background: rgba(235, 77, 55, 0.10);
    border: 0.5px solid rgba(235, 77, 55, 0.30);
    white-space: nowrap;
}

/* A large, outlined "ghost" numeral that opens each chapter. */
.lm-chapter-num {
    display: block;
    font-size: clamp(46px, 9vw, 84px);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(235, 77, 55, 0.45);
}

@supports not ((-webkit-text-stroke: 1px transparent)) {
    .lm-chapter-num {
        color: rgba(235, 77, 55, 0.32);
    }
}

/* The "one request, five jobs" journey strip / table of contents. */
.lm-journey {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.lm-step {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 0.5px solid rgba(127, 127, 127, 0.22);
    border-radius: 14px;
    background: rgba(127, 127, 127, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lm-step:hover {
    transform: translateY(-2px);
    border-color: rgba(235, 77, 55, 0.45);
    box-shadow: 0 8px 24px rgba(235, 77, 55, 0.12);
}

.lm-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, #F0AE56 0%, #EB4D37 100%);
}

.lm-step-job {
    font-weight: 700;
    font-size: 15px;
}

.lm-step-mod {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11.5px;
    opacity: 0.6;
}

/* The closing gradient call-to-action button. */
.lm-cta {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(120deg, #F0AE56 0%, #EB4D37 100%);
    box-shadow: 0 6px 20px rgba(235, 77, 55, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lm-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(235, 77, 55, 0.32);
}

/* --- Colorize magenta theme -------------------------------------------- */
/* The learn-more chrome is shared with Swift-WebServices (which owns the
   orange accents). Colorize gets its own magenta identity through these
   `cz-*` classes so nothing here changes the Swift-WebServices page. */

/* Plain "technologies used" logo row — no surrounding tile, just the marks. */
.cz-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px 44px;
    width: 100%;
}

.cz-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}
