/* oCompress site styles (tokens in theme.css). The tool (build/tools-src) styles itself under .oc-tool.
   The tool's markup reuses some class names (.oc-main, .oc-btn, .oc-i, .oc-note): site rules for those names and the
   element defaults below are kept out of #oc-tool with :where(:not(.oc-tool *)) (zero specificity), except inside
   the static skeleton (.oc-skel), which is site markup. */

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--oc-bg); color: var(--oc-text); font-family: var(--oc-font);
  font-size: 1rem; line-height: 1.65; font-feature-settings: 'cv11', 'ss03'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
:lang(th) body, :lang(ja) body, :lang(ko) body, :lang(zh-Hans) body { line-height: 1.8; }
:where(img, svg):where(:not(.oc-tool *)) { max-width: 100%; }
a { color: var(--oc-accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--oc-accent-hover); }
:focus-visible { outline: 2px solid var(--oc-accent); outline-offset: 2px; }
:where(a, summary):where(:not(.oc-tool *)):focus-visible { border-radius: 6px; }
button { font: inherit; color: inherit; }
:where(h1, h2, h3):where(:not(.oc-tool *)) { line-height: 1.22; letter-spacing: -.018em; margin: 0; font-weight: 700; text-wrap: balance; }
:lang(th) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.4; }
:where(p):where(:not(.oc-tool *)) { margin: 0 0 1em; text-wrap: pretty; }
code, kbd { font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace; font-size: .88em; }
code { background: var(--oc-surface-2); border: 1px solid var(--oc-border); border-radius: 6px; padding: .08em .38em; }
kbd { background: var(--oc-surface); border: 1px solid var(--oc-border-strong); border-bottom-width: 2px; border-radius: 6px; padding: .05em .42em; white-space: nowrap; }
.oc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.oc-i:where(:not(.oc-tool *), .oc-skel *) { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.oc-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--oc-accent); color: var(--oc-accent-text); font-weight: 600; text-decoration: none; }
.oc-skip:focus { top: 10px; color: var(--oc-accent-text); }
.oc-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 480px) { .oc-wrap { padding-inline: 16px; } }

/* Ezoic: consent dialog must not block clicks outside it (SPEC 5.4) */
#ez-cookie-dialog-wrapper, .ez-main-cmp-wrapper { pointer-events: none !important; }
#ez-cookie-dialog, #ez-cookie-dialog *, .ez-cmp-content, .ez-cmp-content * { pointer-events: auto !important; }
/* ad slots: no reserved height; spacing only once an ad is in */
[id^="ezoic-pub-ad-placeholder-"] { max-width: 100%; margin-inline: auto; text-align: center; overflow: hidden; }
[id^="ezoic-pub-ad-placeholder-"]:not(:empty) { margin-block: 28px; }

/* category colours */
.oc-cat--image { --c: var(--oc-c-image); --cb: var(--oc-c-image-bg); }
.oc-cat--video { --c: var(--oc-c-video); --cb: var(--oc-c-video-bg); }
.oc-cat--audio { --c: var(--oc-c-audio); --cb: var(--oc-c-audio-bg); }
.oc-cat--document { --c: var(--oc-c-document); --cb: var(--oc-c-document-bg); }
.oc-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--c); background: var(--cb); flex: none; }
.oc-tile .oc-i { width: 22px; height: 22px; }
.oc-tile--lg { width: 48px; height: 48px; border-radius: 14px; }
.oc-tile--lg .oc-i { width: 26px; height: 26px; }
.oc-badge { display: inline-grid; place-items: center; min-width: 44px; height: 26px; padding: 0 6px; border-radius: 7px; color: var(--c); background: var(--cb); font-size: .72rem; font-weight: 700; letter-spacing: .02em; flex: none; font-family: var(--oc-font); }
.oc-badge--lg { min-width: 54px; height: 54px; border-radius: 14px; font-size: .85rem; }

/* buttons */
.oc-btn:where(:not(.oc-tool *)) { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--oc-accent); color: var(--oc-accent-text); font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px -4px color-mix(in srgb, var(--oc-accent) 55%, transparent); transition: background .15s, transform .15s; }
.oc-btn:where(:not(.oc-tool *)):hover { background: var(--oc-accent-hover); color: var(--oc-accent-text); }
.oc-btn:where(:not(.oc-tool *)):active { transform: translateY(1px); }
.oc-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--oc-text); cursor: pointer; }
.oc-iconbtn:hover { background: var(--oc-surface-2); }

/* ---------------------------------------------------------------- header */
.oc-header { position: sticky; top: 0; z-index: 50; background: var(--oc-header-bg); border-bottom: 1px solid var(--oc-border); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.oc-header__in { position: relative; display: flex; align-items: center; gap: 12px; max-width: 1200px; height: 60px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 480px) { .oc-header__in { padding-inline: 12px 8px; gap: 4px; height: 56px; } }
.oc-logo { display: inline-flex; align-items: center; color: var(--oc-text); text-decoration: none; flex: none; border-radius: 8px; }
.oc-logo:hover { color: var(--oc-text); }
.oc-logo__svg { display: block; height: 30px; width: auto; }
@media (max-width: 360px) { .oc-logo__svg { height: 27px; } }
.oc-nav { flex: 1; min-width: 0; margin-left: 20px; }
.oc-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.oc-nav__btn, .oc-nav__link { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--oc-text); font-size: .94rem; font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap; }
.oc-nav__btn:hover, .oc-nav__link:hover, .oc-nav__btn[aria-expanded="true"] { background: var(--oc-surface-2); color: var(--oc-text); }
.oc-nav__btn.is-current, .oc-nav__link[aria-current="page"] { color: var(--oc-accent); }
.oc-nav__btn .oc-chev { width: 16px; height: 16px; opacity: .6; transition: transform .2s; }
.oc-nav__btn[aria-expanded="true"] .oc-chev { transform: rotate(180deg); }
.oc-hdr-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* mega menu */
.oc-mega { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(780px, calc(100vw - 32px)); display: grid; grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; column-gap: 20px;
  padding: 16px; border: 1px solid var(--oc-border); border-radius: 18px; background: var(--oc-surface); box-shadow: var(--oc-shadow-lg); animation: oc-pop .16s ease-out; }
.oc-mega[hidden] { display: none; }
@keyframes oc-pop { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
.oc-mega__cat { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 14px; background: var(--cb, var(--oc-surface-2)); color: var(--oc-text); text-decoration: none; position: relative; }
.oc-mega__cat .oc-tile { background: var(--oc-surface); }
.oc-mega__cat:hover { color: var(--oc-text); filter: saturate(1.15); }
.oc-mega__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.oc-mega__t b { font-weight: 650; font-size: .95rem; }
.oc-mega__t small { color: var(--oc-text-muted); font-size: .82rem; margin-top: 2px; }
.oc-mega__go { margin-top: auto; width: 18px; height: 18px; color: var(--oc-accent); }
.oc-mega__h { grid-column: 2; margin: 2px 0 6px 10px; font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--oc-text-muted); }
.oc-mega__grid { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; padding: 0; list-style: none; align-content: start; }
.oc-mega__grid a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--oc-text); text-decoration: none; }
.oc-mega__grid a:hover, .oc-mega__grid a[aria-current="page"] { background: var(--oc-surface-2); color: var(--oc-text); }

/* language menu */
.oc-lang { position: relative; }
.oc-lang__btn { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; border: 1px solid var(--oc-border); border-radius: 10px; background: var(--oc-surface); color: var(--oc-text); cursor: pointer; font-size: .85rem; font-weight: 600; }
.oc-lang__btn:hover, .oc-lang__btn[aria-expanded="true"] { border-color: var(--oc-border-strong); background: var(--oc-surface-2); }
.oc-lang__btn .oc-i { width: 18px; height: 18px; }
.oc-lang__btn .oc-chev { width: 14px; height: 14px; opacity: .6; }
.oc-lang__menu { position: absolute; right: 0; top: calc(100% + 8px); width: 500px; max-height: min(70vh, 520px); overflow: auto; padding: 12px; border: 1px solid var(--oc-border); border-radius: 16px; background: var(--oc-surface); box-shadow: var(--oc-shadow-lg); z-index: 60; overscroll-behavior: contain; }
.oc-lang__menu[hidden] { display: none; }
.oc-lang__h { margin: 2px 8px 8px; font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--oc-text-muted); }
.oc-lang__menu ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.oc-lang__menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--oc-text); text-decoration: none; font-size: .9rem; line-height: 1.3; }
.oc-lang__menu a:hover, .oc-lang__menu a:focus-visible { background: var(--oc-surface-2); color: var(--oc-text); }
.oc-lang__menu a[aria-current="true"] { background: var(--oc-accent-soft); color: var(--oc-text); font-weight: 600; }
.oc-lang__c { display: inline-grid; place-items: center; min-width: 28px; height: 20px; border-radius: 5px; background: var(--oc-surface-2); color: var(--oc-text-muted); font-size: .66rem; font-weight: 700; letter-spacing: .03em; }
.oc-lang__menu a[aria-current="true"] .oc-lang__c { background: var(--oc-accent); color: var(--oc-accent-text); }

/* theme button: moon in light, sun in dark */
.oc-theme-btn .oc-sun { display: none; }
:root[data-theme="dark"] .oc-theme-btn .oc-sun { display: block; }
:root[data-theme="dark"] .oc-theme-btn .oc-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .oc-theme-btn .oc-sun { display: block; }
  :root:not([data-theme="light"]) .oc-theme-btn .oc-moon { display: none; }
}

/* burger + mobile menu */
.oc-menu-btn { display: none; }
.oc-menu-btn .oc-i-close { display: none; }
.oc-menu-btn[aria-expanded="true"] .oc-i-close { display: block; }
.oc-menu-btn[aria-expanded="true"] .oc-i-menu { display: none; }
.oc-mnav { border-top: 1px solid var(--oc-border); background: var(--oc-surface); max-height: calc(100dvh - 56px); overflow: auto; overscroll-behavior: contain; box-shadow: var(--oc-shadow-lg); }
.oc-mnav[hidden] { display: none; }
.oc-mnav__in { max-width: 720px; margin-inline: auto; padding: 12px 16px 20px; }
.oc-mnav__grp { padding: 10px 0 12px; border-bottom: 1px solid var(--oc-border); }
.oc-mnav__cat { display: flex; align-items: center; gap: 12px; padding: 4px 4px 8px; color: var(--oc-text); font-weight: 650; text-decoration: none; }
.oc-mnav__cat .oc-tile { width: 34px; height: 34px; border-radius: 10px; }
.oc-mnav__cat .oc-tile .oc-i { width: 19px; height: 19px; }
.oc-mnav__go { margin-left: auto; width: 18px; height: 18px; color: var(--oc-text-muted); }
.oc-mnav__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 0 0 46px; list-style: none; }
.oc-mnav__chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--oc-border); color: var(--oc-text); font-size: .86rem; text-decoration: none; }
.oc-mnav__chips a[aria-current="page"], .oc-mnav__cat[aria-current="page"] { color: var(--oc-accent); border-color: var(--oc-accent); }
.oc-mnav__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.oc-mnav__links a { display: block; padding: 10px 4px; color: var(--oc-text); font-weight: 550; text-decoration: none; }
.oc-mnav__links a[aria-current="page"] { color: var(--oc-accent); }
@media (max-width: 1039px) {
  .oc-nav { display: none; }
  .oc-menu-btn { display: inline-grid; }
}
@media (min-width: 1040px) { .oc-mnav { display: none !important; } }
@media (max-width: 600px) {
  .oc-lang { position: static; }
  .oc-lang__menu { position: absolute; left: 10px; right: 10px; width: auto; top: calc(100% + 6px); max-height: calc(100dvh - 80px); }
  .oc-lang__menu ul { grid-template-columns: 1fr 1fr; }
  .oc-lang__btn { padding: 0 8px; }
}
@media (max-width: 360px) { .oc-lang__btn .oc-chev { display: none; } }

/* ---------------------------------------------------------------- hero + tool */
main.oc-main { display: block; min-height: 50vh; }
.oc-top { position: relative; padding-top: 22px; }
.oc-main--tool .oc-top::before { content: ''; position: absolute; inset: 0 0 auto; height: 360px; background: var(--oc-hero-glow); pointer-events: none; z-index: -1; }
.oc-hero { padding: 18px 0 8px; }
.oc-hero--tool { text-align: center; max-width: 820px; margin-inline: auto; padding-top: 8px; }
.oc-hero h1 { font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.7rem); letter-spacing: -.028em; }
.oc-lead { margin: 12px 0 0; color: var(--oc-text-muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.55; }
.oc-hero--tool .oc-lead { max-width: 640px; margin-inline: auto; }
.oc-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 12px; padding: 0; list-style: none; font-size: .84rem; color: var(--oc-text-muted); }
.oc-hero--tool .oc-crumbs ol { justify-content: center; }
.oc-crumbs li + li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 10px 1px 8px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.oc-crumbs a { color: var(--oc-text-muted); text-decoration: none; }
.oc-crumbs a:hover { color: var(--oc-accent); text-decoration: underline; }

.oc-tool-wrap { max-width: 880px; margin: 22px auto 0; }
/* Static skeleton until the tool script has rendered: drawn like the tool's empty state (card, dashed drop zone,
   privacy line) and exactly as tall as its first render (tools-dist 1.0.0 of 23 Oct: 310 px desktop, 344 px
   phones; zone 244/262 px, 12 px gap, privacy line 20/44 px) so the page does not jump when it mounts. The tool's
   ".oc-tool p { margin: 0 }" also hits these paragraphs, so spacing here comes from gap, not margins. */
.oc-skel { position: relative; display: flex; flex-direction: column; gap: 12px; height: 310px; padding: 16px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: var(--oc-shadow); overflow: hidden; }
.oc-noscript { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--oc-radius-sm); background: var(--oc-warm-soft); text-align: center; }
.oc-skel__zone { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 0; padding: 20px 16px; border: 2px dashed color-mix(in srgb, var(--oc-accent) 38%, var(--oc-border)); border-radius: var(--oc-radius-sm); background: color-mix(in srgb, var(--oc-accent-soft) 55%, var(--oc-surface)); text-align: center; }
.oc-skel__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--oc-surface); color: var(--oc-accent); box-shadow: 0 0 0 4px var(--oc-accent-soft); }
.oc-skel__ic .oc-i { width: 26px; height: 26px; }
.oc-skel__t { font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
.oc-skel__or { display: none; }
.oc-skel__btn { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--oc-accent); color: var(--oc-accent-text); font-weight: 600; font-size: .94rem; line-height: 1.4; }
.oc-skel__f { color: var(--oc-text-muted); font-size: .8125rem; line-height: 1.5; }
.oc-skel__p { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 20px; color: var(--oc-text-muted); font-size: .8125rem; line-height: 20px; }
.oc-skel__p .oc-i { width: 16px; height: 16px; color: var(--oc-success); }
.oc-skel__l { position: absolute; left: 0; right: 0; top: 26px; text-align: center; color: var(--oc-text-muted); font-size: .75rem; opacity: 0; animation: oc-fade .3s 1.2s forwards; }
@keyframes oc-fade { to { opacity: 1; } }
@media (max-width: 600px) {
  .oc-top { padding-top: 12px; }
  .oc-hero--tool { padding-top: 4px; }
  .oc-hero--tool .oc-crumbs ol { margin-bottom: 8px; }
  .oc-tool-wrap { margin-top: 16px; }
  .oc-skel { height: 344px; padding: 12px; border-radius: var(--oc-radius-sm); }
  .oc-skel__p { min-height: 44px; }
  .oc-skel__t { font-size: 1.125rem; }
}

/* trust row (home) and related-format chips */
.oc-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--oc-text-muted); font-size: .9rem; font-weight: 500; }
.oc-trust li { display: inline-flex; align-items: center; gap: 7px; }
.oc-trust .oc-i { width: 18px; height: 18px; color: var(--oc-accent); }
@media (max-width: 480px) { .oc-trust { gap: 6px 16px; font-size: .86rem; } .oc-trust .oc-i { width: 16px; height: 16px; } }
.oc-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; max-width: 880px; margin: 22px auto 0; }
.oc-chips__l { margin: 0; color: var(--oc-text-muted); font-size: .84rem; font-weight: 600; }
.oc-chips ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.oc-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--oc-border); border-radius: 999px; background: var(--oc-surface); color: var(--oc-text); font-size: .86rem; font-weight: 550; text-decoration: none; transition: border-color .15s, background .15s; }
.oc-chips a:hover { border-color: var(--oc-accent); background: var(--oc-accent-soft); color: var(--oc-text); }
.oc-chips a.is-cat .oc-i { width: 16px; height: 16px; color: var(--oc-accent); }

/* ---------------------------------------------------------------- home: category cards */
.oc-blockh { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); text-align: center; margin: 0 0 22px; }
.oc-catcards { margin: 56px 0 8px; }
.oc-catcards > ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.oc-catcard { display: flex; flex-direction: column; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: var(--oc-shadow); transition: border-color .15s, transform .15s; }
.oc-catcard:hover { border-color: var(--oc-border-strong); transform: translateY(-2px); }
.oc-catcard__a { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 10px; border-radius: var(--oc-radius) var(--oc-radius) 0 0; color: var(--oc-text); text-decoration: none; }
.oc-catcard__a:focus-visible { outline-offset: -2px; }
.oc-catcard__a:hover { color: var(--oc-text); }
.oc-catcard__a .oc-tile { margin-bottom: 10px; }
.oc-catcard__t { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.oc-catcard__a:hover .oc-catcard__t { color: var(--oc-accent); }
.oc-catcard__s { color: var(--oc-text-muted); font-size: .9rem; line-height: 1.45; }
.oc-catcard__f { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 8px 20px 20px; list-style: none; }
.oc-catcard__f a { display: inline-block; padding: 3px 8px; border-radius: 7px; background: var(--oc-surface-2); color: var(--oc-text-muted); font-size: .74rem; font-weight: 650; letter-spacing: .02em; text-decoration: none; }
.oc-catcard__f a:hover { background: var(--oc-accent-soft); color: var(--oc-accent); }
@media (max-width: 1099px) { .oc-catcards > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .oc-catcards { margin-top: 40px; }
  .oc-catcards > ul { grid-template-columns: 1fr; gap: 12px; }
  .oc-catcard__a { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px 16px 8px; }
  .oc-catcard__a .oc-tile { margin: 0; }
  .oc-catcard__t { flex: 1; }
  .oc-catcard__s { flex-basis: 100%; }
  .oc-catcard__f { padding: 4px 16px 16px; }
}

/* ---------------------------------------------------------------- content column + sidebar */
.oc-cols { margin-top: 8px; }
.oc-content { max-width: 760px; margin-inline: auto; font-size: 1.04rem; }
.oc-aside { display: none; }
@media (min-width: 1200px) {
  .oc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
  .oc-cols .oc-content { margin-inline: 0; }
  .oc-aside { display: flex; flex-direction: column; gap: 24px; padding-top: 56px; min-height: 100%; }
  .oc-aside > :last-child { position: sticky; top: 84px; }
}
.oc-sec { margin: 56px 0 0; }
.oc-sec > h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin: 0 0 16px; }
.oc-sec h3 { font-size: 1.12rem; margin: 26px 0 8px; letter-spacing: -.01em; }
.oc-content ul:not([class]), .oc-content ol:not([class]) { padding-left: 1.3em; margin: 0 0 1.1em; }
.oc-content li { margin: .35em 0; }
.oc-content li::marker { color: var(--oc-accent); }
.oc-content strong { font-weight: 650; }
.oc-content > [id^="ezoic-pub-ad-placeholder-"] { margin-block: 8px; }

/* steps: built-in "how to" (tool pages: three cards) and <div class="steps"> from content (a numbered list of any
   length, so one row per step with the number on the side) */
.oc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 8px 0 1.2em; padding: 0; list-style: none; }
.oc-steps > li { position: relative; margin: 0; padding: 18px 18px 16px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); }
.oc-steps h3 { margin: 12px 0 4px; font-size: 1.02rem; }
.oc-steps p { margin: 0; color: var(--oc-text-muted); font-size: .95rem; line-height: 1.55; }
.oc-steps__n, .oc-steps--content li::before { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--oc-accent-soft); color: var(--oc-accent); font-weight: 700; font-size: .95rem; line-height: 1; }
.oc-steps--content ol { display: grid; gap: 10px; margin: 8px 0 1.2em; padding: 0; list-style: none; counter-reset: oc-step; }
.oc-steps--content li { position: relative; margin: 0; padding: 14px 18px 14px 64px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); color: var(--oc-text-muted); font-size: .98rem; line-height: 1.6; counter-increment: oc-step; }
.oc-steps--content li::before { content: counter(oc-step); position: absolute; left: 18px; top: 14px; }
.oc-steps--content li > strong:first-child { display: block; margin-bottom: 2px; color: var(--oc-text); }
@media (max-width: 480px) { .oc-steps--content li { padding: 14px 14px 14px 58px; } .oc-steps--content li::before { left: 14px; } }

/* home: why grid */
/* five items: 3 + 2 (6-column grid), 2 + 2 + 1 on small tablets, one column on phones */
.oc-why__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.oc-why__grid li { grid-column: span 2; padding: 18px; border-radius: var(--oc-radius); background: var(--oc-surface-2); }
.oc-why__grid li:nth-child(4):nth-last-child(2), .oc-why__grid li:nth-child(5):last-child { grid-column: span 3; }
@media (max-width: 680px) {
  .oc-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-why__grid li, .oc-why__grid li:nth-child(4):nth-last-child(2) { grid-column: span 1; }
  .oc-why__grid li:nth-child(5):last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .oc-why__grid { grid-template-columns: 1fr; } }
/* home: steps and "why" run full width under the category cards, headings centred like the cards' heading */
.oc-home > .oc-sec { margin-top: 64px; }
.oc-home > .oc-sec > h2 { text-align: center; margin-bottom: 22px; }
.oc-home .oc-steps { gap: 16px; }
.oc-home .oc-steps > li { padding: 22px 22px 20px; box-shadow: var(--oc-shadow); }
@media (min-width: 1100px) {
  .oc-home .oc-why__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .oc-home .oc-why__grid li, .oc-home .oc-why__grid li:nth-child(4):nth-last-child(2), .oc-home .oc-why__grid li:nth-child(5):last-child { grid-column: auto; }
}
@media (max-width: 560px) { .oc-home > .oc-sec { margin-top: 48px; } }
.oc-why__grid .oc-i { width: 26px; height: 26px; color: var(--oc-accent); }
.oc-why__grid h3 { margin: 10px 0 4px; font-size: 1rem; }
.oc-why__grid p { margin: 0; color: var(--oc-text-muted); font-size: .93rem; line-height: 1.55; }

/* category page: format grid */
.oc-fgrid ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.oc-fgrid a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: center; height: 100%; padding: 14px 36px 14px 14px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); color: var(--oc-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.oc-fgrid a:hover { border-color: var(--oc-accent); box-shadow: var(--oc-shadow); color: var(--oc-text); }
.oc-fgrid .oc-badge { grid-row: 1 / 3; }
.oc-fgrid__t { font-weight: 650; align-self: end; line-height: 1.3; }
.oc-fgrid__s { color: var(--oc-text-muted); font-size: .86rem; line-height: 1.4; align-self: start; }
.oc-fgrid__go { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--oc-text-muted); transition: transform .15s, color .15s; }
.oc-fgrid a:hover .oc-fgrid__go { color: var(--oc-accent); transform: translateX(2px); }

/* content blocks */
.oc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 1.2em; padding: 0; list-style: none; }
.oc-cards > li { margin: 0; padding: 16px 18px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); }
.oc-cards h3 { margin: 0 0 4px; font-size: 1rem; }
.oc-cards p { margin: 0 0 .5em; color: var(--oc-text-muted); font-size: .95rem; line-height: 1.55; }
.oc-cards p:last-child { margin-bottom: 0; }
.oc-checks { margin: 0 0 1.1em; padding: 0; list-style: none; }
.oc-checks li { position: relative; margin: .45em 0; padding-inline-start: 30px; }
.oc-checks .oc-i { position: absolute; inset-inline-start: 0; top: .2em; width: 20px; height: 20px; color: var(--oc-success); stroke-width: 2.2; }
.oc-note:where(:not(.oc-tool *)) { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--oc-accent); border-radius: 4px var(--oc-radius-sm) var(--oc-radius-sm) 4px; background: var(--oc-accent-soft); }
.oc-note p:last-child, .oc-note ul:last-child { margin-bottom: 0; }
.oc-table { margin: 8px 0 1.3em; overflow-x: auto; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-sm); background: var(--oc-surface); -webkit-overflow-scrolling: touch; }
.oc-table table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.oc-table th, .oc-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--oc-border); }
.oc-table th { background: var(--oc-surface-2); font-weight: 650; font-size: .86rem; white-space: nowrap; }
.oc-table tbody tr:last-child td { border-bottom: 0; }
.oc-table tbody tr:hover td { background: color-mix(in srgb, var(--oc-surface-2) 55%, transparent); }
@media (max-width: 600px) {
  .oc-table th, .oc-table td { padding: 9px 11px; } .oc-table th { white-space: normal; }
  /* 3+ columns: one card per row, the column heading (data-label) on the left of each value */
  .oc-table--stack { overflow: visible; border: 0; border-radius: 0; background: none; }
  .oc-table--stack :is(table, tbody, tr, td, th) { display: block; }
  .oc-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .oc-table--stack tr { margin: 0 0 10px; padding: 4px 14px 8px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-sm); background: var(--oc-surface); }
  .oc-table--stack tbody :is(td, th) { position: relative; padding: 7px 0 7px calc(36% + 12px); border: 0; border-top: 1px solid var(--oc-border); min-height: 2.2em; }
  .oc-table--stack tbody :is(td, th)::before { content: attr(data-label); position: absolute; left: 0; top: 8px; width: 36%; color: var(--oc-text-muted); font-size: .8rem; font-weight: 600; line-height: 1.4; }
  .oc-table--stack tbody tr > :first-child { padding: 9px 0 7px; border-top: 0; font-weight: 650; font-size: 1rem; }
  .oc-table--stack tbody tr > :first-child::before { content: none; }
  .oc-table--stack tbody tr:hover td { background: none; }
}

/* FAQ accordion */
.oc-faqs { margin: 8px 0 1.2em; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); overflow: hidden; }
.oc-faq + .oc-faq { border-top: 1px solid var(--oc-border); }
.oc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.oc-faq summary::-webkit-details-marker { display: none; }
.oc-faq summary:hover { background: var(--oc-surface-2); }
.oc-faq__q { min-width: 0; }
.oc-faq summary .oc-chev { flex: none; width: 18px; height: 18px; color: var(--oc-text-muted); transition: transform .2s; }
.oc-faq[open] summary .oc-chev { transform: rotate(180deg); color: var(--oc-accent); }
.oc-faq > :not(summary) { margin: 0; padding: 0 18px 12px; color: var(--oc-text); }
.oc-faq > :not(summary):last-child { padding-bottom: 18px; }
.oc-faq > ul, .oc-faq > ol { padding-left: 38px; }

/* share row + end of tool pages */
.oc-endrow { max-width: 1200px; }
.oc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 56px 0 8px; padding: 18px 20px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); }
@media (min-width: 1200px) { .oc-share { max-width: 760px; } }
@media (max-width: 1199px) { .oc-share { max-width: 760px; margin-inline: auto; } }
.oc-share__t { margin: 0; font-weight: 650; }
.oc-share__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.oc-sbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--oc-border); background: var(--oc-surface); color: var(--oc-text); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.oc-sbtn svg { width: 19px; height: 19px; fill: currentColor; }
.oc-sbtn--copy svg { fill: none; }
.oc-sbtn:hover { color: #fff; border-color: transparent; }
.oc-sbtn--facebook:hover { background: #1877f2; } .oc-sbtn--x:hover { background: #000; } .oc-sbtn--whatsapp:hover { background: #1fa855; }
.oc-sbtn--telegram:hover { background: #229ed9; } .oc-sbtn--reddit:hover { background: #ff4500; } .oc-sbtn--copy:hover { background: var(--oc-accent); color: var(--oc-accent-text); }
@media (max-width: 480px) { .oc-share__btns { margin-left: 0; } .oc-sbtn { width: 40px; height: 40px; } }
.oc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--oc-text); color: var(--oc-bg); font-weight: 600; font-size: .92rem; box-shadow: var(--oc-shadow-lg); animation: oc-pop2 .2s ease-out; }
@keyframes oc-pop2 { from { opacity: 0; transform: translate(-50%, 6px); } }

/* ---------------------------------------------------------------- articles, contact, legal */
.oc-article { max-width: 808px; padding-top: 18px; padding-bottom: 24px; }
.oc-article .oc-hero { padding-bottom: 4px; }
.oc-article .oc-content { margin: 0; }
.oc-article .oc-sec:first-child { margin-top: 36px; }
.oc-legal { font-size: 1rem; }
.oc-legal .oc-sec { margin-top: 40px; }
.oc-related { margin: 56px 0 0; padding: 22px 22px 16px; border-radius: var(--oc-radius); background: var(--oc-surface-2); }
.oc-related h2 { font-size: 1.1rem; margin: 0 0 10px; }
.oc-related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.oc-related a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--oc-border); color: var(--oc-text); font-weight: 550; text-decoration: none; }
.oc-related a:hover { color: var(--oc-accent); }
.oc-related .oc-i { width: 17px; height: 17px; color: var(--oc-text-muted); }

/* feedback form (markup of the shared feedback widget) */
.oc-formcard { margin: 28px 0 0; padding: 24px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: var(--oc-shadow); }
.oc-formcard form { display: grid; gap: 16px; }
.oc-formcard .fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .oc-formcard { padding: 18px 16px; } .oc-formcard .fb-row { grid-template-columns: 1fr; } }
.oc-formcard .fb-field { display: grid; gap: 6px; min-width: 0; }
.oc-formcard label { font-weight: 600; font-size: .92rem; }
.oc-formcard .fb-note { color: var(--oc-text-muted); font-weight: 400; }
.oc-formcard input[type="email"], .oc-formcard input[type="text"], .oc-formcard textarea { width: 100%; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--oc-text-muted) 72%, var(--oc-surface)); border-radius: var(--oc-radius-sm); background: var(--oc-bg); color: var(--oc-text); font: inherit; }
.oc-formcard textarea { min-height: 160px; resize: vertical; }
.oc-formcard input:focus, .oc-formcard textarea:focus { outline: 2px solid var(--oc-accent); outline-offset: 0; border-color: var(--oc-accent); }
.oc-formcard input[type="file"] { max-width: 100%; font-size: .9rem; color: var(--oc-text-muted); }
.oc-formcard input[type="file"]::file-selector-button { margin-inline-end: 12px; padding: 8px 16px; border: 1px solid var(--oc-border-strong); border-radius: 999px; background: var(--oc-surface-2); color: var(--oc-text); font: inherit; font-weight: 600; cursor: pointer; }
.oc-formcard input[type="file"]::file-selector-button:hover { border-color: var(--oc-accent); }
.oc-formcard button[type="submit"] { justify-self: start; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--oc-accent); color: var(--oc-accent-text); font-weight: 650; cursor: pointer; }
.oc-formcard button[type="submit"]:hover { background: var(--oc-accent-hover); }
.oc-formcard [data-feedback-status] { margin: 0; min-height: 1.4em; color: var(--oc-text-muted); }

/* 404 */
.oc-404 { max-width: 720px; padding-block: 56px 72px; text-align: center; }
.oc-404__code { margin: 0 0 4px; font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--oc-brand), var(--oc-accent) 55%, var(--oc-warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oc-404 h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.oc-404 .oc-lead { margin: 12px auto 26px; max-width: 520px; }
.oc-404__more { margin: 36px 0 12px; color: var(--oc-text-muted); font-weight: 600; }
.oc-404__cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.oc-404__cats a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); color: var(--oc-text); font-weight: 600; font-size: .92rem; text-decoration: none; }
.oc-404__cats a:hover { border-color: var(--oc-accent); color: var(--oc-text); }

/* ---------------------------------------------------------------- footer */
.oc-foot { margin-top: 64px; padding: 48px 0 28px; border-top: 1px solid var(--oc-border); background: var(--oc-surface-2); font-size: .92rem; }
.oc-foot__top { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: 28px 24px; }
.oc-foot__brand p { margin: 14px 0 0; color: var(--oc-text-muted); line-height: 1.55; max-width: 300px; }
.oc-foot__private { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.oc-foot__private .oc-i { width: 17px; height: 17px; color: var(--oc-success); }
.oc-foot__col h2 { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--oc-text-muted); }
.oc-foot__col h2 a { color: inherit; text-decoration: none; }
.oc-foot__col h2 a:hover { color: var(--oc-accent); }
.oc-foot__col .oc-foot__h2b { margin-top: 22px; }
.oc-foot__col ul { margin: 0; padding: 0; list-style: none; }
.oc-foot__col li { margin: 0 0 7px; line-height: 1.4; }
.oc-foot__col a { color: var(--oc-text); text-decoration: none; }
.oc-foot__col a:hover { color: var(--oc-accent); text-decoration: underline; }
.oc-foot__en { color: var(--oc-text-muted); font-size: .85em; }
.oc-foot__langs { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--oc-border); }
.oc-foot__langs ul { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.oc-foot__langs a { display: inline-block; padding: 3px 9px; border-radius: 8px; color: var(--oc-text-muted); font-size: .86rem; text-decoration: none; }
.oc-foot__langs a:hover { background: var(--oc-surface); color: var(--oc-text); }
.oc-foot__langs a[aria-current="true"] { background: var(--oc-surface); color: var(--oc-text); font-weight: 600; }
.oc-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 20px; color: var(--oc-text-muted); font-size: .85rem; }
.oc-foot__bottom p { margin: 0; }
.oc-logo--foot .oc-logo__svg { height: 28px; }
@media (max-width: 1099px) { .oc-foot__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .oc-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .oc-foot { padding-top: 36px; } .oc-foot__top { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }

/* ---------------------------------------------------------------- motion, print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .oc-header, .oc-skip, .oc-tool-wrap, .oc-chips, .oc-trust, .oc-share, .oc-aside, .oc-foot__langs, .oc-related, .oc-formcard, [id^="ezoic-pub-ad-placeholder-"], #ezoic-privacy-policy-embed { display: none !important; }
  body { background: #fff; color: #000; }
  .oc-foot { background: none; border: 0; }
  .oc-faq > :not(summary) { display: block; }
  a { color: inherit; }
}
