h1 { font-family: Arial, Helvetica, sans-serif; }
/* --- Foalfolio shell (M1) --- */
body { margin: 0; font-family: Georgia, 'Times New Roman', serif; background: #f6f1e7; color: #2b2118; }
.topbar { display: flex; align-items: center; gap: 8px 14px; padding: 8px 14px; background: #2b2118; color: #f6f1e7; flex-wrap: wrap; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px rgba(30,20,5,0.35); }
.wordmark { color: #e8b34b; font-weight: bold; letter-spacing: 2px; text-decoration: none; font-size: 17px; }
.topnav { display: flex; gap: 13px; }
.topnav a { color: #f6f1e7; text-decoration: none; opacity: .85; font-size: 14.5px; }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.pills { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: #453723; border: 1px solid #6b543a; border-radius: 999px; padding: 2px 9px; font-size: 12.5px; white-space: nowrap; }
.pill.clock { background: transparent; border-color: #6b543a; }
.landing { text-align: center; padding: 80px 20px; }
.landing h1 { font-size: 44px; letter-spacing: 3px; margin-bottom: 8px; }
.pitch { font-size: 19px; font-style: italic; color: #5a4632; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; text-decoration: none; border: 1px solid #6b543a; color: #2b2118; background: #fffdf7; }
.btn.primary { background: #2b2118; color: #e8b34b; font-size: 17px; }
.page { max-width: 880px; margin: 0 auto; padding: 22px 18px 60px; }
.founders summary { font-size: 19px; cursor: pointer; margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.card { background: #fffdf7; border: 1px solid #d8c9ae; border-radius: 10px; padding: 12px; display: flex; gap: 13px; }
.card .portrait { flex: 0 0 126px; }
.card .portrait svg { width: 126px; height: auto; border-radius: 8px; }
.card-main { min-width: 0; }
.card-name { font-size: 19px; font-weight: bold; }
.card-sub { color: #5a4632; margin-top: 2px; }
.card-sub.dim { opacity: .75; font-size: 14px; }
.card-note { font-style: italic; color: #6b543a; margin: 10px 0 0; }
.next-steps { margin-top: 28px; background: #efe6d2; border-radius: 10px; padding: 14px 18px; }

/* --- Inspector panel (M2) --- */
.card-actions { margin: 10px 0 0; }
.card-actions a { color: #7a4d16; }
.inspector { background: #fffdf7; border: 1px solid #d8c9ae; border-radius: 10px; padding: 18px; margin-top: 14px; }
.insp-name { font-size: 26px; font-weight: bold; }
.insp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 640px) { .insp-cols { grid-template-columns: 1fr; } }
.inspector h4 { margin: 12px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: #6b543a; }
.stat-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; }
.stat-name { width: 96px; }
.stat-bar { flex: 1; height: 8px; background: #e7dcc4; border-radius: 4px; overflow: hidden; }
.stat-fill { display: block; height: 100%; background: #b98a2f; }
.stat-val { width: 52px; text-align: right; color: #5a4632; }
.genetics-head { display: flex; align-items: baseline; justify-content: space-between; }
.geno-toggle { font-size: 13px; color: #5a4632; cursor: pointer; }
.locus-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e0d3b4; font-size: 14px; }
.locus-val.unknown { color: #9a8a72; font-style: italic; }
.inspector .geno { display: none; }
.inspector.show-geno .geno { display: inline; }
.inspector.show-geno .plain { display: none; }
.small { font-size: 13px; }
.dim { opacity: .75; }

/* --- Breeding & badges (M3) --- */
.badge { background: #efe0b8; border: 1px solid #c9a94e; border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.inline-form { display: inline; }
.btn.small { padding: 3px 10px; font-size: 13px; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
select, input[type="text"] { font: inherit; padding: 5px 8px; border: 1px solid #c9b98f; border-radius: 5px; background: #fffdf7; }

/* --- Market / racing (M4) --- */
table.results { border-collapse: collapse; margin: 12px 0; }
table.results td { padding: 4px 14px 4px 0; border-bottom: 1px dashed #e0d3b4; }

/* --- Auth (M5) --- */
.auth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 18px auto; text-align: left; }
@media (max-width: 640px) { .auth-cols { grid-template-columns: 1fr; } }
.error { color: #a33; font-weight: bold; }
input[type="email"], input[type="password"] { font: inherit; padding: 5px 8px; border: 1px solid #c9b98f; border-radius: 5px; background: #fffdf7; width: 100%; box-sizing: border-box; }

/* Horse portraits (Nov 9, 2026) — phenotype-rendered SVG layers. */
.portrait { margin-bottom: 0.6rem; }
.portrait svg { width: 100%; height: auto; border-radius: 10px; }
.portrait-lg { max-width: 430px; margin: 0.4rem 0 1rem; }

/* Landing (Nov 10, 2026): pitch art, how-it-works, demo portraits. */
.hero-img { width: 100%; height: auto; border-radius: 12px; margin: 0.6rem 0 0.2rem; }
.howto { text-align: left; max-width: 560px; margin: 0.6rem auto; }
.howto p { margin: 0.45rem 0; }
.demo-row { display: flex; gap: 0.6rem; max-width: 640px; margin: 1rem auto 0.2rem; }
.demo-row figure { flex: 1; margin: 0; }
.demo-row svg { width: 100%; height: auto; border-radius: 10px; display: block; }
.demo-row figcaption { text-align: center; font-size: 0.82rem; opacity: 0.75; margin-top: 0.3rem; }
.card-sub.status { color: #6d5c39; font-weight: 600; }
.scene { margin: 2px 0 14px; }
.scene svg { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 2px 10px rgba(60,40,10,0.25); }
@media (max-width: 640px) {
  .pills { margin-left: 0; width: 100%; }
  .pill.clock { margin-left: auto; }
  .scene { overflow: hidden; border-radius: 12px; }
  .scene svg { width: 175%; max-width: none; margin-left: -37.5%; box-shadow: none; }
  .scene { box-shadow: 0 2px 10px rgba(60,40,10,0.25); margin-bottom: 10px; }
  .scene svg + svg { display: none; }
}
.scene a { cursor: pointer; }
