/* =======================================================================
   construction-tools.css — /construction-tools, the Construction Tools hub.

   Sibling of construction-templates.css. Same theme, same accent, so the two
   Resources hubs read as one family. Loads AFTER integrations.css,
   buildertrend-cluster.css and construction-templates.css and only adds the
   .tl-* components the tools hub needs on top of them.

   The cards are the same poster shape as .ct-card on the templates hub. What
   differs is what fills the poster: a template card carries a photograph of
   the file, and a tool card carries a drawing of the tool's own output,
   because a photo of a building says nothing about a calculator. Four across
   rather than three, so the whole set is visible without scrolling.
   ======================================================================= */

.tl-page {
    --tl-accent:   #009282;
    --tl-accent-d: #00746a;
    --tl-ink:      #013b35;
    --tl-body:     #4b6b71;
    --tl-line:     rgba(0, 146, 130, .18);
}

/* ---------- the grid ---------- */

.tl-page .qbi-section.tl-grid-section { padding-top: 40px; padding-bottom: 52px; }
.tl-page .tl-grid-section .qbi-section-lead { margin-bottom: 0; }

.tl-why-link {
    display: inline-block; margin-top: 14px; font-family: 'Manrope', system-ui, sans-serif;
    font-size: .92rem; font-weight: 700; color: var(--tl-accent-d);
    border-bottom: 1px solid var(--tl-line); padding-bottom: 2px; text-decoration: none;
}
.tl-why-link::after { content: " \2193"; }
.tl-why-link:hover { color: var(--tl-accent); border-color: var(--tl-accent); }

.tl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }

/* ---------- one tool card ---------- */

/* Same poster shape as .ct-card on the templates hub, so the two Resources
   hubs look like one set. The difference is what fills the poster: a template
   card carries a photograph of the file, and a tool card carries a drawing of
   the tool's own output, because a photo of a building says nothing about a
   calculator. See tools/partials/_illustration.blade.php. */
.tl-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--tl-line); border-radius: 18px;
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: 0 2px 10px rgba(1, 59, 53, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tl-card:hover {
    transform: translateY(-4px); border-color: rgba(0, 146, 130, .45);
    box-shadow: 0 16px 34px rgba(1, 59, 53, .12);
}

.tl-card-thumb { position: relative; aspect-ratio: 16 / 10; background: #04322D; overflow: hidden; }
.tl-art { width: 100%; height: 100%; display: block; }

/* Scrim under the title, matching .ct-card-thumb--poster. The artwork is drawn
   to keep its content above y=160 of a 250 unit canvas so nothing important
   sits under this. */
.tl-card-thumb::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 20, 28, .94) 0%, rgba(0, 20, 28, .78) 14%, rgba(0, 20, 28, .30) 30%, rgba(0, 20, 28, 0) 48%);
}
.tl-card-thumb-title {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0 15px 13px;
    font-family: 'Lexend', system-ui, sans-serif; font-size: 1.06rem; font-weight: 900;
    line-height: 1.2; color: #fff; text-wrap: balance; letter-spacing: -.01em;
    text-shadow: 0 2px 16px rgba(0, 20, 28, .85);
}

.tl-card-body { padding: 17px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.tl-cat {
    display: inline-block; margin-bottom: 10px;
    font-family: 'Manrope', system-ui, sans-serif; font-size: .72rem; font-weight: 800;
    letter-spacing: .11em; text-transform: uppercase; color: var(--tl-accent);
}
.tl-card-body p {
    font-family: 'Manrope', system-ui, sans-serif; font-size: .875rem; line-height: 1.56;
    color: var(--tl-body); margin: 0 0 13px;
}

/* One short line, the way a template card surfaces its paired checklist.
   The full input and output spec lives on the tool's own page: a card only
   has to say enough to choose with. */
.tl-extra {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
    padding: 4px 10px; border-radius: 999px;
    background: #e6f5f3; color: var(--tl-accent-d);
    font-family: 'Manrope', system-ui, sans-serif; font-size: .74rem; font-weight: 800;
    align-self: flex-start;
}
.tl-extra::before { content: '✓'; font-weight: 900; }

.tl-card-go {
    margin-top: auto; font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800; font-size: .9rem; color: var(--tl-accent-d);
}
.tl-card:hover .tl-card-go { color: var(--tl-accent); }

/* ---------- "which tool answers which question" ---------- */

.tl-picker { margin-top: 26px; border: 1px solid var(--tl-line); border-radius: 16px; overflow: hidden; background: #fff; }
.tl-picker-row {
    display: grid; grid-template-columns: 1fr 250px; gap: 18px; align-items: center;
    padding: 17px 22px; border-bottom: 1px solid rgba(0, 146, 130, .1);
}
.tl-picker-row:last-child { border-bottom: 0; }
.tl-picker-row:nth-child(odd) { background: #f7fbfa; }
.tl-picker-q {
    font-family: 'Manrope', system-ui, sans-serif; font-size: .96rem; line-height: 1.55;
    color: var(--tl-ink); font-weight: 600; margin: 0;
}
.tl-picker-a {
    font-family: 'Manrope', system-ui, sans-serif; font-size: .9rem; font-weight: 800;
    color: var(--tl-accent-d); text-decoration: none; justify-self: start;
}
.tl-picker-a:hover { color: var(--tl-accent); text-decoration: underline; }

/* ---------- the monthly routine ---------- */

.tl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.tl-step { background: #fff; border: 1px solid var(--tl-line); border-radius: 14px; padding: 22px 22px 24px; }
.tl-step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, var(--tl-accent), var(--tl-accent-d)); color: #fff;
    font-family: 'Lexend', system-ui, sans-serif; font-size: .9rem; font-weight: 800;
    margin-bottom: 13px;
}
.tl-step h3 {
    font-family: 'Lexend', system-ui, sans-serif; font-size: 1.04rem; font-weight: 800;
    color: var(--tl-ink); margin: 0 0 8px;
}
.tl-step p {
    font-family: 'Manrope', system-ui, sans-serif; font-size: .9rem; line-height: 1.6;
    color: var(--tl-body); margin: 0;
}

/* ---------- section rhythm, matching the templates hub ---------- */

.tl-page .qbi-section { padding: 46px 0; }
.tl-page .qbi-section:has(+ .qbi-section--alt),
.tl-page .qbi-section--alt:has(+ .qbi-section) { padding-bottom: 26px; }
.tl-page .tl-pillar { scroll-margin-top: 24px; }

.tl-page .qbi-section .bti-crumb { color: #7c9499; margin-bottom: 0; }
.tl-page .qbi-section .bti-crumb a { color: var(--tl-accent-d); opacity: 1; }
.tl-page .qbi-section .bti-crumb a:hover { color: var(--tl-accent); text-decoration: underline; }
.tl-page .qbi-section .bti-crumb .bti-crumb-sep { color: #b6c9cc; opacity: 1; }
.tl-page .qbi-section .bti-crumb .bti-crumb-cur { color: var(--tl-ink); }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
    .tl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .tl-grid { grid-template-columns: repeat(2, 1fr); }
    .tl-steps { grid-template-columns: 1fr; }
    .tl-picker-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
}
@media (max-width: 660px) {
    .tl-grid { grid-template-columns: 1fr; }
    .tl-card-body { padding: 18px 20px 22px; }
}
