/* Bildro site: editor frame, guide content, footer and the info pages. */

/* editor fills the first screen; the guide follows below */
.editor { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.editor .app { flex: 1; min-height: 0; height: auto; }
.drawer-body, .p-body, .stage { overscroll-behavior: contain; }
.brand { color: inherit; text-decoration: none; }
.brand .mark { display: block; border-radius: 8px; }
.rail .rail-guide { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 0 8px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: 12px; }
.rail .rail-guide:hover { color: var(--ink); background: var(--fill); }

/* guide / SEO content */
.seo, .page { background: #fff; color: var(--ink); font-size: 16px; line-height: 1.65; }
.seo { border-top: 1px solid var(--line); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.seo .wrap { padding-top: 64px; padding-bottom: 56px; }
.seo section, .page section { margin-top: 52px; }
.seo h1, .page h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; margin: 6px 0 16px; font-weight: 700; }
.seo h2, .page h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 700; }
.seo h3, .page h3 { font-size: 16px; margin: 0 0 6px; font-weight: 650; }
.seo p, .page p { margin: 0 0 14px; color: #2B2B2B; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--red); margin: 0; }
.lead { font-size: 19px; color: var(--ink-2) !important; max-width: 680px; }
.cta { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; margin-top: 8px; }
.cta:hover { background: var(--red-hover); }
.seo code, .page code { background: var(--fill); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--fill-2); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 15px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }

.tpl-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tpl-list a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.tpl-list a:hover { border-color: var(--ink); }
.tpl-list b { display: block; font-size: 15px; }
.tpl-list span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.features > div { padding: 18px; border-radius: 14px; background: var(--fill-2); }
.features p { font-size: 14.5px; margin: 0; color: var(--ink-2); }

.sizes { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 6px; }
.sizes th, .sizes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sizes th { font-size: 13px; color: var(--ink-2); font-weight: 600; }

.tips { padding-left: 20px; margin: 0; }
.tips li { margin-bottom: 8px; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 28px 12px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 8px; font-size: 22px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); }

/* ad slots: hidden until ads are switched on in js/ads.js */
.ad-slot { margin: 44px 0 0; min-height: 100px; text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }

/* footer */
.site-foot { background: #fff; border-top: 1px solid var(--line); font-size: 14px; }
.site-foot .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding-top: 24px; padding-bottom: 28px; }
.site-foot .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot p { margin: 0 0 0 auto; color: var(--ink-3); }

/* info pages (about, privacy, terms, contact, 404) */
body.page-body { overflow: auto; background: #fff; }
.page-top { border-bottom: 1px solid var(--line); background: #fff; }
.page-top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.page-top .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.page-top .btn { text-decoration: none; }
.page .wrap { padding-top: 48px; padding-bottom: 72px; max-width: 760px; }
.page .updated { color: var(--ink-3) !important; font-size: 14px; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }
.page a { color: var(--red); }
.page section { margin-top: 36px; }
.page .box { background: var(--fill-2); border-radius: 14px; padding: 20px 22px; margin: 20px 0; }
.page .box p:last-child { margin: 0; }

@media (max-width: 960px) {
  .editor { height: auto; }
  .rail .rail-guide { margin-top: 0; flex: 1; min-width: 64px; justify-content: center; }
}
@media (max-width: 720px) {
  .tpl-list, .features { grid-template-columns: 1fr; }
  .seo .wrap { padding-top: 44px; }
  .site-foot p { margin-left: 0; width: 100%; }
  .wrap { padding: 0 16px; }
}
