/* Professions teaser (The Season of Crafting). Ember-forge accent against the
   cold site palette. Scoped under .prof-teaser so nothing here leaks out. */
.prof-teaser {
    --forge: #E5A472;
    --forge-bright: #F2BE93;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

/* ---- hero band ---- */
.prof-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(229, 164, 114, .22);
    border-radius: 16px;
    padding: 48px 52px;
    background:
        radial-gradient(120% 140% at 88% 20%, rgba(229, 164, 114, .14), transparent 60%),
        linear-gradient(180deg, var(--bg-secondary), var(--bg-body));
}
.prof-hero-crest {
    position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
    height: 150%; width: auto; z-index: 0; opacity: .10; pointer-events: none;
    filter: brightness(1.2) drop-shadow(0 0 40px rgba(190, 40, 45, .5));
}
.prof-hero-inner { position: relative; z-index: 1; max-width: 640px; }
.prof-tag {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--forge);
    padding: 6px 13px; margin-bottom: 22px;
    border: 1px solid rgba(229, 164, 114, .34); border-radius: 999px;
    background: rgba(229, 164, 114, .06);
}
.prof-tag .pip {
    width: 6px; height: 6px; border-radius: 50%; background: var(--forge);
    box-shadow: 0 0 9px var(--forge); animation: promo-pulse 2.4s ease-in-out infinite;
}
.prof-hero h1 {
    font-family: var(--font-sans); font-size: 46px; font-weight: 800;
    letter-spacing: -.03em; line-height: 1.02; color: var(--text-bright);
    margin: 0 0 18px;
}
.prof-lede {
    font-size: 17px; line-height: 1.6; color: var(--text); margin: 0;
    max-width: 60ch;
}

/* ---- fact stats ---- */
.prof-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; margin-top: 20px;
    background: var(--border); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
}
.prof-stat { background: var(--bg-secondary); padding: 22px 24px; }
.prof-stat .n {
    font-family: var(--font-mono); font-size: 40px; font-weight: 600;
    line-height: 1; color: var(--forge); margin-bottom: 10px;
}
.prof-stat .l { font-size: 13.5px; color: var(--text-bright); font-weight: 600; }
.prof-stat .s {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-fade); margin-top: 4px;
}

/* ---- sections ---- */
.prof-section { margin-top: 56px; }
.prof-section h2 {
    font-family: var(--font-sans); font-size: 24px; font-weight: 700;
    letter-spacing: -.02em; color: var(--text-bright); margin: 0 0 4px;
    display: flex; align-items: baseline; gap: 12px;
}
.prof-section h2 .count {
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-fade);
}
.prof-sub { font-size: 15px; color: var(--text); margin: 0 0 22px; max-width: 66ch; line-height: 1.55; }

/* ---- how it works ---- */
.prof-points {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px;
}
.prof-point {
    border: 1px solid var(--border); border-left: 2px solid var(--forge);
    border-radius: 10px; padding: 20px 22px; background: var(--bg-secondary);
}
.prof-point h3 {
    font-size: 15.5px; font-weight: 600; color: var(--text-bright); margin: 0 0 8px;
}
.prof-point p { font-size: 14px; line-height: 1.55; color: var(--text); margin: 0; }
.prof-point code, .prof-cmds {
    font-family: var(--font-mono);
}
.prof-point code {
    font-size: 12.5px; color: var(--forge-bright);
    background: rgba(229, 164, 114, .09); padding: 1px 6px; border-radius: 4px;
}

/* ---- trade grid ---- */
.prof-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px;
}
/* gathering has five cards; a smaller min lets them sit in one clean row on
   wide screens instead of leaving a lone card stranded on a second row */
.prof-grid--gather { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.trade {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 18px 20px; background: var(--bg-secondary);
    transition: border-color var(--t-base), transform var(--t-base);
}
.trade:hover { border-color: rgba(229, 164, 114, .4); transform: translateY(-2px); }
.trade-tool {
    display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--forge);
    border: 1px solid rgba(229, 164, 114, .3); border-radius: 5px;
    padding: 3px 8px; margin-bottom: 12px;
}
.trade h3 { font-size: 17px; font-weight: 700; color: var(--text-bright); margin: 0 0 7px; }
.trade p { font-size: 13.5px; line-height: 1.5; color: var(--text); margin: 0; }

/* ---- quality grades ---- */
.prof-grades { display: flex; flex-wrap: wrap; gap: 10px; }
.grade {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
    text-transform: uppercase; padding: 7px 15px; border-radius: 999px;
    border: 1px solid var(--border);
}
.grade.g1 { color: var(--text-fade); }
.grade.g2 { color: var(--text-dim); }
.grade.g3 { color: var(--text); }
.grade.g4 { color: var(--text-bright); border-color: var(--border-hover); }
.grade.g5 { color: var(--forge); border-color: rgba(229, 164, 114, .4); }
.grade.g6 {
    color: var(--forge-bright); border-color: rgba(229, 164, 114, .6);
    background: rgba(229, 164, 114, .08); box-shadow: 0 0 16px rgba(229, 164, 114, .12);
}

/* ---- commands ---- */
.prof-cmds {
    font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
    color: var(--text); margin: 0; padding: 22px 26px;
    width: fit-content; max-width: 100%;
    background: var(--bg-body); border: 1px solid var(--border);
    border-radius: 10px; overflow-x: auto; white-space: pre;
}

/* ---- closing ---- */
.prof-foot {
    margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border);
    text-align: center;
}
.prof-foot p {
    font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em;
    color: var(--text-dim); margin: 0 0 18px;
}
.prof-back {
    display: inline-block; font-size: 14px; font-weight: 600; color: var(--forge);
    text-decoration: none; padding: 10px 22px;
    border: 1px solid rgba(229, 164, 114, .4); border-radius: 8px;
    transition: all var(--t-base);
}
.prof-back:hover { background: rgba(229, 164, 114, .1); border-color: var(--forge); color: var(--forge-bright); }

/* ---- light theme: crest is too dark, drop it; soften tint ---- */
[data-scheme="kanso-pearl"] .prof-teaser { --forge: #9a5f28; --forge-bright: #7c4a1c; }
[data-scheme="kanso-pearl"] .prof-hero-crest { display: none; }
[data-scheme="kanso-pearl"] .prof-tag .pip { box-shadow: none; }
[data-scheme="kanso-pearl"] .grade.g6 { box-shadow: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
    .prof-stats { grid-template-columns: repeat(2, 1fr); }
    .prof-points { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .prof-hero { padding: 34px 26px; }
    .prof-hero h1 { font-size: 34px; }
    .prof-lede { font-size: 15.5px; }
    .prof-stats { grid-template-columns: 1fr 1fr; }
    .prof-stat .n { font-size: 32px; }
    .prof-grid { grid-template-columns: 1fr; }
}
