/* ==========================================================================
   THE TOOL PAGES (PRODUCT-PAGES.md)
   One layout for the Store Speed Test, Trust Badges, the PDF hub and the 39
   PDF tools, and the QR Code Generator: a short hero with the tool or the
   picture of its result, then steps, tiles, Free vs Premium and the FAQ.
   The class names keep their old ch-pdf2 prefix because all four pages share
   them. Every color is a theme token from style.css; the --ch-pdf2-* names
   below are read by cwv-tool.css and qr-tool.css too.
   ========================================================================== */

.ch-pdf2 {
    --ch-pdf2-ink: var(--fg);
    --ch-pdf2-sub: var(--fg-2);
    --ch-pdf2-soft: var(--text);
    --ch-pdf2-line: var(--line);
    --ch-pdf2-card: var(--bg-2);
    --ch-pdf2-card-hi: var(--bg-3);
    --ch-pdf2-accent: var(--green);
    --ch-pdf2-accent-bg: var(--green-soft);
    --ch-pdf2-shadow: none;
    --ch-pdf2-shadow-hi: var(--shadow);
    --ch-pdf2-pro-text: var(--blue);

    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
    color: var(--fg);
}
/* The page frame already has its gutter here; .ch-page .site-main (style.css)
   would add a second one. */
.ch-pdf2 > .site-main { padding: 0; }

/* --------------------------------------------------------------- HERO */
.ch-pdf2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 40px 0 8px;
}

.ch-pdf2-crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    color: var(--fg-3);
    font-size: 14px;
}
.ch-pdf2-crumbs a,
.ch-pdf2-crumbs a:visited { color: var(--fg-2); }
.ch-pdf2-crumbs a:hover,
.ch-pdf2-crumbs a:focus-visible { color: var(--fg); }
.ch-pdf2-crumbs svg { display: block; color: var(--fg-3); }

/* The LCP element: painted at once, never faded in. */
.ch-pdf2-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 1.7rem + 2.6vw, 3.75rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.ch-pdf2-sub {
    max-width: 46ch;
    margin: 16px 0 0;
    color: var(--fg-2);
    font-size: 1.125rem;
    line-height: 1.55;
}
.ch-pdf2-sub strong { color: var(--fg); font-weight: 500; }

.ch-pdf2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.ch-pdf2-chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--fg-2);
    font-size: 14px;
    font-weight: 500;
}
.ch-pdf2-chips svg { flex: none; color: var(--green); }

/* The picture of the result, the tool's own scene. Desktop only. The PDF
   scenes read the --ch-ph-* names (pdf-tools.css); the plate gives them
   theme tokens, so the sheet stays paper in both themes. */
.ch-pdf2-plate {
    --ch-ph-panel: var(--bg-up);
    --ch-ph-panel-2: var(--bg-2);
    --ch-ph-line: var(--line-2);
    --ch-ph-grid: var(--line);
    --ch-ph-glow: var(--green-soft);
    --ch-ph-sheet: var(--paper);
    --ch-ph-sheet-line: var(--paper-line);
    --ch-ph-ink: rgba(11, 12, 15, 0.16);

    display: none;
    width: 100%;
    max-width: 440px;
    justify-self: end;
    padding: 14px;
    background: var(--bg-up);
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

/* A fixed height, so a late web font never moves the scene under it. */
.ch-pdf2-plate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    margin: 0 2px 10px;
    color: var(--fg-3);
    font-size: 13px;
    line-height: 1;
}

.ch-pdf2-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
}
.ch-pdf2-live i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }

@media (min-width: 900px) {
    .ch-pdf2-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; padding-top: 48px; }
    .ch-pdf2-hero.is-hub { grid-template-columns: minmax(0, 1fr); }
    .ch-pdf2-plate { display: block; }
}

/* ------------------------------------------------------------ THE TOOL */
/* The PDF drop zone and the run button (pdf-tools.css draws the rest). */
.ch-pdf2 .ch-pdf-app { margin: 0 auto 8px; }

.ch-pdf2 .ch-pdf-drop {
    min-height: 210px;
    gap: 8px;
    padding: 28px 20px;
    background: var(--bg-2);
    border: 1px dashed var(--line-2);
    border-radius: var(--r-lg);
    box-shadow: none;
}
.ch-pdf2 .ch-pdf-drop:hover { background: var(--bg-2); border-color: var(--fg-3); }
.ch-pdf2 .ch-pdf-drop-ring { display: none; }
.ch-pdf2 .ch-pdf-drop-ico { width: 48px; height: 48px; margin-bottom: 2px; border-radius: 12px; }

.ch-pdf2 .ch-pdf-drop-cta {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 28px;
    background: var(--green-fill);
    color: var(--on-green);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.15s;
}
.ch-pdf2 .ch-pdf-drop:hover .ch-pdf-drop-cta,
.ch-pdf2 .ch-pdf-drop:focus-visible .ch-pdf-drop-cta { background: var(--green-hi); color: var(--on-green); }
.ch-pdf2 .ch-pdf-drop-hint,
.ch-pdf2 .ch-pdf-drop-spec { color: var(--fg-2); letter-spacing: 0; }

.ch-pdf2 .ch-pdf-drop-privacy {
    justify-content: center;
    align-items: center;
    margin: 12px auto 0;
    color: var(--fg-2);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.ch-pdf2 .ch-pdf-drop-privacy svg { margin-top: 0; color: var(--green); }

@media (min-width: 900px) {
    .ch-pdf2 .ch-pdf-drop { min-height: 250px; }
}

.ch-pdf2 .ch-pdf-run:not(:disabled),
.ch-pdf2 .ch-pdf-run:not(:disabled):focus,
.ch-pdf2 .ch-pdf-run:not(:disabled):active {
    background: var(--green-fill);
    color: var(--on-green);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ch-pdf2 .ch-pdf-run:hover:not(:disabled),
.ch-pdf2 .ch-pdf-run:focus-visible:not(:disabled) { background: var(--green-hi); color: var(--on-green); }

/* ------------------------------------------------------------- SECTIONS */
.ch-pdf2-body { padding-bottom: 24px; }
.ch-pdf2-sec { margin: 80px 0 0; }
.ch-pdf2 .ch-tools { margin-top: 80px; }

@media (min-width: 900px) {
    .ch-pdf2-sec { margin-top: 104px; }
    .ch-pdf2 .ch-tools { margin-top: 112px; }
}

/* The product name over a heading. */
.ch-pdf2-label {
    display: block;
    margin: 0 0 10px;
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
}

.ch-pdf2-h2 {
    margin: 0 0 28px;
    font-family: var(--serif);
    font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--fg);
    text-wrap: balance;
}

/* Steps: three numbers on one line, joined by a hairline. */
.ch-pdf2-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ch-pdf2-step {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 14px;
    margin: 0;
}
.ch-pdf2-step-n {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--fg);
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ch-pdf2-step h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.ch-pdf2-step p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; }

@media (min-width: 760px) {
    .ch-pdf2-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
    .ch-pdf2-step { grid-template-columns: minmax(0, 1fr); }
    .ch-pdf2-step-n { grid-row: auto; margin-bottom: 14px; }
    .ch-pdf2-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 16px;
        left: 44px;
        right: -20px;
        height: 1px;
        background: var(--line);
    }
}

/* Tiles */
.ch-pdf2-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) {
    .ch-pdf2-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.ch-pdf2-tile {
    padding: 24px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.ch-pdf2-tile-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    background: var(--bg-3);
    color: var(--green);
    border-radius: 10px;
}
.ch-pdf2-tile h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.ch-pdf2-tile p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; }

.ch-pdf2-tile strong,
.ch-pdf2-step strong,
.ch-pdf2-plan-list strong { color: var(--fg); font-weight: 500; }

/* ------------------------------------------------------ FREE VS PREMIUM */
.ch-pdf2-plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) {
    .ch-pdf2-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

.ch-pdf2-plan {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.ch-pdf2-plan.is-pro { border-color: var(--ch-pro-line); }

.ch-pdf2-plan-name { color: var(--fg); font-size: 15px; font-weight: 600; }
.ch-pdf2-plan.is-pro .ch-pdf2-plan-name { color: var(--blue); }

.ch-pdf2-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 10px 0 20px;
}
.ch-pdf2-plan-price b {
    color: var(--fg);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.ch-pdf2-plan-price span { color: var(--fg-2); font-size: 15px; }

/* The visitor's own Premium price (assets/js/ch-prices.js, PRODUCT-PAGES.md
   4.7): the yearly plan as a monthly figure, the yearly total and the
   month-to-month price, the tax line last. The box keeps its height from the
   first paint, so filling it moves nothing; until the answer comes the figure
   is a skeleton bar, and without an answer one sentence takes its place. */
.ch-pdf2-plan-price.is-local { display: block; min-height: 5rem; }

.ch-pdf2-price-now {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 10px;
    min-height: 2.5rem;
    margin: 0;
}
.ch-pdf2-plan-price .ch-pdf2-price-now b { display: inline-block; min-width: 4.4ch; white-space: nowrap; }
.ch-pdf2-plan-price .ch-pdf2-price-now > span { white-space: nowrap; }

.ch-pdf2-price-alt,
.ch-pdf2-price-tax {
    min-height: 1.35em;
    margin: 8px 0 0;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.35;
}
.ch-pdf2-price-tax { margin-top: 2px; color: var(--fg-3); font-size: 13px; }
.ch-pdf2-plan-price .ch-pdf2-price-alt span { color: inherit; font-size: inherit; }

.ch-pdf2-price-save { margin-left: 6px; color: var(--blue); font-style: normal; font-weight: 500; }
.ch-pdf2-price-save:has(span:empty) { display: none; }

.ch-pdf2-price-fallback,
.ch-pdf2-price-noscript { display: none; margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.45; }
.ch-pdf2-price-noscript { display: block; }

.ch-pdf2-plan-price.is-local:not(.is-filled) .ch-pdf2-price-alt { visibility: hidden; }
.ch-pdf2-plan-price.is-local:not(.is-filled):not(.is-fallback) .ch-pdf2-price-now b {
    height: 2.2rem;
    background: var(--bg-3);
    border-radius: 8px;
}
.ch-pdf2-plan-price.is-fallback .ch-pdf2-price-now,
.ch-pdf2-plan-price.is-fallback .ch-pdf2-price-alt,
.ch-pdf2-plan-price.is-fallback .ch-pdf2-price-tax { display: none; }
.ch-pdf2-plan-price.is-fallback .ch-pdf2-price-fallback { display: block; }

.ch-pdf2-plan-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ch-pdf2-plan-list li {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}
.ch-pdf2-plan-list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 1px;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}
.ch-pdf2-plan.is-pro .ch-pdf2-plan-list li::before { background: var(--blue); }
.ch-pdf2-plan.is-pro .ch-pdf2-plan-list li:first-child { padding-left: 0; color: var(--fg); font-weight: 500; }
.ch-pdf2-plan.is-pro .ch-pdf2-plan-list li:first-child::before { content: none; }

.ch-pdf2-plan .ch-pro-also { margin-top: 18px; }

.ch-pdf2-plan-act {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: auto;
    padding-top: 24px;
}

/* Account states: every state is printed, data-ch-pdf-plan on <html> picks
   one (template-parts/pdf-plans.php). No attribute yet means a guest. */
.ch-pdf2 [data-when] { display: none; }
html:not([data-ch-pdf-plan]) .ch-pdf2 [data-when~="guest"],
html[data-ch-pdf-plan="guest"] .ch-pdf2 [data-when~="guest"],
html[data-ch-pdf-plan="free"] .ch-pdf2 [data-when~="free"],
html[data-ch-pdf-plan="premium"] .ch-pdf2 [data-when~="premium"] { display: inline-flex; }

/* Buttons: the free action is the green primary, the Premium one the
   sitewide Premium fill (PREMIUM IS BLUE). */
.ch-pdf2 a.ch-pdf2-btn,
.ch-pdf2 a.ch-pdf2-btn:visited {
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    background: var(--green-fill);
    color: var(--on-green);
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.15s;
}
.ch-pdf2 a.ch-pdf2-btn:hover,
.ch-pdf2 a.ch-pdf2-btn:focus-visible,
.ch-pdf2 a.ch-pdf2-btn:active { background: var(--green-hi); color: var(--on-green); }
.ch-pdf2 a.ch-pdf2-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.ch-pdf2 a.ch-pdf2-btn.is-pro,
.ch-pdf2 a.ch-pdf2-btn.is-pro:visited {
    background-color: #2563eb;
    background-image: var(--ch-pro-fill);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--ch-pro-glow);
}
.ch-pdf2 a.ch-pdf2-btn.is-pro:hover,
.ch-pdf2 a.ch-pdf2-btn.is-pro:focus-visible,
.ch-pdf2 a.ch-pdf2-btn.is-pro:active {
    background-color: #1d4ed8;
    background-image: var(--ch-pro-fill-hi);
    color: #ffffff;
    box-shadow: var(--ch-pro-glow-hi);
}
.ch-pdf2 a.ch-pdf2-btn.is-pro:focus-visible { outline-color: var(--ch-pro-ring); }

/* The positive term under the Premium button, on its own line. */
.ch-pdf2-plan-note { flex-basis: 100%; color: var(--fg-3); font-size: 13px; }

.ch-pdf2-state {
    align-items: center;
    gap: 7px;
    min-height: 44px;
    color: var(--green);
    font-size: 15px;
    font-weight: 500;
}
.ch-pdf2-state.is-pro { color: var(--blue); }

/* ------------------------------------------------------------------ FAQ */
.ch-pdf2-faq-list { border-top: 1px solid var(--line); }
.ch-pdf2-faq-item { border-bottom: 1px solid var(--line); }
.ch-pdf2-faq-item summary {
    position: relative;
    display: block;
    padding: 18px 40px 18px 0;
    color: var(--fg);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}
.ch-pdf2-faq-item summary::-webkit-details-marker { display: none; }
.ch-pdf2-faq-item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.5px solid var(--fg-3);
    border-bottom: 1.5px solid var(--fg-3);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.ch-pdf2-faq-item summary:hover::after { border-color: var(--fg); }
.ch-pdf2-faq-item[open] summary::after { margin-top: -2px; transform: rotate(225deg); }
.ch-pdf2-faq-item p { max-width: 75ch; margin: 0 0 20px; color: var(--text); font-size: 16px; line-height: 1.65; }

/* ------------------------------------------------------- MORE PDF TOOLS */
.ch-pdf2-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 32px; }
@media (min-width: 560px) { .ch-pdf2-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ch-pdf2-more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ch-pdf2-more-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--fg);
    font-size: 15px;
    font-weight: 600;
}
.ch-pdf2-more-head svg { color: var(--green); }
.ch-pdf2-more ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.ch-pdf2-more li { margin: 0; font-size: 15px; line-height: 1.5; }
.ch-pdf2-more a,
.ch-pdf2-more a:visited { color: var(--fg-2); }
.ch-pdf2-more a:hover,
.ch-pdf2-more a:focus-visible { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.ch-pdf2-more li.is-current span { color: var(--fg); font-weight: 500; }

/* ------------------------------------------------------------------ HUB */
.ch-pdf2-hub { max-width: none; margin: 4px 0 0; }
.ch-pdf2-hub-controls { position: relative; display: grid; gap: 14px; margin: 0 0 6px; }

.ch-pdf2-search { position: relative; display: flex; align-items: center; max-width: 520px; }
.ch-pdf2-search svg { position: absolute; left: 14px; color: var(--fg-3); pointer-events: none; }
.ch-pdf2-search input[type="search"] {
    width: 100%;
    min-height: 46px;
    padding: 0 16px 0 42px;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    font-size: 16px;
}
.ch-pdf2-search input[type="search"]::placeholder { color: var(--fg-3); }
.ch-pdf2-search input[type="search"]:focus { border-color: var(--fg-3); outline: 2px solid var(--green-soft); outline-offset: 0; }

/* One row that scrolls inside itself on a phone; the page never does. */
.ch-pdf2-filters {
    display: flex;
    gap: 6px;
    margin: 0 calc(var(--gut) * -1);
    padding: 2px var(--gut) 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ch-pdf2-filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
    .ch-pdf2-filters { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}

.ch-pdf2 button.ch-pdf2-filter {
    flex: none;
    height: 34px;
    padding: 0 14px;
    background: transparent;
    color: var(--fg-2);
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
.ch-pdf2 button.ch-pdf2-filter:hover,
.ch-pdf2 button.ch-pdf2-filter:focus-visible { background: transparent; color: var(--fg); border-color: var(--line-2); }
.ch-pdf2 button.ch-pdf2-filter.is-active,
.ch-pdf2 button.ch-pdf2-filter.is-active:hover,
.ch-pdf2 button.ch-pdf2-filter.is-active:focus-visible { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.ch-pdf2-group-head { margin: 36px 0 14px; color: var(--fg); font-size: 17px; font-weight: 600; }

.ch-pdf2-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* In two and three columns a card holds two lines from the start, so a line
   that wraps when the web font arrives moves nothing (CLS). */
@media (min-width: 600px) {
    .ch-pdf2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-pdf2 .ch-pdf2-card { min-height: 88px; }
}
@media (min-width: 1000px) { .ch-pdf2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }

.ch-pdf2 .ch-pdf2-card,
.ch-pdf2 a.ch-pdf2-card:visited {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 14px 16px;
    background: var(--bg-2);
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color 0.15s;
}
.ch-pdf2 a.ch-pdf2-card:hover,
.ch-pdf2 a.ch-pdf2-card:focus-visible { background: var(--bg-2); color: var(--fg); border-color: var(--line-2); }
.ch-pdf2 a.ch-pdf2-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ch-pdf2 .ch-pdf2-card.is-locked { opacity: 0.6; }

.ch-pdf2-card-ico {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-3);
    color: var(--green);
    border-radius: 10px;
}
.ch-pdf2-card-text { display: grid; gap: 2px; min-width: 0; }
.ch-pdf2-card-name { color: var(--fg); font-size: 15px; font-weight: 600; line-height: 1.35; }
.ch-pdf2-card-name em {
    margin-left: 4px;
    padding: 1px 7px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 99px;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    vertical-align: 1px;
}
.ch-pdf2-card-line { color: var(--fg-2); font-size: 14px; line-height: 1.45; }

.ch-pdf2-empty { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: var(--fg-2); font-size: 15px; }
.ch-pdf2-empty a,
.ch-pdf2-empty a:visited { color: var(--green); }
.ch-pdf2-empty a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
    .ch-pdf2 a.ch-pdf2-btn,
    .ch-pdf2 a.ch-pdf2-card,
    .ch-pdf2 .ch-pdf-drop-cta,
    .ch-pdf2-faq-item summary::after { transition: none; }
}
