/* Tools hub. Shared look comes from /callings/lds.css; this is the hub's own layout. */

.lds-index-hero {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--lds-border);
}
.lds-index-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lds-accent);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}
.lds-index-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lds-text);
    line-height: 1.15;
    margin-bottom: 0.65rem;
}
.lds-index-tagline {
    font-size: 0.95rem;
    color: var(--lds-text-dim);
    line-height: 1.65;
    max-width: 56ch;
}

.lds-section-header {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lds-blue-light);
    opacity: 0.7;
    margin: 2.25rem 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--lds-border);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--lds-surface);
    border: 1px solid var(--lds-border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem 1rem;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

/* ── Maturity tier: default sort within each section, plus a small
   corner badge. Bump a tool's tier by changing its data-tier attribute
   only -- no need to move it in the HTML, `order` handles the sort.
   Tools that need love live in the Workshop list instead of a card. */
.tool-card[data-tier="polished"]  { order: 1; }
.tool-card[data-tier="solid"]     { order: 2; }
.tool-card::after {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    opacity: 0.85;
}
.tool-card[data-tier="polished"]::after {
    content: "polished";
    color: #7ed9a0;
    background: rgba(126,217,160,0.12);
    border: 1px solid rgba(126,217,160,0.3);
}
.tool-card[data-tier="solid"]::after {
    content: "solid";
    color: var(--lds-text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--lds-border-mid);
}
.tool-card:hover {
    border-color: var(--lds-accent-dim);
    background: rgba(200,162,74,0.05);
}
.tool-card-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lds-accent);
    opacity: 0.7;
    margin-bottom: 0.35rem;
}
.tool-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lds-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.tool-card-desc {
    font-size: 0.8rem;
    color: var(--lds-text-dim);
    line-height: 1.55;
    flex: 1;
}
.tool-card-arrow {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--lds-accent);
    opacity: 0.6;
}
.tool-card.featured {
    border-color: rgba(200,162,74,0.3);
    background: rgba(200,162,74,0.04);
}
.tool-card.featured:hover {
    border-color: var(--lds-accent);
}
.tool-card.featured .tool-card-title {
    font-size: 1.1rem;
}

/* two-column featured row */
.tool-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ── Workshop: plain list, smaller and quieter than the cards */
.workshop {
    margin-top: 3rem;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--lds-border-mid);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--lds-text-dim);
}
.workshop .lds-section-header {
    margin: 0 0 0.6rem;
    border-bottom: none;
    padding-bottom: 0;
    color: #e0a86a;
}
.workshop-note {
    margin-bottom: 0.75rem;
    line-height: 1.55;
}
.workshop ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.workshop li {
    padding: 0.3rem 0;
    line-height: 1.45;
}
.workshop a {
    color: var(--lds-text);
    text-decoration: none;
    font-weight: 600;
}
.workshop a:hover { color: var(--lds-accent); }

.lds-footer-legal {
    margin-top: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 540px) {
    .tool-grid, .tool-grid-2 { grid-template-columns: 1fr; }
}
