/* InstantDownload v1.1: single stylesheet, system fonts, inline SVG icons, no JavaScript. */
:root {
	--idl-bg: #ffffff;
	--idl-surface: #f6f7fb;
	--idl-card: #ffffff;
	--idl-text: #141a26;
	--idl-muted: #556070;
	--idl-border: #e1e5ee;
	--idl-accent: #4f46e5;
	--idl-accent-2: #7c3aed;
	--idl-accent-text: #ffffff;
	--idl-ig: #d6249f;
	--idl-yt: #e11d2e;
	--idl-fb: #1877f2;
	--idl-radius: 14px;
	--idl-radius-sm: 8px;
	--idl-shadow: 0 1px 2px rgba(20, 26, 38, .06), 0 8px 24px rgba(20, 26, 38, .06);
	--idl-shadow-lg: 0 2px 4px rgba(20, 26, 38, .06), 0 18px 48px rgba(79, 70, 229, .16);
	--idl-max: 72rem;
	--idl-read: 46rem;
	--idl-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root {
		--idl-bg: #0d1117;
		--idl-surface: #151b25;
		--idl-card: #171e2a;
		--idl-text: #e8edf4;
		--idl-muted: #9aa7b8;
		--idl-border: #2a3443;
		--idl-accent: #8b85ff;
		--idl-accent-2: #a78bfa;
		--idl-accent-text: #0d1117;
		--idl-ig: #f06bc4;
		--idl-yt: #ff6674;
		--idl-fb: #5aa2ff;
		--idl-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
		--idl-shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .45);
	}
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--idl-bg); color: var(--idl-text); font: 1rem/1.65 var(--idl-font); }
img, video { max-width: 100%; height: auto; }
a { color: var(--idl-accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--idl-accent); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: var(--idl-max); margin-inline: auto; padding-inline: 1rem; }
.icon { flex: none; vertical-align: -0.2em; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; overflow: visible; position: fixed; top: .5rem; left: .5rem; z-index: 100; background: var(--idl-accent); color: var(--idl-accent-text); padding: .6rem 1rem; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--idl-bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--idl-border); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; padding-block: .7rem; }
.site-title { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.site-title a { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--idl-accent), var(--idl-accent-2)); box-shadow: 0 4px 12px rgba(79, 70, 229, .35); }
.logo-mark .icon { vertical-align: 0; }
.custom-logo { display: block; width: auto; max-height: 44px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.primary-nav .menu a { display: inline-block; padding: .45rem .85rem; border-radius: 999px; color: var(--idl-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.primary-nav .menu a:hover { background: var(--idl-surface); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: color-mix(in srgb, var(--idl-accent) 14%, transparent); color: var(--idl-accent); }

/* ---------- Layout ---------- */
.site-main.container { padding-block: 1.25rem 3.5rem; min-height: 60vh; }
.site-main:not(.container) { min-height: 60vh; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1, .hero h1 { margin: 0 0 .6rem; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.lead { font-size: 1.15rem; color: var(--idl-muted); max-width: var(--idl-read); }
.lead p { margin: 0 0 .75rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .75rem; padding: .25rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--idl-accent); background: color-mix(in srgb, var(--idl-accent) 12%, transparent); }
.section { margin-block: 3rem; }
.section h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.25; margin: 0 0 1rem; letter-spacing: -.01em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.section-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; }
.section-link:hover { text-decoration: underline; }
.entry-updated, .entry-meta { color: var(--idl-muted); font-size: .9rem; margin: .25rem 0 0; }
.entry-image { margin: 0 0 1.5rem; }
.entry-image img { border-radius: var(--idl-radius); }
.entry-content { max-width: var(--idl-read); font-size: 1.05rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--idl-border); padding: .45rem .65rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--idl-border); background:
	radial-gradient(60rem 28rem at 12% -10%, color-mix(in srgb, var(--idl-accent) 22%, transparent), transparent 60%),
	radial-gradient(48rem 24rem at 95% 0%, color-mix(in srgb, var(--idl-ig) 16%, transparent), transparent 60%),
	var(--idl-bg); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-inline: auto; }
.hero-tool { width: 100%; max-width: 44rem; margin: 1.5rem auto 0; padding: 1.1rem; text-align: left; background: var(--idl-card); border: 1px solid var(--idl-border); border-radius: calc(var(--idl-radius) + 4px); box-shadow: var(--idl-shadow-lg); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.5rem 0 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: var(--idl-card); border: 1px solid var(--idl-border); font-size: .9rem; font-weight: 600; }
.chip-instagram .icon { color: var(--idl-ig); }
.chip-youtube .icon { color: var(--idl-yt); }
.chip-facebook .icon { color: var(--idl-fb); }

/* Plugin tool box (InstantDownload Core) restyled; selectors are more specific than the plugin's own. */
.hero-tool .idl-core, .tool-box .idl-core { max-width: none; gap: .7rem; }
.hero-tool .idl-core label, .tool-box .idl-core label { font-size: .95rem; color: var(--idl-muted); }
.hero-tool .idl-core .idl-core-row, .tool-box .idl-core .idl-core-row { gap: .6rem; }
.hero-tool .idl-core input[type=url], .tool-box .idl-core input[type=url] { padding: .9rem 1rem; font-size: 1.05rem; border-radius: 12px; border: 2px solid var(--idl-border); background: var(--idl-bg); color: var(--idl-text); }
.hero-tool .idl-core input[type=url]:focus, .tool-box .idl-core input[type=url]:focus { border-color: var(--idl-accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--idl-accent) 22%, transparent); }
.hero-tool .idl-core button, .tool-box .idl-core button { padding: .9rem 1.7rem; font-size: 1.05rem; border-radius: 12px; background: linear-gradient(135deg, var(--idl-accent), var(--idl-accent-2)); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .35); transition: transform .12s ease, box-shadow .12s ease; }
.hero-tool .idl-core button:hover, .tool-box .idl-core button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79, 70, 229, .4); }
.hero-tool .idl-core-help, .tool-box .idl-core-help, .hero-tool .idl-core-note { color: var(--idl-muted); opacity: 1; font-size: .85rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .9rem; margin-bottom: 1.1rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .25rem; color: var(--idl-muted); }
.breadcrumbs a { color: var(--idl-muted); display: inline-block; padding-block: .3rem; }
.breadcrumbs [aria-current] { color: var(--idl-text); font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; background: var(--idl-card); border: 1px solid var(--idl-border); border-radius: var(--idl-radius); padding: 1.2rem 1.3rem; box-shadow: var(--idl-shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--idl-accent) 45%, var(--idl-border)); box-shadow: var(--idl-shadow-lg); }
.card .card-title { margin: 0 0 .45rem; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--idl-radius); }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--idl-accent); outline-offset: 2px; }
.card-text { margin: 0 0 .9rem; color: var(--idl-muted); }
.card-meta { margin: 0 0 .4rem; font-size: .85rem; color: var(--idl-muted); }
.card-kicker { margin: 0 0 .15rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--idl-muted); font-weight: 700; }
.card-foot { margin: auto 0 0; display: flex; align-items: center; justify-content: space-between; }
.card-go { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--idl-surface); color: var(--idl-accent); transition: background .15s ease, color .15s ease, transform .15s ease; }
.card:hover .card-go { background: var(--idl-accent); color: var(--idl-accent-text); transform: translateX(3px); }
.card-image { display: block; margin: -1.2rem -1.3rem 1rem; position: relative; z-index: 1; }
.card-image img { display: block; width: 100%; height: auto; border-radius: var(--idl-radius) var(--idl-radius) 0 0; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .card-title { margin-top: .1rem; }
.badge { display: inline-block; margin: 0; padding: .15rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--idl-border); color: var(--idl-muted); background: var(--idl-surface); }
.badge-tool { background: color-mix(in srgb, #16a34a 14%, transparent); color: #166534; border-color: color-mix(in srgb, #16a34a 35%, transparent); }
@media (prefers-color-scheme: dark) { .badge-tool { color: #5be08b; } }

/* Platform accents */
.platform-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: .8rem; border-radius: 14px; color: #fff; background: var(--idl-accent); }
.platform-instagram .platform-icon { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.platform-youtube .platform-icon { background: linear-gradient(135deg, #ff4b4b, #cc0f1f); }
.platform-facebook .platform-icon { background: linear-gradient(135deg, #3b9bff, #1665d8); }
.platform-other .platform-icon { background: linear-gradient(135deg, var(--idl-accent), var(--idl-accent-2)); }
.page-header-tool.platform-instagram .eyebrow { color: color-mix(in srgb, var(--idl-ig) 68%, var(--idl-text)); background: color-mix(in srgb, var(--idl-ig) 12%, transparent); }
.page-header-tool.platform-youtube .eyebrow { color: color-mix(in srgb, var(--idl-yt) 68%, var(--idl-text)); background: color-mix(in srgb, var(--idl-yt) 12%, transparent); }
.page-header-tool.platform-facebook .eyebrow { color: color-mix(in srgb, var(--idl-fb) 68%, var(--idl-text)); background: color-mix(in srgb, var(--idl-fb) 12%, transparent); }

/* ---------- How it works ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: 1fr; counter-reset: step; }
.how li { position: relative; padding: 1.3rem; background: var(--idl-surface); border: 1px solid var(--idl-border); border-radius: var(--idl-radius); counter-increment: step; }
.how li::after { content: counter(step); position: absolute; top: 1rem; right: 1.2rem; font-size: 2.6rem; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--idl-accent) 18%, transparent); }
.how-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: .7rem; border-radius: 12px; color: var(--idl-accent); background: color-mix(in srgb, var(--idl-accent) 13%, transparent); }
.how h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.how p { margin: 0; color: var(--idl-muted); }

.responsible { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; background: var(--idl-surface); border: 1px solid var(--idl-border); border-radius: var(--idl-radius); }
.responsible h2 { font-size: 1.2rem; margin-bottom: .35rem; }
.responsible p { margin: 0; color: var(--idl-muted); }
.responsible-icon { color: var(--idl-accent); }

/* ---------- Tool landing page ---------- */
.tool-box { margin-block: 1.75rem; padding: 1.3rem; border: 1px solid var(--idl-border); border-radius: calc(var(--idl-radius) + 4px); background: var(--idl-card); box-shadow: var(--idl-shadow-lg); min-height: 11rem; position: relative; }
.tool-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: calc(var(--idl-radius) + 4px) calc(var(--idl-radius) + 4px) 0 0; background: linear-gradient(90deg, var(--idl-accent), var(--idl-accent-2)); }
.tool-box h2 { margin: .25rem 0 .9rem; font-size: 1.25rem; }
.notice { border-left: 4px solid var(--idl-accent); padding: .1rem 1rem; background: var(--idl-surface); border-radius: var(--idl-radius-sm); }
.notice p { margin: .55rem 0; }
.notice-admin { font-size: .9rem; color: var(--idl-muted); }
.steps { padding-left: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: .15rem 0 .15rem 2.6rem; margin-bottom: .7rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-size: .9rem; font-weight: 800; color: var(--idl-accent); background: color-mix(in srgb, var(--idl-accent) 14%, transparent); }
.tool-page .section ul { padding-left: 1.2rem; }
.tool-page .section li { margin-bottom: .35rem; }
.link-list { padding-left: 1.1rem; }

/* FAQ */
.faq details { border: 1px solid var(--idl-border); border-radius: var(--idl-radius-sm); padding: .75rem 1rem; margin-bottom: .6rem; background: var(--idl-card); }
.faq details[open] { border-color: color-mix(in srgb, var(--idl-accent) 40%, var(--idl-border)); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .65rem 0 .2rem; color: var(--idl-muted); }

/* Ad slot (min-height set inline from the Customizer) */
.ad-slot { margin-block: 1.5rem; display: flex; align-items: center; justify-content: center; overflow: hidden; contain: layout; }
.widget-title { display: none; }

/* ---------- Forms, pagination ---------- */
.search-form { display: flex; gap: .5rem; max-width: 30rem; margin-top: .85rem; }
.search-field { flex: 1; min-width: 0; padding: .7rem .9rem; font: inherit; color: inherit; background: var(--idl-bg); border: 2px solid var(--idl-border); border-radius: 12px; }
.button { padding: .7rem 1.2rem; font: inherit; font-weight: 700; background: linear-gradient(135deg, var(--idl-accent), var(--idl-accent-2)); color: #fff; border: 0; border-radius: 12px; cursor: pointer; }
.navigation { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.nav-links a, .nav-links span { padding: .4rem .85rem; border: 1px solid var(--idl-border); border-radius: 10px; text-decoration: none; background: var(--idl-card); }
.nav-links .current { background: var(--idl-accent); color: var(--idl-accent-text); border-color: transparent; }
.post-navigation .nav-links { justify-content: space-between; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; background: #0f1420; color: #c9d2e0; padding-block: 2.5rem 1.5rem; font-size: .95rem; }
.site-footer a { color: #e8edf8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.footer-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; font-weight: 800; font-size: 1.1rem; color: #fff; }
.footer-title .logo-mark { width: 30px; height: 30px; }
.footer-heading { margin: 0 0 .7rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #8d99ae; }
.footer-note { margin: 0; max-width: 34rem; color: #9aa7bb; }
.site-footer .menu { flex-direction: column; gap: .35rem; }
.footer-bottom { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid #232b3b; color: #8d99ae; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 40rem) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.how { grid-template-columns: repeat(3, 1fr); }
	.footer-inner { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 62rem) {
	.card-grid { grid-template-columns: repeat(3, 1fr); }
	.container { padding-inline: 1.5rem; }
}
@media (max-width: 40rem) {
	.primary-nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -.25rem; padding-inline: .25rem; }
	.primary-nav::-webkit-scrollbar { display: none; }
	.primary-nav .menu { flex-wrap: nowrap; white-space: nowrap; }
}
@media (max-width: 30rem) {
	.header-inner { justify-content: center; }
	.hero-tool { padding: .85rem; }
	.hero-tool .idl-core button, .tool-box .idl-core button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
	.card:hover { transform: none; }
}
@media print {
	.site-header, .site-footer, .ad-slot, .skip-link, .hero-tool { display: none; }
}
