/* Epaper One — theme-safe frontend (shortcodes, homepages, clip public). All rules scoped. */
.epo-canvas,
.epo-shortcode-grid,
.epo-shortcode-archive,
.epo-shortcode-newspapers,
.epo-shortcode-empty,
.epo-inline-help,
.epo-search-form,
.epo-calendar-widget,
.epo-edition-card,
.epo-clip-public-body { margin: 0; background: #f1f5f9; font-family: system-ui, sans-serif; }
.epo-clip-public-topbar { display: flex; align-items: center; justify-content: space-between; max-width: 900px; margin: 0 auto; padding: 16px; }
.epo-clip-public-logo { max-height: 40px; width: auto; }
.epo-clip-public-home { color: #1a365d; text-decoration: none; font-weight: 600; }
.epo-clip-share-btn--facebook { background: #1877f2; color: #fff; }
.epo-clip-share-btn--twitter { background: #1da1f2; color: #fff; }
.epo-clip-share-btn--whatsapp { background: #25d366; color: #fff; }

.epo-shortcode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 16px 0; }
.epo-shortcode-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.epo-shortcode-empty { color: #64748b; font-style: italic; margin: 12px 0; }
.epo-inline-help { font-size: 0.9em; color: #64748b; margin: 8px 0 16px; line-height: 1.5; }
.epo-edition-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.epo-edition-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.epo-edition-link { display: block; text-decoration: none; color: inherit; }
.epo-edition-thumb { aspect-ratio: 3/4; background: #f1f5f9; overflow: hidden; }
.epo-edition-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.epo-edition-thumb--empty { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; min-height: 180px; }
.epo-edition-body { padding: 14px 16px; }
.epo-edition-paper { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.epo-edition-title { display: block; font-size: 16px; font-weight: 600; margin: 4px 0; color: #1e293b; }
.epo-edition-date { font-size: 13px; color: #94a3b8; }
.epo-edition-pages { display: inline-block; font-size: 12px; font-weight: 600; color: #475569; margin-top: 4px; }
.epo-search-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.epo-search-form input, .epo-search-form select, .epo-search-form button { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; }
.epo-shortcode-newspapers { display: grid; gap: 16px; margin: 16px 0; }
.epo-shortcode-newspapers.epo-cols-2 { grid-template-columns: repeat(2, 1fr); }
.epo-shortcode-newspapers.epo-cols-3 { grid-template-columns: repeat(3, 1fr); }
.epo-shortcode-newspapers.epo-cols-4 { grid-template-columns: repeat(4, 1fr); }
.epo-newspaper-link { display: flex; flex-direction: column; align-items: center; padding: 20px; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: #1e293b; background: #fff; }
.epo-newspaper-link img { max-height: 48px; margin-bottom: 8px; }

/* Clip public page — theme-integrated layout */
.epo-clip-page { max-width: 1180px; margin: 24px auto 48px; padding: 0 16px; box-sizing: border-box; }
.epo-clip-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.epo-clip-page-main { min-width: 0; }
.epo-clip-action-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.epo-clip-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid #d1d5db; background: #fff; color: #111827; cursor: pointer; }
.epo-clip-btn--download { background: #111827; color: #fff; border-color: #111827; }
.epo-clip-btn--edition { background: #fff; }
.epo-clip-btn--copy { background: #f8fafc; }
.epo-clip-format-picker { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.epo-clip-fmt-btn { padding: 8px 14px; border-radius: 999px; border: 1px solid #d1d5db; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.epo-clip-fmt-btn.is-active { background: #e94560; border-color: #e94560; color: #fff; }
.epo-clip-figure { margin: 0 0 16px; text-align: center; }
.epo-clip-enlarge { position: relative; display: inline-block; max-width: 100%; }
.epo-clip-image { max-width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.epo-clip-enlarge-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.65); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.epo-clip-enlarge:hover .epo-clip-enlarge-label { opacity: 1; }
.epo-clip-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.epo-clip-meta-date { font-size: 13px; color: #64748b; }
.epo-clip-url-field { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; background: #f8fafc; }
.epo-clip-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.epo-clip-share-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 6px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; border: none; }
.epo-clip-share-btn--facebook { background: #1877f2; }
.epo-clip-share-btn--twitter { background: #1da1f2; }
.epo-clip-share-btn--whatsapp { background: #25d366; }
.epo-clip-share-btn--email { background: #ea580c; }
.epo-clip-share-btn--telegram { background: #0088cc; }
.epo-clip-share-btn--linkedin { background: #0a66c2; }
.epo-clip-share-btn--open { background: #334155; }
.epo-clip-page-sidebar { position: sticky; top: 24px; }
.epo-clip-ad-slot { margin-bottom: 20px; text-align: center; }
.epo-clip-ad-label { display: block; font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.epo-clip-ad-image { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 6px; }
.epo-clip-ad-html { overflow: hidden; }

@media (max-width: 960px) {
	.epo-clip-page-layout { grid-template-columns: 1fr; }
	.epo-clip-page-sidebar { position: static; }
}

@media (max-width: 768px) {
	.epo-shortcode-newspapers.epo-cols-3,
	.epo-shortcode-newspapers.epo-cols-4 { grid-template-columns: 1fr; }
}

/* Page Builder content sections — theme-compatible, no hero chrome */
.epo-section-title { font-size: 1.25rem; margin: 1.5rem 0 .75rem; font-weight: 600; }
.epo-shortcode-categories .epo-category-card,
.epo-shortcode-locations .epo-location-card { display: block; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit; background: #fff; }
.epo-cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.epo-timeline { border-left: 2px solid #e2e8f0; padding-left: 16px; margin: 16px 0; }
.epo-timeline-year { font-weight: 700; margin: 12px 0 6px; }
.epo-timeline-item { margin-bottom: 8px; }
.epo-timeline-item a { text-decoration: none; color: #1e293b; }
.epo-reader-embed .epo-reader-iframe { width: 100%; min-height: 480px; border: 1px solid #e2e8f0; border-radius: 8px; margin-top: 12px; }
.epo-tools-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.epo-tool-link { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 6px; text-decoration: none; font-size: 13px; color: #334155; }
.epo-ad-slot { margin: 12px 0; text-align: center; }
.epo-ad-slot img { max-width: 100%; height: auto; }
.epo-sidebar-widgets .epo-sidebar-widget { margin-bottom: 1.5rem; }
.epo-inline-help { font-size: 13px; color: #64748b; margin: 0 0 12px; }
.epo-shortcode-empty { color: #64748b; font-style: italic; }
