/* ==========================================================================
   PDFJPG tool-page content section (prefix: tc-)
   Sits BELOW #pdfjpg-app as a sibling, so it never enters the work area and
   is never wiped by pdfjpg-app.js mount(). Above the fold is unchanged.
   ========================================================================== */

.tc {
    max-width: 880px;
    margin: 0 auto;
    padding: 8px 32px 72px;
    color: var(--as-text);
    font-size: 0.975rem;
    line-height: 1.75;
}

/* soft rule so the doc area reads as separate from the tool */
.tc-top {
    border-top: 1px solid var(--as-border);
    padding-top: 40px;
}

.tc h2 {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 44px 0 14px;
    color: var(--as-text);
}
.tc-top > h2:first-child { margin-top: 0; }

.tc h3 {
    font-size: 1.02rem;
    font-weight: 650;
    margin: 26px 0 8px;
    color: var(--as-text);
}

.tc p { margin: 0 0 14px; color: #334155; }
.tc a { color: var(--as-accent); text-decoration: none; }
.tc a:hover { text-decoration: underline; }
.tc b, .tc strong { font-weight: 650; color: var(--as-text); }
.tc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: #eef2f9;
    border: 1px solid var(--as-border);
    border-radius: 5px;
    padding: 1px 5px;
}

/* ---------- numbered steps ---------- */
.tc-steps { list-style: none; counter-reset: tcstep; margin: 0; padding: 0; }
.tc-steps li {
    counter-increment: tcstep;
    position: relative;
    padding: 0 0 0 42px;
    margin: 0 0 16px;
    color: #334155;
}
.tc-steps li::before {
    content: counter(tcstep);
    position: absolute; left: 0; top: 1px;
    width: 27px; height: 27px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: var(--as-accent-soft);
    color: var(--as-accent);
    font-size: 0.85rem; font-weight: 700;
}
.tc-steps li b { display: block; }

/* ---------- spec table ---------- */
.tc-tablewrap { overflow-x: auto; margin: 0 0 16px; }
.tc table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.93rem;
}
.tc th, .tc td {
    text-align: left;
    padding: 11px 15px;
    border-bottom: 1px solid var(--as-border);
    vertical-align: top;
}
.tc thead th {
    background: #f8fafc;
    font-weight: 650;
    color: var(--as-muted);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}
.tc tbody tr:last-child th, .tc tbody tr:last-child td { border-bottom: 0; }
.tc tbody th { font-weight: 650; white-space: nowrap; }

/* ---------- FAQ ---------- */
.tc-faq { border: 1px solid var(--as-border); border-radius: 12px; background: #fff; overflow: hidden; }
.tc-faq details { border-bottom: 1px solid var(--as-border); }
.tc-faq details:last-child { border-bottom: 0; }
.tc-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 46px 15px 18px;
    font-weight: 600;
    position: relative;
    color: var(--as-text);
}
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary::after {
    content: '';
    position: absolute; right: 20px; top: 22px;
    width: 8px; height: 8px;
    border-right: 2px solid var(--as-muted);
    border-bottom: 2px solid var(--as-muted);
    transform: rotate(45deg);
    transition: transform .18s ease;
}
.tc-faq details[open] summary::after { transform: rotate(-135deg); top: 25px; }
.tc-faq summary:hover { background: #f8fafc; }
.tc-faq .tc-a { padding: 0 18px 16px; color: #475569; }
.tc-faq .tc-a p:last-child { margin-bottom: 0; }

/* ---------- related tools ---------- */
.tc-rel { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.tc-rel a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px;
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 550;
    color: var(--as-text);
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.tc-rel a:hover {
    border-color: var(--as-accent);
    color: var(--as-accent);
    text-decoration: none;
    transform: translateY(-1px);
}
.tc-rel a i { color: var(--as-muted); font-size: 0.9em; }
.tc-rel a:hover i { color: var(--as-accent); }

/* ---------- privacy callout ---------- */
.tc-note {
    display: flex; gap: 13px;
    background: var(--as-accent-soft);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 15px 18px;
    margin: 0 0 14px;
    color: #1e3a8a;
    font-size: 0.93rem;
}
.tc-note i { color: var(--as-accent); font-size: 1.05rem; margin-top: 3px; }
.tc-note p { margin: 0; color: #1e3a8a; }

@media (max-width: 768px) {
    .tc { padding: 4px 16px 56px; font-size: 0.95rem; }
    .tc-top { padding-top: 30px; }
    .tc h2 { font-size: 1.16rem; margin: 34px 0 12px; }
}
