/* ====================================================
   Timer Help Center — Page Styles
   APP surface (TOS chrome), not the storefront. All --hc-* aliases
   resolve to the OS --tos-* token set from tos-app.css, so the Help
   Center rides the same operational canvas as every app page and
   inherits light/dark automatically from body.tos-app — no local
   dark block. Class names kept (Strangler Fig); only the look moves.
   ==================================================== */

/* ===== Design tokens — rebound onto the OS (tos-app.css) ===== */
:root {
    --hc-bg:            var(--tos-bg);
    --hc-surface:       var(--tos-surface-sunken);
    --hc-surface-2:     var(--tos-surface-hover);
    --hc-elevated:      var(--tos-surface);
    --hc-border:        var(--tos-border);
    --hc-border-strong: var(--tos-border-strong);
    --hc-text:          var(--tos-text);
    --hc-text-soft:     var(--tos-text-secondary);
    --hc-muted:         var(--tos-text-muted);
    --hc-faint:         var(--tos-text-dim);
    --hc-accent:        var(--tos-app-accent);
    --hc-accent-strong: var(--tos-accent-strong);
    --hc-accent-soft:   var(--tos-app-accent-bg);
    --hc-on-accent:     #ffffff;
    --hc-shadow:        var(--tos-shadow-card);
    --hc-shadow-hover:  var(--tos-shadow-raised);
    --hc-radius:        var(--tos-radius-lg);
    --hc-radius-sm:     var(--tos-radius-md);
    --hc-header-h:      52px;
    --hc-font:          var(--tos-font-body);
}

/* ===== Base ===== */
.timer-help-page {
    margin: 0;
    padding: 0;
    background: var(--hc-bg);
    min-height: 100vh;
    color: var(--hc-text-soft);
    font-family: var(--hc-font);
    -webkit-font-smoothing: antialiased;
}
.timer-help-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.timer-help-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hc-header-h);
    background: var(--hc-elevated);
    border-bottom: 1px solid var(--hc-border);
    z-index: 1000;
}
.timer-help-header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.timer-help-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
    color: var(--hc-text);
}
.timer-help-logo img { height: 30px; width: auto; }
.timer-help-nav { display: flex; align-items: center; gap: 22px; }
.timer-help-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--hc-muted);
    transition: color 0.15s ease;
}
.timer-help-nav a:hover, .timer-help-nav a.active { color: var(--hc-text); }
.timer-help-login-btn {
    padding: 8px 16px;
    border: 1px solid var(--hc-border-strong);
    border-radius: 8px;
    color: var(--hc-text) !important;
}
.timer-help-login-btn:hover {
    border-color: var(--hc-accent);
    color: var(--hc-accent) !important;
}

/* ===== Main ===== */
.timer-help-main { padding-top: var(--hc-header-h); }

/* ===== Hero ===== */
.timer-help-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 24px 44px;
    text-align: center;
    background: var(--hc-surface);
    border-bottom: 1px solid var(--hc-border);
}
/* Storefront grid backdrop retired for the app surface — kept as a
   no-op so the markup element (help.aspx) doesn't need touching. */
.timer-help-hero-bg { display: none; }
.timer-help-hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.timer-help-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--hc-accent);
    margin-bottom: 14px;
}
.timer-help-hero-content h1 {
    margin: 0 0 14px;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--hc-text);
}
.timer-help-hero-content > p {
    margin: 0 auto 28px;
    max-width: 600px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--hc-muted);
}
.timer-help-search-box {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.timer-help-search-box i {
    position: absolute;
    left: 18px;
    color: var(--hc-faint);
    font-size: 15px;
}
.timer-help-search-box input {
    width: 100%;
    padding: 15px 18px 15px 46px;
    font-family: inherit;
    font-size: 15px;
    color: var(--hc-text);
    background: var(--hc-elevated);
    border: 1px solid var(--hc-border-strong);
    border-radius: 12px;
    outline: none;
    box-shadow: var(--hc-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.timer-help-search-box input::placeholder { color: var(--hc-faint); }
.timer-help-search-box input:focus {
    border-color: var(--hc-accent);
    box-shadow: 0 0 0 4px var(--hc-accent-soft);
}

/* ===== Hub sections (home) ===== */
.timer-help-hub { padding: 56px 24px 24px; max-width: 1160px; margin: 0 auto; }
.timer-help-hub-section { margin-bottom: 52px; }
.timer-help-hub-head { margin-bottom: 20px; }
.timer-help-hub-head h2 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hc-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.timer-help-hub-head h2 i { color: var(--hc-accent); font-size: 17px; }
.timer-help-hub-head p { margin: 0; font-size: 14px; color: var(--hc-muted); }

/* Featured pillar (Pilot / Human Layer) — home only. Named -featured to avoid
   colliding with the article-internal .timer-help-feature card (help.aspx.vb). */
.timer-help-featured {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border-radius: var(--hc-radius);
    background: var(--hc-elevated);
    border: 1px solid var(--hc-border);
    border-left: 3px solid var(--hc-accent);
    margin-bottom: 52px;
}
.timer-help-featured-eyebrow {
    font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--hc-accent);
}
.timer-help-featured h2 {
    margin: 8px 0 8px;
    font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
    color: var(--hc-text);
}
.timer-help-featured > p {
    margin: 0 0 22px; max-width: 640px;
    font-size: 15px; line-height: 1.6; color: var(--hc-muted);
}

/* App card grid */
.timer-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
}
.timer-help-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--hc-elevated);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    text-decoration: none;
    box-shadow: var(--hc-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.timer-help-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hc-shadow-hover);
    border-color: var(--hc-border-strong);
}
.timer-help-card-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--hc-radius-sm);
    background: var(--hc-accent-soft);
    color: var(--hc-accent);
    font-size: 16px;
}
.timer-help-card-body { min-width: 0; }
.timer-help-card-body h3 {
    margin: 0 0 3px;
    font-size: 15px; font-weight: 600; color: var(--hc-text);
}
.timer-help-card-body p {
    margin: 0;
    font-size: 13px; line-height: 1.45; color: var(--hc-muted);
}

/* Compact link list (used inside feature pillar) */
.timer-help-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.timer-help-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    background: var(--hc-elevated);
    border: 1px solid var(--hc-border);
    border-radius: 999px;
    font-size: 13.5px; font-weight: 500;
    color: var(--hc-text-soft);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.timer-help-chip i { color: var(--hc-accent); font-size: 13px; }
.timer-help-chip:hover {
    border-color: var(--hc-accent);
    color: var(--hc-text);
    background: var(--hc-accent-soft);
}

/* Contact strip */
.timer-help-contact {
    margin: 8px auto 72px;
    max-width: 1160px;
    padding: 0 24px;
}
.timer-help-contact-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
    padding: 24px 28px;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
}
.timer-help-contact-inner h3 { margin: 0 0 4px; font-size: 17px; color: var(--hc-text); }
.timer-help-contact-inner p { margin: 0; font-size: 14px; color: var(--hc-muted); }
.timer-help-contact-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px;
    background: var(--hc-accent);
    color: var(--hc-on-accent) !important;
    border-radius: 10px;
    font-weight: 600; font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.timer-help-contact-btn:hover { background: var(--hc-accent-strong); }

/* ===== Topic page ===== */
.timer-help-breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--hc-border);
    background: var(--hc-surface);
}
.timer-help-breadcrumb .timer-help-container {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--hc-muted);
}
.timer-help-breadcrumb a { color: var(--hc-muted); text-decoration: none; }
.timer-help-breadcrumb a:hover { color: var(--hc-accent); }
.timer-help-breadcrumb i.fa-chevron-right { font-size: 10px; color: var(--hc-faint); }

/* The per-topic header carries an inline gradient (style="<%= TopicGradient %>")
   from help.aspx.vb, so it's always a coloured gradient — text must read white
   on it regardless of light/dark theme. A coloured accent gradient is the
   fallback if no inline gradient is present. */
.timer-help-topic-header {
    padding: 48px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--hc-accent), var(--hc-accent-strong));
    border-bottom: 1px solid var(--hc-border);
}
.timer-help-topic-icon {
    width: 60px; height: 60px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 24px;
}
.timer-help-topic-header h1 {
    margin: 0 0 8px; font-size: 32px; font-weight: 800;
    letter-spacing: -0.02em; color: #ffffff;
}
.timer-help-topic-header p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, 0.88); }

.timer-help-content-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding: 40px 0 80px;
    align-items: start;
}
.timer-help-sidebar { position: sticky; top: calc(var(--hc-header-h) + 24px); }
.timer-help-toc { display: flex; flex-direction: column; gap: 2px; }
.timer-help-toc a {
    padding: 7px 12px;
    border-left: 2px solid var(--hc-border);
    font-size: 13.5px; color: var(--hc-muted);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.timer-help-toc a:hover, .timer-help-toc a.active {
    color: var(--hc-accent); border-left-color: var(--hc-accent);
}
.timer-help-toc a.toc-h3 { padding-left: 24px; font-size: 13px; }

/* Article typography (content emitted by help.aspx.vb) */
.timer-help-article { color: var(--hc-text-soft); font-size: 15.5px; line-height: 1.7; max-width: 760px; }
.timer-help-article h2 {
    margin: 36px 0 14px; font-size: 23px; font-weight: 700;
    color: var(--hc-text); letter-spacing: -0.01em; scroll-margin-top: 88px;
}
.timer-help-article h3 {
    margin: 28px 0 10px; font-size: 18px; font-weight: 650;
    color: var(--hc-text); scroll-margin-top: 88px;
}
.timer-help-article p { margin: 0 0 16px; }
.timer-help-article ul, .timer-help-article ol { margin: 0 0 16px; padding-left: 22px; }
.timer-help-article li { margin-bottom: 7px; }
.timer-help-article a { color: var(--hc-accent); text-decoration: none; font-weight: 500; }
.timer-help-article a:hover { text-decoration: underline; }
.timer-help-article strong { color: var(--hc-text); font-weight: 650; }
.timer-help-article code {
    padding: 2px 6px; border-radius: 6px;
    background: var(--hc-surface-2); border: 1px solid var(--hc-border);
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.88em;
    color: var(--hc-text);
}
.timer-help-article pre {
    padding: 16px; border-radius: var(--hc-radius-sm);
    background: var(--hc-surface-2); border: 1px solid var(--hc-border);
    overflow-x: auto; margin: 0 0 18px;
}
.timer-help-article pre code { padding: 0; background: none; border: none; }
.timer-help-article img { max-width: 100%; border-radius: var(--hc-radius-sm); border: 1px solid var(--hc-border); }
.timer-help-article blockquote {
    margin: 0 0 18px; padding: 12px 18px;
    border-left: 3px solid var(--hc-accent);
    background: var(--hc-accent-soft);
    border-radius: 0 var(--hc-radius-sm) var(--hc-radius-sm) 0;
    color: var(--hc-text-soft);
}

/* ===== Article components (emitted by help.aspx.vb topic content) ===== */
.timer-help-section { margin-bottom: 40px; }
.timer-help-section:last-child { margin-bottom: 0; }
.timer-help-section-title {
    font-size: 23px; font-weight: 700; color: var(--hc-text);
    margin: 0 0 14px; letter-spacing: -0.01em;
}

/* Highlight / callout */
.timer-help-highlight {
    display: flex; gap: 14px; padding: 18px 20px; margin: 22px 0;
    background: var(--hc-accent-soft);
    border-left: 3px solid var(--hc-accent);
    border-radius: 0 var(--hc-radius-sm) var(--hc-radius-sm) 0;
}
.timer-help-highlight > i, .timer-help-highlight-icon {
    font-size: 19px; color: var(--hc-accent); flex-shrink: 0; margin-top: 2px;
}
.timer-help-highlight-content { min-width: 0; }
.timer-help-highlight strong { display: block; color: var(--hc-text); margin-bottom: 4px; }
.timer-help-highlight p { margin: 0; font-size: 14px; color: var(--hc-text-soft); }

/* Features grid + cards */
.timer-help-features-grid, .timer-help-feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px; margin: 20px 0;
}
.timer-help-feature {
    padding: 18px; text-align: center;
    background: var(--hc-surface); border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
}
.timer-help-feature > i, .timer-help-feature-icon {
    font-size: 22px; color: var(--hc-accent); margin-bottom: 10px; display: inline-block;
}
.timer-help-feature h4 { font-size: 15px; font-weight: 600; color: var(--hc-text); margin: 0 0 6px; }
.timer-help-feature p { font-size: 13px; color: var(--hc-muted); margin: 0; }

/* Steps */
.timer-help-steps { list-style: none; padding: 0; margin: 24px 0; }
.timer-help-steps li, .timer-help-step {
    display: flex; align-items: flex-start; gap: 18px;
    padding: 20px 0; border-bottom: 1px solid var(--hc-border); margin: 0;
}
.timer-help-steps li:last-child, .timer-help-step:last-child { border-bottom: none; }
.step-number {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: var(--hc-accent); color: var(--hc-on-accent);
    font-size: 15px; font-weight: 700;
}
.step-content h4 { font-size: 16px; font-weight: 600; color: var(--hc-text); margin: 0 0 6px; }
.step-content p { margin: 0; font-size: 14px; color: var(--hc-text-soft); }

/* Templates */
.timer-help-templates-grid { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.timer-help-template {
    display: flex; align-items: center; gap: 16px; padding: 16px 18px;
    background: var(--hc-surface); border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.timer-help-template:hover { border-color: var(--hc-border-strong); background: var(--hc-surface-2); }
.template-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--hc-accent-soft);
}
.template-icon i { font-size: 18px; color: var(--hc-accent); }
.template-info h4 { font-size: 15px; font-weight: 600; color: var(--hc-text); margin: 0 0 2px; }
.template-info p { font-size: 13px; color: var(--hc-muted); margin: 0; }

/* Tips */
.timer-help-tips { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.timer-help-tip {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
    background: var(--hc-surface); border: 1px solid var(--hc-border); border-radius: var(--hc-radius-sm);
}
.timer-help-tip i { color: var(--hc-accent); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.timer-help-tip p { margin: 0; font-size: 14px; color: var(--hc-text-soft); }

/* Checklist */
.timer-help-checklist { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.timer-help-checklist-item, .timer-help-check-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px;
    background: var(--hc-surface); border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm); font-size: 14px; color: var(--hc-text-soft);
}
.timer-help-checklist-item i, .timer-help-check-item i { color: var(--hc-accent); margin-top: 2px; flex-shrink: 0; }

/* FAQ */
.timer-help-faq { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.timer-help-faq-item {
    padding: 18px 20px; background: var(--hc-surface);
    border: 1px solid var(--hc-border); border-radius: var(--hc-radius-sm);
}
.timer-help-faq-item h4, .timer-help-faq-question {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 600; color: var(--hc-text); margin: 0 0 10px;
}
.timer-help-faq-item h4 i, .timer-help-faq-question i { color: var(--hc-accent); font-size: 15px; }
.timer-help-faq-item p, .timer-help-faq-answer { margin: 0; font-size: 14px; color: var(--hc-text-soft); }

/* Table */
.timer-help-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.timer-help-table th, .timer-help-table td {
    padding: 10px 14px; border: 1px solid var(--hc-border); text-align: left;
}
.timer-help-table th { background: var(--hc-surface); color: var(--hc-text); font-weight: 600; }
.timer-help-table td { color: var(--hc-text-soft); }

/* Roles */
.timer-help-roles-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px; margin: 18px 0;
}
.timer-help-role {
    padding: 16px 18px; background: var(--hc-surface);
    border: 1px solid var(--hc-border); border-radius: var(--hc-radius-sm);
    font-size: 14px; color: var(--hc-text-soft);
}
.timer-help-role h4 { margin: 0 0 6px; color: var(--hc-text); font-size: 15px; }

/* Plain list */
.timer-help-list { margin: 0 0 16px; padding-left: 22px; }

/* ===== Footer ===== */
.timer-help-footer {
    border-top: 1px solid var(--hc-border);
    background: var(--hc-surface);
    padding: 48px 0 28px;
}
.timer-help-footer-content {
    display: flex; justify-content: space-between; gap: 40px;
    flex-wrap: wrap; margin-bottom: 32px;
}
.timer-help-footer-brand img { height: 28px; margin-bottom: 12px; }
.timer-help-footer-brand p { margin: 0; max-width: 280px; font-size: 13.5px; line-height: 1.6; color: var(--hc-muted); }
.timer-help-footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.timer-help-footer-col { display: flex; flex-direction: column; gap: 9px; }
.timer-help-footer-col h4 {
    margin: 0 0 4px; font-size: 12px; font-weight: 700;
    letter-spacing: 0.6px; text-transform: uppercase; color: var(--hc-faint);
}
.timer-help-footer-col a { font-size: 13.5px; color: var(--hc-muted); text-decoration: none; transition: color 0.15s ease; }
.timer-help-footer-col a:hover { color: var(--hc-text); }
.timer-help-footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--hc-border);
    font-size: 12.5px; color: var(--hc-faint);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .timer-help-content-wrapper { grid-template-columns: 1fr; gap: 24px; }
    .timer-help-sidebar { display: none; }
    .timer-help-feature { padding: 24px; }
}
@media (max-width: 560px) {
    .timer-help-hero { padding: 48px 20px 40px; }
    .timer-help-grid { grid-template-columns: 1fr; }
    .timer-help-nav { gap: 14px; }
    .timer-help-footer-links { gap: 32px; }
}
