/* DotConv, browser-based print studio. Rules stay inside the service. */
.dc-page {
    --dc-ink: var(--its-text, #101a35);
    --dc-muted: var(--its-text-2, #34415f);
    --dc-edge: var(--its-border, #d7e1f1);
    --dc-paper: var(--its-bg, #f3f7fd);
    --dc-blue: var(--dc-accent, var(--its-accent, #3867d6));
    --dc-blue-dark: var(--dc-accent, var(--its-accent-dark, #2854bd));
    --dc-blue-soft: var(--its-accent-soft, #edf2ff);
    --dc-surface: var(--its-card, #fff);
    --dc-radius: var(--its-radius, 16px);
    --dc-radius-sm: var(--its-radius-sm, 10px);
    width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--dc-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.55;
}
.dc-page *, .dc-page *::after, .dc-page *::before { box-sizing: border-box; }
.dc-page [hidden] { display: none !important; }
.dc-page :is(button, input, select) { font: inherit; }
.dc-page :is(button, summary, select, input[type="color"], input[type="range"]) { cursor: pointer; }
.dc-page :is(button, input, select, summary, a):focus-visible { outline: 3px solid var(--dc-blue); outline-offset: 3px; }
.dc-studio svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dc-studio button, .dc-modal button { border: 0; }
/* The site's service header normally reserves a column for a cover. Here the
   actual photo comparison appears in the editor, so the intro spans the header. */
#dotconv .dc-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro";
    gap: 0;
}
#dotconv .dc-intro :is(.its-content-hero__content, .its-service-intro) {
    width: 100%;
    min-width: 0;
    max-width: none;
}
.dc-studio { display: grid; grid-template-columns: minmax(255px, .9fr) minmax(0, 1.3fr); align-items: start; gap: 0; background: var(--dc-surface); border: 1px solid var(--dc-edge); overflow: clip; border-radius: var(--dc-radius); box-shadow: var(--its-shadow, 0 12px 34px rgba(31,55,103,.08)); scroll-margin-top: 1rem; }
#dotconv .dc-studio h2 { color: var(--dc-ink); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; margin: 0 0 14px; }
.dc-studio h2::before, .dc-studio h2::after { content: none; }
.dc-settings-column, .dc-proof-column { min-width: 0; }
.dc-settings-column { border-right: 1px solid var(--dc-edge); }
.dc-proof-column { position: sticky; top: 80px; }
.dc-source, .dc-settings, .dc-proof, .dc-export { padding: clamp(16px, 2.1vw, 30px); }
.dc-source, .dc-proof { border-bottom: 1px solid var(--dc-edge); }
.dc-dropzone { padding: 20px 12px 14px; border: 1px dashed var(--dc-blue); background: var(--dc-paper); border-radius: var(--dc-radius-sm); text-align: center; }
.dc-dropzone.is-drag { border-color: var(--dc-blue); background: var(--dc-blue-soft); }
.dc-dropzone p { color: var(--dc-muted); margin: 9px 0 6px; font-size: 13px; }
.dc-page .dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 16px; border: 1px solid transparent; border-radius: var(--dc-radius-sm); line-height: 1.15; font-size: 1rem; font-weight: 700; text-decoration: none; }
.dc-page .dc-btn--primary { background: var(--dc-blue); color: #fff; box-shadow: 0 9px 20px rgba(56,103,214,.2); }
.dc-page .dc-btn--soft { border-color: var(--its-accent-border, #cbd8fa); background: var(--dc-surface); color: var(--dc-ink); }
.dc-page .dc-btn--primary:enabled:is(:hover, :focus-visible) { background: var(--dc-blue-dark); color: white; }
.dc-page .dc-btn--soft:enabled:is(:hover, :focus-visible) { color: var(--dc-blue-dark); border-color: var(--dc-blue); background: var(--dc-blue-soft); }
.dc-page .dc-btn:disabled { background: var(--dc-paper); border-color: var(--dc-edge); color: var(--dc-muted); opacity: 1; box-shadow: none; }

.dc-page button:disabled { cursor: default; opacity: .47; }
.dc-source-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 5px; }
.dc-source-tools button, .dc-page .dc-text-action { display: inline-flex; align-items: center; gap: 7px; color: var(--dc-blue-dark); background: transparent; font-size: 14px; font-weight: 600; min-height: 44px; padding: 4px 3px; }
.dc-private { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.4; color: var(--dc-muted); margin: 12px 0 0; }
.dc-private svg { height: 14px; width: 14px; }
.dc-file-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; background: var(--dc-paper); border-radius: 5px; }
.dc-file-card div { min-width: 0; }
.dc-file-card strong, .dc-file-card span { display: block; overflow-wrap: anywhere; font-size: 14px; }
.dc-file-card span { color: var(--dc-muted); font-size: 12px; }
.dc-presets { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-page .dc-preset { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--dc-edge); color: var(--dc-ink); background: var(--dc-surface); border-radius: var(--dc-radius-sm); min-height: 44px; font-size: 13px; font-weight: 650; text-align: left; }
.dc-studio .dc-preset__icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.dc-page .dc-preset.is-active, .dc-page .dc-choice-buttons .is-active { background: var(--dc-blue-soft); border-color: var(--dc-blue); color: var(--dc-blue-dark); }
.dc-hint { color: var(--dc-muted); font-size: 14px; line-height: 1.4; margin: 10px 0 14px; }
.dc-range small { color: var(--dc-muted); font-size: 12px; margin: 8px 0 14px; }
.dc-adjust { border-block: 1px solid var(--dc-edge); }
.dc-adjust summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 12px 0; color: var(--dc-ink); font-size: 18px; font-weight: 700; line-height: 1.25; list-style: none; }
.dc-adjust summary::-webkit-details-marker { display: none; }
.dc-adjust[open] summary svg { transform: rotate(180deg); }
.dc-guide summary { min-height: 44px; padding: .75rem 0; font-weight: 650; cursor: pointer; }
.dc-adjust-body { padding: 6px 0 20px; }
.dc-range-grid, .dc-select-grid, .dc-colors { display: grid; gap: 12px; margin-bottom: 15px; }
.dc-range { display: block; }
.dc-range > span { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 13px; }
.dc-range output { padding: 2px 6px; color: var(--dc-blue-dark); background: var(--dc-blue-soft); border-radius: 3px; font: 650 12px/1.35 ui-monospace, monospace; }
.dc-range small { display: block; margin: 0; }
.dc-page input[type="range"] { width: 100%; min-height: 28px; margin: 0; accent-color: var(--dc-blue); }
.dc-select-grid, .dc-colors { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.dc-field { display: block; }
.dc-page :is(.dc-field, .dc-color-field) > span, .dc-choice-block > span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 650; color: var(--dc-muted); }
.dc-field select, .dc-color-field input { width: 100%; min-height: 40px; border: 1px solid var(--dc-edge); background: var(--dc-surface); color: var(--dc-ink); border-radius: 4px; padding: 5px 8px; font-size: 14px; }
.dc-color-field { display: grid; grid-template-columns: 38px minmax(70px,1fr); gap: 3px; }
.dc-color-field span { grid-column: 1/-1; }
.dc-color-field input[type="color"] { padding: 2px; }
.dc-choice-buttons, .dc-view-tabs, .dc-socials, .dc-modal__socials { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-choice-buttons button, .dc-view-tabs button { background: var(--dc-surface); color: var(--dc-ink); border: 1px solid var(--dc-edge); border-radius: 4px; font-size: 12px; padding: 6px 9px; min-height: 44px; font-weight: 650; }
.dc-check { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; font-size: 13px; }
.dc-page .dc-text-action { margin-top: 5px; }
.dc-proof { background: var(--dc-paper); }
.dc-proof-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 35px; margin-bottom: 12px; }
#dotconv .dc-proof-head h2 { margin: 0; }
.dc-view-tabs { gap: 0; overflow: hidden; padding: 2px; border-radius: var(--dc-radius-sm); background: var(--dc-paper); border: 1px solid var(--dc-edge); }
.dc-view-tabs button { border: 0; border-radius: 6px; color: var(--dc-muted); background: transparent; }
.dc-view-tabs button.is-active { background: var(--dc-surface); color: var(--dc-blue-dark); box-shadow: inset 0 0 0 1px var(--its-accent-border, #cbd8fa); }
.dc-proof-paper { position: relative; display: grid; place-items: center; min-height: 160px; background-color: #fff; background-image: repeating-conic-gradient(#edf0f5 0 25%, transparent 0 50%); background-size: 16px 16px; border: 1px solid var(--dc-edge); border-radius: var(--dc-radius-sm); overflow: hidden; }
.dc-example { position: relative; width: 100%; padding: 0; margin: 0; }
.dc-example img { display: block; width: 100%; height: auto; }
.dc-example figcaption { position: absolute; display: flex; justify-content: space-between; inset: 12px 12px auto; }
.dc-example figcaption span { color: #fff; background: #172239e8; border-radius: 3px; padding: 4px 8px; font: 650 11px/1.4 ui-monospace, monospace; }
.dc-example::after { content: ''; position: absolute; inset: 0 auto 0 50%; border-left: 1px solid #77839a; }
.dc-canvas-stage { display: grid; position: relative; max-width: 100%; }
.dc-canvas-stage canvas { grid-area: 1/1; display: block; width: auto; height: auto; max-width: 100%; max-height: min(56vh, 620px); }
#dc-result-canvas { z-index: 1; }
.dc-compare-line { position: absolute; top: 0; bottom: 0; width: 2px; z-index: 2; background: white; box-shadow: 0 0 1px 1px #14243f; pointer-events: none; }
.dc-page .dc-compare-range { z-index: 3; position: absolute; width: calc(100% - 20px); left: 10px; bottom: 4px; filter: drop-shadow(0 1px 2px white); }
.dc-processing { position: absolute; z-index: 4; color: white; background: var(--dc-ink); border-radius: 4px; padding: 6px 10px; font-size: 13px; }
.dc-demo-bar { display: flex; justify-content: center; margin-top: 12px; }
.dc-demo-bar .dc-btn { padding: 7px 12px; font-size: 14px; min-height: 44px; }
.dc-stats-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; padding: 12px 0 0; }
.dc-stats-row span, .dc-stats-row strong { display: block; font-size: 12px; color: var(--dc-muted); }
.dc-stats-row strong { color: var(--dc-ink); font-family: ui-monospace, monospace; }
.dc-page .dc-format-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dc-muted);
}
.dc-export { container-type: inline-size; }
.dc-export-tools {
    display: grid;
    grid-template-columns: minmax(66px, 86px) minmax(108px, max-content) minmax(62px, max-content);
    align-items: stretch;
    gap: 6px;
}
.dc-page .dc-export-tools > :is(select, button) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 12px;
    border-radius: var(--dc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.dc-export-tools select {
    background: var(--dc-surface);
    color: var(--dc-ink);
    border: 1px solid var(--dc-edge);
}
@container (max-width: 325px) {
    .dc-page .dc-export-tools > :is(select, button) { font-size: 13px; padding-inline: 4px; }
}
@container (max-width: 250px) {
    .dc-export-tools { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dc-export-tools select { grid-column: 1 / -1; }
}
/* The catalog theme supplies heading sizes, ornaments, field typography
   and responsive card padding. The guide uses the full inner card width. */
#dotconv .dc-guide.its-library-item__content {
    margin-top: clamp(24px, 3vw, 36px) !important;
    background-color: var(--dc-surface);
    border: 1px solid var(--dc-edge);
}
#dotconv .dc-guide .f_content,
#dotconv .dc-guide .value {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
}
.dc-guide__section { scroll-margin-top: 6rem; }
.dc-guide .dc-faq details { border-bottom: 1px solid var(--dc-edge); }
.dc-guide .dc-faq p { margin: 0; padding: 0 0 .85rem; }
.dc-guide__formats { margin-block: 1rem; }
.dc-guide__formats dt { font-weight: 700; }
.dc-guide__formats dd { margin: .25rem 0 1rem; }
.dc-pro-cta, .dc-feedback, .dc-share-section, .dc-comments { margin-top: clamp(1.4rem,2.3vw,2rem); }
.dc-share-section h2, .dc-comments h2, .dc-modal__content h2 { color: var(--dc-ink); line-height: 1.22; font-weight: 700; }
.dc-share-section h2 { margin: 0 0 .65rem; font-size: clamp(1.36rem,2.3vw,1.8rem); }
.dc-socials { gap: .65rem; margin-top: 1.25rem; }
.dc-socials :is(a, button), .dc-modal__socials a { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; border: 1px solid var(--dc-edge); border-radius: var(--dc-radius-sm); padding: .45rem .8rem; background: var(--dc-surface); color: var(--dc-blue-dark); text-decoration: none; font-size: .825rem; font-weight: 650; line-height: 1.35; }
.dc-socials :is(a,button):hover, .dc-modal__socials a:hover { background: var(--dc-blue-soft); border-color: var(--dc-blue); }
.dc-socials span { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; flex: none; border-radius: 7px; background: var(--dc-blue-soft); color: var(--dc-blue); }
.dc-socials svg { width: 1.05rem; height: 1.05rem; }
.dc-comments { padding: clamp(16px,2.1vw,30px); background: var(--dc-surface); border: 1px solid var(--dc-edge); border-radius: var(--dc-radius); box-shadow: var(--its-shadow,0 12px 34px rgba(31,55,103,.08)); }
.dc-modal { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 15px; }
.dc-modal__backdrop { position: absolute; inset: 0; background: #101c32c9; }
.dc-modal__dialog { position: relative; width: min(800px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: 90vh; overflow: auto; background: var(--dc-surface); border-radius: 8px; }
.dc-modal__close { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--dc-blue-soft); color: var(--dc-ink); font-size: 24px !important; line-height: 1; z-index: 1; }
.dc-modal__preview { display: grid; place-items: center; background: var(--dc-paper); padding: 15px; }
.dc-modal__preview img { display: block; max-width: 100%; max-height: 60vh; object-fit: contain; }
.dc-modal__content { padding: 40px 22px 22px; }
.dc-modal__content h2 { margin: 0; font-size: 24px; }
.dc-modal__content p { font-size: 14px; margin-block: 8px 14px; }
.dc-modal__actions { display: grid; gap: 7px; }
.dc-modal__socials { margin-top: 12px; }
.dc-toast { position: fixed; z-index: 100000; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); background: var(--dc-ink); color: white; border-radius: 5px; padding: 10px 14px; font-size: 13px; opacity: 0; pointer-events: none; }
.dc-toast.is-visible { opacity: 1; }
@media (max-width: 760px) {
    .dc-studio { grid-template-columns: 1fr; }
    .dc-settings-column, .dc-proof-column { display: contents; }
    .dc-source { order: 1; }
    .dc-proof { order: 2; }
    .dc-settings { order: 3; border-bottom: 1px solid var(--dc-edge); }
    .dc-export { order: 4; }
    .dc-proof-head { min-height: 0; }
    .dc-studio .dc-btn { min-height: 46px; font-size: .9375rem; }
    .dc-example img { max-height: 44vh; object-fit: cover; }
    .dc-stats-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dc-modal__dialog { display: block; }
    .dc-modal__preview img { max-height: 32vh; }
    .dc-modal__content { padding: 18px; }
}
.dc-file-card:not([hidden]) { margin-top: 10px; }

.dc-guide :is(h2, h3)[id] { scroll-margin-top: 6rem; }
.dc-pro-cta, .dc-feedback {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: clamp(1rem,1.8vw,1.65rem);
    align-items: center;
    padding: clamp(1.25rem,2.1vw,2rem);
    border: 1px solid var(--dc-edge);
    border-radius: var(--dc-radius);
}
.dc-pro-cta { background: linear-gradient(135deg, var(--dc-surface), var(--dc-blue-soft)); }
.dc-feedback { color: white; border-color: #152a49; background: linear-gradient(135deg, #112744, #20416d); }
.dc-pro-cta__icon, .dc-feedback__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: white;
    border-radius: 12px;
}
.dc-pro-cta__icon { background: var(--dc-blue); }
.dc-feedback__icon { border: 1px solid #ffffff30; background: #ffffff12; }
.dc-pro-cta__icon svg, .dc-feedback__icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dc-pro-cta .dc-kicker, .dc-feedback .dc-kicker {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.dc-pro-cta .dc-kicker { color: var(--dc-blue-dark); }
.dc-feedback .dc-kicker { color: #bed6ff; }
.dc-page .dc-pro-cta h2, .dc-page .dc-feedback h2 { margin: 0 0 .42rem; font-size: clamp(1.36rem, 2.3vw, 1.8rem); line-height: 1.22; overflow-wrap: anywhere; }
.dc-page .dc-feedback h2 { color: white; }
.dc-pro-cta p, .dc-feedback p { margin: 0; line-height: 1.6; }
.dc-pro-cta p { color: var(--dc-muted); }
.dc-feedback p { color: #edf2ff; }
.dc-page a.dc-pro-cta__button, .dc-page a.dc-feedback__button {
    min-height: 48px;
    padding-inline: 22px;
    background: var(--dc-blue);
    border-color: var(--dc-blue);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(56,103,214,.22);
    white-space: nowrap;
}
.dc-page a.dc-pro-cta__button:hover, .dc-page a.dc-feedback__button:hover { background: var(--dc-blue-dark); color: white; }
@media (max-width: 760px) {
    .dc-pro-cta, .dc-feedback { grid-template-columns: 50px minmax(0,1fr); gap: 12px; padding: 20px; }
    .dc-pro-cta__icon, .dc-feedback__icon { width: 50px; height: 50px; }
    .dc-pro-cta__button, .dc-feedback__button { grid-column: 1 / -1; width: 100%; }
}
.dc-toc-control.its-page-toc[aria-hidden="true"] { visibility: hidden; }

@media (max-width: 480px) {
    .dc-pro-cta, .dc-feedback { grid-template-columns: minmax(0,1fr); }
    .dc-socials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dc-socials > button { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .dc-socials { grid-template-columns: minmax(0,1fr); } }
/* The fixed contents tab belongs in the side gutter of the 1280px site container. */
@media (min-width: 1380px) and (max-width: 1639.98px) {
    #dotconv .its-toc-toggle {
        left: 12px;
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
    #dotconv .its-toc-toggle span { display: none; }
}
@media (min-width: 768px) and (max-width: 1379.98px) {
    #dotconv .its-toc-toggle {
        position: static;
        display: inline-flex;
        width: auto;
        height: auto;
        min-height: 44px;
        margin-top: 24px;
        padding: 8px 14px;
        transform: none;
    }
    #dotconv .its-toc-toggle span { display: inline; }
}
