/* Public podcast pages (pod_app.py). Light by default, dark when the
   visitor's system is dark; no fonts or scripts from third parties. */
:root { --bg: #f7f8fa; --panel: #ffffff; --fg: #14171f; --muted: #5b6474; --line: #e3e7ee; --accent: #f7931e; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f131b; --panel: #151a24; --fg: #f3f5f8; --muted: #a3acbb; --line: #262e3d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
header.show { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
header.show img { width: 180px; height: 180px; border-radius: 12px; object-fit: cover; flex: none; }
header.show h1 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.2; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; }
.episodes { list-style: none; padding: 0; margin: 0; }
.episodes li { border-top: 1px solid var(--line); padding: 14px 0; }
.episodes li:first-child { border-top: 0; }
.episodes h2 { font-size: 1.1rem; margin: 0 0 4px; }
.buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--panel); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #14171f; font-weight: 600; }
.transcript p { margin: 6px 0; }
.transcript .who { font-weight: 600; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
footer { margin-top: 40px; font-size: .85rem; }
@media (max-width: 520px) { header.show img { width: 120px; height: 120px; } header.show h1 { font-size: 1.4rem; } }

/* Websites (phase 2, M12): header bar, nav, footer, forms and three themes.
   Every theme keeps the visitor's light/dark preference except "bold",
   which is always dark. The accent colour comes from the site settings. */
.site-bar { border-bottom: 1px solid var(--line); background: var(--panel); }
.site-bar-in { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.site-name { display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 700; margin-right: auto; }
.site-name img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.site-bar nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-bar nav a { text-decoration: none; }
.site-bar nav a:hover { text-decoration: underline; }
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; }
.site-foot .wrap { padding-bottom: 32px; }
.form label { display: block; margin: 0 0 12px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 4px; padding: 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #c0392b; font-weight: 600; }
.host h3 { margin: 12px 0 4px; }
.post img { max-width: 100%; height: auto; border-radius: 8px; }
.theme-bold { --bg: #0b0e14; --panel: #121722; --fg: #f5f7fb; --muted: #a6b0c2; --line: #232b3a; }
.theme-bold h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
.theme-bold .site-bar { background: var(--accent); border: 0; }
.theme-bold .site-bar a, .theme-bold .site-bar .site-name { color: #0b0e14; }
.theme-bold .site-bar .btn.primary { background: #0b0e14; color: #fff; border-color: #0b0e14; }
.theme-minimal { font-family: Georgia, "Times New Roman", serif; }
.theme-minimal .panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding-left: 0; padding-right: 0; }
.theme-minimal .btn.primary { color: #fff; }

/* Surveys (M14). */
.survey fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 14px; padding: 10px 14px; }
.survey legend { font-weight: 600; padding: 0 4px; }
.survey .opt { display: inline-flex; gap: 6px; align-items: center; margin: 4px 14px 4px 0; }
.survey .opt input { width: auto; display: inline; margin: 0; }
.survey textarea { display: block; width: 100%; padding: 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
