/* elektromob.ru - стили поверх GeneratePress. Палитра временная (бирюзовый и графит), до утверждения дизайна. */
:root {
	--em-accent: #0F766E; --em-accent-dark: #115E59; --em-accent-soft: #ECFDF8;
	--em-text: #1F2937; --em-muted: #6B7280; --em-line: #E5E7EB; --em-radius: 8px;
	--em-warn-bg: #FFF7E6; --em-warn-fg: #B45309;
}
body { color: var(--em-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.65; }
a { color: var(--em-accent); } a:hover, a:focus { color: var(--em-accent-dark); }
.site-header { border-bottom: 1px solid var(--em-line); }
.main-title a { color: var(--em-text); font-weight: 700; }
.entry-content, .entry-header { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-title { font-size: 2rem; line-height: 1.25; }
.entry-content h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: 1.2rem; margin: 1.3em 0 .5em; }

/* Хлебные крошки */
.em-crumbs { font-size: .88rem; color: var(--em-muted); margin-bottom: 10px; }
.em-crumbs a { color: var(--em-muted); }

/* Таблицы: прокрутка на узком экране */
.em-table-wrap { overflow-x: auto; margin: 1.2em 0; -webkit-overflow-scrolling: touch; }
.em-table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.em-table-wrap th, .em-table-wrap td { border: 1px solid var(--em-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.em-table-wrap th { background: var(--em-accent-soft); font-weight: 600; }
.em-table-wrap tbody tr:nth-child(even) td { background: #FAFAFA; }
table.regions { font-size: .88rem; }
table.regions td:first-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 700px) { .em-table-wrap table { min-width: 560px; } }

/* Выноски «Совет», «Важно», «Факт» (seo-content-writing, references/callouts.md) */
.callout { margin: 22px 0; padding: 16px 18px 16px 62px; border-radius: var(--em-radius); border: 1px solid transparent; border-left-width: 4px; position: relative; line-height: 1.55; }
.callout::before { position: absolute; left: 16px; top: 14px; font-size: 1.8em; line-height: 1; }
.callout p { margin: 0; }
.callout--tip { background: var(--em-accent-soft); border-color: #BDE8DD; border-left-color: var(--em-accent); }
.callout--tip::before { content: "💡"; }
.callout--warn { background: var(--em-warn-bg); border-color: #F5D9A8; border-left-color: var(--em-warn-fg); color: #4A2A00; }
.callout--warn::before { content: "⚠️"; }
.callout--fact { background: #EEF4FB; border-color: #C7DAF0; border-left-color: #3B82C9; color: #1A3A5A; }
.callout--fact::before { content: "ℹ️"; }
@media (max-width: 500px) { .callout { padding: 14px 14px 14px 52px; } .callout::before { left: 12px; font-size: 1.5em; } }

/* Цитата (образец письма и т. п.) */
.entry-content blockquote { border-left: 4px solid var(--em-line); background: #F9FAFB; padding: 12px 16px; margin: 1.2em 0; font-style: normal; }

/* FAQ */
.faq { margin-top: 2em; padding-top: .5em; border-top: 1px solid var(--em-line); }
.faq h3 { font-size: 1.1rem; }

/* Кнопка «наверх» */
.em-totop { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--em-accent); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.em-totop[hidden] { display: none; }
.em-totop:hover, .em-totop:focus-visible { background: var(--em-accent-dark); color: #fff; }
@media (max-width: 600px) { .em-totop { right: 12px; bottom: 12px; } }

/* Списки страниц в разделах */
.em-hub { list-style: none; margin: 1em 0; padding: 0; display: grid; gap: 14px; }
.em-hub li { border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 14px 16px; }
.em-hub a { font-weight: 600; font-size: 1.08rem; text-decoration: none; }
.em-hub p { margin: 6px 0 0; color: var(--em-muted); font-size: .95rem; }
@media (min-width: 760px) { .em-hub { grid-template-columns: 1fr 1fr; } }

/* Главная */
.em-home-list { margin: .4em 0 .4em 1.2em; }
.em-home-list li { margin: 4px 0; }
.em-more { margin-top: .2em; font-size: .95rem; }
.home .entry-content > p:first-child { font-size: 1.1rem; }
