/* =====================================================================
   TEACHERS-SPOT — Help Center
   ===================================================================== */

.hc { --hc-color: #2f7d75; --hc-soft: rgba(47, 125, 117, .12); }
.hc-tone-teal  { --hc-color: #2f7d75; --hc-soft: rgba(47, 125, 117, .12); }
.hc-tone-clay  { --hc-color: #b06a3b; --hc-soft: rgba(176, 106, 59, .13); }
.hc-tone-plum  { --hc-color: #7d5490; --hc-soft: rgba(125, 84, 144, .13); }
.hc-tone-blue  { --hc-color: #2d6aa3; --hc-soft: rgba(45, 106, 163, .12); }
.hc-tone-olive { --hc-color: #5f7225; --hc-soft: rgba(95, 114, 37, .13); }
[data-bs-theme="dark"] .hc-tone-teal { --hc-color: #4fb3a8; }
[data-bs-theme="dark"] .hc-tone-clay { --hc-color: #d58b58; }
[data-bs-theme="dark"] .hc-tone-plum { --hc-color: #b48ac7; }
[data-bs-theme="dark"] .hc-tone-blue { --hc-color: #6ea8de; }
[data-bs-theme="dark"] .hc-tone-olive { --hc-color: #a6bd5c; }

.hc-wrap { max-width: 68rem; margin: 0 auto; }
.hc-hero { text-align: center; padding: 2.2rem 0 1.4rem; }
.hc-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.hc-crumbs { font-size: .85rem; margin-bottom: .8rem; }
.hc-crumbs a { text-decoration: none; }

.hc-search { max-width: 36rem; margin: 1.2rem auto 0; position: relative; }
.hc-search .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); }
.hc-search input { padding: .8rem 1rem .8rem 2.7rem; border-radius: 2rem; font-size: 1.05rem; }
.hc-results { max-width: 36rem; margin: .6rem auto 0; text-align: left; }
.hc-result {
    display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .9rem; border-radius: .7rem;
    text-decoration: none; color: inherit; background: var(--ts-surface, var(--bs-body-bg)); border: 1px solid var(--ts-border, var(--bs-border-color));
    margin-bottom: .4rem;
}
.hc-result:hover { border-color: var(--hc-color); color: inherit; }
.hc-result .bi { color: var(--hc-color); font-size: 1.2rem; }

/* Cards */
.hc-card {
    display: flex; flex-direction: column; height: 100%; padding: 1.4rem 1.3rem; border-radius: 1rem;
    text-decoration: none; color: inherit; position: relative;
    background: var(--ts-surface, var(--bs-body-bg)); border: 2px solid var(--ts-border, var(--bs-border-color));
    box-shadow: 0 1px 2px rgba(35, 42, 46, .06); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hc-card, .hc-card:hover, .hc-card:hover * { text-decoration: none; }
.hc-card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(35, 42, 46, .12); border-color: var(--hc-color); }
.hc-card:focus-visible { outline: 3px solid var(--hc-color); outline-offset: 3px; }
.hc-card.is-mine { border-color: var(--hc-color); }
.hc-icon {
    width: 3.2rem; height: 3.2rem; border-radius: .9rem; display: grid; place-items: center; flex: 0 0 auto;
    font-size: 1.5rem; color: var(--hc-color); background: var(--hc-soft);
}
.hc-icon.sm { width: 2.5rem; height: 2.5rem; font-size: 1.15rem; border-radius: .7rem; }
.hc-mine { position: absolute; top: .9rem; right: .9rem; font-size: .72rem; font-weight: 700; color: #fff; background: var(--hc-color); padding: .15rem .55rem; border-radius: 1rem; }
[data-bs-theme="dark"] .hc-mine { color: #111; }
.hc-more { margin-top: auto; padding-top: .8rem; font-weight: 600; color: var(--hc-color); font-size: .92rem; }
.hc-guide-card { flex-direction: row; gap: .9rem; padding: 1rem 1.1rem; }
.hc-guide-card h3 { font-size: 1rem; margin: 0 0 .2rem; }
.hc-video-dot { font-size: .75rem; color: var(--hc-color); font-weight: 600; }

.hc-group-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--bs-secondary-color); margin: 1.8rem 0 .7rem; }

/* Use-case diagram */
.hc-diagram {
    padding: 1rem; border-radius: 1rem; background: var(--ts-surface, var(--bs-body-bg));
    border: 1px solid var(--ts-border, var(--bs-border-color));
}
.hc-diagram svg { display: block; width: 100%; height: auto; }
.hc-uml-box { fill: none; stroke: var(--bs-border-color); stroke-width: 1.5; stroke-dasharray: 6 5; }
.hc-uml-system { fill: var(--bs-secondary-color); font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.hc-uml-line { stroke: var(--hc-color); stroke-width: 1.4; opacity: .55; fill: none; }
.hc-uml-actor { stroke: var(--hc-color); stroke-width: 3; fill: none; stroke-linecap: round; }
.hc-uml-actor-head { fill: var(--hc-soft); stroke: var(--hc-color); stroke-width: 3; }
.hc-uml-actor-name { fill: var(--bs-body-color); font-weight: 700; font-size: 15px; }
.hc-uml-case ellipse { fill: var(--hc-soft); stroke: var(--hc-color); stroke-width: 1.6; transition: fill .15s ease; }
.hc-uml-case text { fill: var(--bs-body-color); font-size: 14px; font-weight: 600; }
.hc-uml-case:hover ellipse, .hc-uml-case:focus ellipse { fill: var(--hc-color); }
.hc-uml-case:hover text, .hc-uml-case:focus text { fill: #fff; }
[data-bs-theme="dark"] .hc-uml-case:hover text { fill: #111; }
.hc-uml-case:focus { outline: none; }
.hc-uml-case:focus-visible ellipse { stroke-width: 3.5; }

/* Step diagram */
.hc-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.hc-flow li { display: flex; align-items: center; gap: .45rem; }
.hc-flow-step {
    display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 2rem;
    background: var(--hc-soft); border: 1.5px solid var(--hc-color); font-weight: 600; font-size: .9rem;
}
.hc-flow-num { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--hc-color); color: #fff; font-size: .75rem; }
[data-bs-theme="dark"] .hc-flow-num { color: #111; }
.hc-flow-arrow { color: var(--hc-color); }

/* Guide page */
.hc-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.hc-steps li { counter-increment: s; position: relative; padding: 0 0 1rem 2.6rem; line-height: 1.6; }
.hc-steps li::before {
    content: counter(s); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--hc-soft); color: var(--hc-color);
}
.hc-steps li::after { content: ''; position: absolute; left: .87rem; top: 2rem; bottom: .2rem; border-left: 2px dotted var(--hc-soft); }
.hc-steps li:last-child::after { display: none; }

.hc-video { position: relative; aspect-ratio: 16 / 9; border-radius: .9rem; overflow: hidden; background: #111; }
.hc-video img, .hc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hc-video button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; }
.hc-video .hc-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.4rem; height: 3.1rem; border-radius: .9rem;
    background: #e62117; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.hc-video-soon {
    aspect-ratio: 16 / 9; border-radius: .9rem; display: grid; place-items: center; text-align: center; padding: 1rem;
    background: var(--hc-soft); border: 2px dashed var(--hc-color); color: var(--hc-color);
}
.hc-tips li { margin-bottom: .35rem; }
.hc-side { position: sticky; top: 5rem; }

.hc-help-link {
    display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; text-decoration: none;
    padding: .25rem .65rem; border-radius: 1rem; border: 1px solid var(--bs-border-color); color: var(--bs-body-color);
}
.hc-help-link:hover { border-color: #2f7d75; color: #2f7d75; }

@media (prefers-reduced-motion: reduce) { .hc-card { transition: none; } .hc-card:hover { transform: none; } }
@media (max-width: 991.98px) { .hc-side { position: static; } }
