/* /edit-tools/ : inherits /styles.css (tile background, Oswald, footer); header has no menu. */
.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 20px 28px;
}
.tools-header a { text-decoration: none; transition: color 0.2s; }
.tools-header .brand { color: #fff; }
.tools-header .section {
    color: #a9a9a9;                 /* light grey, a touch dimmer than the brand */
    font-size: 16px;                /* smaller than the 24px brand */
    font-weight: 400;
    text-transform: none;           /* "Edit Tools", not all caps */
    letter-spacing: 1px;
}
.tools-header .section:hover { color: #d0d0d0; text-decoration: none; }
@media (max-width: 560px) {
    .tools-header { font-size: 17px; letter-spacing: 2px; padding: 16px 16px; }
    .tools-header .section { font-size: 14px; }
}

.tools .container { max-width: 1040px; text-align: left; }
.tools .container h1 { text-align: left; }
.tools .lead { font-size: 18px; color: #ddd; }

.tool-list { margin-top: 64px; }
.tool-list .eyebrow {
    font-size: 20px; font-weight: 400; text-transform: uppercase; letter-spacing: 3px; color: #fff;
    margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.4);   /* full-width rule under the heading */
}
.tool {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 22px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.tool-icon { flex: 0 0 128px; width: 128px; height: 128px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }
.tool-body h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: 3px; text-transform: uppercase; }
.tool-body p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.6; color: #cfcfcf; }   /* tool descriptions: smaller + lighter than the intro text */
@media (max-width: 560px) {
    .tool { flex-direction: column; text-align: center; }
    .tool-body h2 { text-align: center; }
}

/* single-tool landing page */
.tool-hero { display: flex; align-items: center; gap: 28px; margin-top: 10px; }
.tool-hero h1 { margin: 0 0 8px; }
.tool-hero p { margin: 0; font-size: 18px; }
.coming-soon {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.55);
    border-left: 3px solid #89CFF0;
    font-size: 20px;
    color: #fff;
}
@media (max-width: 560px) {
    .tool-hero { flex-direction: column; text-align: center; }
    .tool-hero h1 { text-align: center; }
}

/* 3rd party section */
.third-party { margin-top: 80px; }
.tool-ext { padding: 22px 26px; }
.tool-ext .tool-body h2 { font-size: 22px; }
.third-party .subhead {
    margin: 44px 0 14px;
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #a9a9a9;
}
.more-soon { margin: 14px 0 0; font-size: 15px; font-weight: 300; color: #a9a9a9; }

/* H_OFX download section */
.download { margin-top: 44px; }
.dl-heading { margin: 0; font-size: 26px; letter-spacing: 3px; text-transform: uppercase; color: #fff; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.4); }
.dl-meta { font-size: 14px; color: #a9a9a9; margin: 10px 0 0; font-weight: 300; }
.dl-note { margin: 10px 0 22px; font-size: 16px; color: #ddd; }
.dl-buttons { display: flex; gap: 18px; flex-wrap: wrap; }
.dl-btn {
    flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px;
    background: rgba(0,0,0,.6); border: 2px solid rgba(255,255,255,.25); color: #fff; text-decoration: none;
    transition: border-color .2s, background .2s;
}
.dl-btn:hover { border-color: #89CFF0; background: rgba(137,207,240,.12); text-decoration: none; color: #fff; }
.dl-btn.recommended { border-color: #89CFF0; }
.dl-os { font-size: 22px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.dl-sub { font-size: 14px; font-weight: 300; color: #cfcfcf; }
.dl-file { font-size: 13px; font-weight: 300; color: #a9a9a9; word-break: break-all; }
.dl-tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #89CFF0; }
.dl-details { margin-top: 22px; font-size: 15px; font-weight: 300; }
.dl-details summary { cursor: pointer; color: #ddd; letter-spacing: 1px; }
.dl-details .sum { margin: 10px 0 0; font-size: 13px; color: #cfcfcf; }
.dl-details code, .dl-steps code { font-size: 12.5px; word-break: break-all; color: #e8e8e8; }
.dl-steps { margin-top: 30px; }
.dl-steps h3 { color: #fff; font-size: 16px; letter-spacing: 2px; }
.dl-steps ol { margin: 8px 0 0; padding-left: 22px; font-size: 15px; font-weight: 300; line-height: 1.7; color: #cfcfcf; }
.older-row { margin-top: 12px; font-size: 15px; }
.older-row a { margin-left: 14px; }

/* release pages */
.crumbs { margin: 0 0 6px; font-size: 14px; color: #a9a9a9; font-weight: 300; }
.container > .dl-meta { margin-top: 0; }
.dl-more { margin: 26px 0 0; font-size: 15px; }
.rel-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.rel-row {
    display: grid; grid-template-columns: auto auto 1fr; gap: 6px 14px; align-items: baseline;
    padding: 18px 22px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); color: #ddd; text-decoration: none;
}
.rel-row:hover { border-color: #89CFF0; text-decoration: none; }
.rel-ver { font-size: 22px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.rel-date { grid-column: 3; justify-self: end; font-size: 14px; color: #a9a9a9; font-weight: 300; }
.rel-sum { grid-column: 1 / -1; font-size: 15px; font-weight: 300; color: #cfcfcf; }
.badge { display: inline-block; padding: 2px 10px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid #a9a9a9; color: #ddd; margin-left: 8px; }
.rel-row .badge { margin-left: 0; }
.badge.latest { border-color: #89CFF0; color: #fff; }
.badge.deprecated { border-color: #d9b45a; color: #d9b45a; }
.badge.withdrawn { border-color: #d96a5a; color: #d96a5a; }
.coming-soon.warn { border-left-color: #d9b45a; margin-bottom: 26px; font-size: 17px; }
.coming-soon { margin-bottom: 26px; }
.notes { margin-top: 44px; }
.notes h2:not(.dl-heading) { font-size: 20px; color: #fff; margin: 28px 0 8px; letter-spacing: 2px; text-transform: uppercase; }
.notes h3 { font-size: 16px; color: #fff; margin: 22px 0 6px; letter-spacing: 1.5px; text-transform: uppercase; }
.notes p, .notes li { font-size: 16px; font-weight: 300; line-height: 1.65; color: #d8d8d8; }
.notes p { margin: 10px 0; }
.notes ul { margin: 6px 0; padding-left: 22px; }
.notes code { font-size: 13.5px; color: #e8e8e8; background: rgba(255,255,255,.08); padding: 1px 5px; }
@media (max-width: 560px) { .rel-row { grid-template-columns: 1fr; } .rel-date { grid-column: 1; justify-self: start; } }

/* saved-report upload */
.upload { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-pick {
    display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 22px 24px; cursor: pointer;
    background: rgba(0,0,0,.6); border: 2px dashed rgba(255,255,255,.3); color: #fff;
}
.file-pick:hover, input[type=file]:focus-visible + .btn, .file-pick:focus-within { border-color: #89CFF0; }
button.btn { font-family: inherit; cursor: pointer; }
button.btn:disabled { opacity: .4; cursor: not-allowed; }
button.btn:disabled:hover { background: rgba(0,0,0,.55); color: #fff; }
.btn.secondary { border-color: rgba(255,255,255,.4); }
.result { margin: 0; padding: 14px 18px; font-size: 16px; width: 100%; background: rgba(0,0,0,.55); border-left: 3px solid #a9a9a9; color: #ddd; }
.result.ok { border-left-color: #89CFF0; color: #fff; }
.result.err { border-left-color: #d96a5a; color: #fff; }

/* ===== H_OFX product page: tabs, features, screenshots, before/after sliders, credits ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tools-h_ofx .hero-dl { margin-top: 20px; }
.tools-h_ofx .panel-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tabs { display: flex; gap: 4px; margin-top: 48px; border-bottom: 1px solid rgba(255,255,255,.4); }
.tab {
    font-family: inherit; font-size: 20px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase;
    color: #a9a9a9; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
    padding: 12px 20px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: #fff; background: rgba(0,0,0,.35); }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: #89CFF0; background: rgba(0,0,0,.55); }
.tab:focus-visible { outline: 2px solid #89CFF0; outline-offset: 2px; }
/* without JS the tabs do nothing, so hide them and show every panel */
html:not(.js-tabs) .tabs { display: none; }
.tab-panel { padding-top: 6px; }
.tab-panel:focus-visible { outline: 2px solid rgba(137,207,240,.6); outline-offset: 6px; }
.tab-panel > .download:first-child { margin-top: 30px; }
@media (max-width: 560px) {
    .tabs { margin-top: 36px; gap: 0; }
    .tab { flex: 1; font-size: 15px; letter-spacing: 2px; padding: 12px 4px; }
}

.tools-h_ofx .lead { margin-top: 30px; font-weight: 300; line-height: 1.65; }

.shot { margin: 30px 0 0; }
.shot-link { display: block; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.55); }
.shot figcaption, .compare figcaption { margin-top: 10px; font-size: 15px; font-weight: 300; letter-spacing: 1px; color: #cfcfcf; }
.shot-full { margin-left: 10px; font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.feature { padding: 20px 22px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); }
.feature h3 { font-size: 15px; margin: 0 0 8px; }
.feature p, .feature li { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.6; color: #cfcfcf; }
.feature ul { margin: 0; padding-left: 18px; }
.feature li + li { margin-top: 4px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

.examples { margin-top: 44px; }
.compare { margin: 0 0 40px; }
.compare-frame {
    position: relative; width: 100%; overflow: hidden; background: #000;
    border: 1px solid rgba(255,255,255,.08); cursor: ew-resize; touch-action: pan-y;
    user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare-label {
    position: absolute; top: 12px; padding: 3px 10px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: #fff; background: rgba(0,0,0,.6); pointer-events: none;
}
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; }
.compare-divider {
    position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px;
    background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.6); pointer-events: none;
}
.compare-handle {
    position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
    border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.55); box-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.compare-handle::before, .compare-handle::after {
    content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
    border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.compare-handle::before { left: 9px; border-right: 7px solid #fff; }
.compare-handle::after { right: 9px; border-left: 7px solid #fff; }
/* keyboard control: the range is invisible but focusable; its focus ring shows on the handle */
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare-range:focus-visible ~ .compare-divider .compare-handle { border-color: #89CFF0; box-shadow: 0 0 0 3px rgba(137,207,240,.6), 0 2px 10px rgba(0,0,0,.6); }
@media (max-width: 560px) { .compare-handle { width: 38px; height: 38px; } .compare-label { top: 8px; font-size: 11px; } }

.credits { margin: 30px 0 0; padding: 8px 24px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); }
.credits div { display: flex; align-items: baseline; gap: 24px; padding: 14px 0; }
.credits div + div { border-top: 1px solid rgba(255,255,255,.08); }
.credits dt { flex: 0 0 140px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #89CFF0; }
.credits dd { margin: 0; font-size: 22px; letter-spacing: 1px; color: #fff; }
@media (max-width: 560px) { .credits div { flex-direction: column; gap: 4px; } .credits dt { flex: none; } }
.tools-h_ofx .tool-hero .free-forever {
    display: inline-block; margin: 20px 0 0; padding: 10px 18px;
    border-left: 3px solid #89CFF0; background: rgba(0,0,0,.55);
    font-size: 17px; font-weight: 300; letter-spacing: 1px; color: #ddd;
}
.tools-h_ofx .free-forever strong { color: #fff; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-right: 6px; }
.tools-h_ofx .tool-hero .free-forever + .hero-dl { display: table; margin-top: 16px; }
@media (max-width: 560px) { .tools-h_ofx .tool-hero .free-forever + .hero-dl { margin-left: auto; margin-right: auto; } }
