/* King Charles III Regnal Number Explorer Styles */
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
 margin: 0;
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
 line-height: 1.6;
 color: #222;
 background-color: #fefefe;
}
.container {
 max-width: 960px;
 margin: 0 auto;
 padding: 0 1rem;
}
header {
 background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
 color: white;
 padding: 1.5rem 0;
 border-bottom: 1px solid #e2e8f0;
}
header h1 {
 font-size: clamp(1.5rem, 4vw, 2.2rem);
 margin: 0;
 font-weight: 600;
}
header .tagline {
 margin: 0.5rem 0 0;
 opacity: 0.9;
 font-size: 1rem;
}
nav a {
 color: #e2e8f0;
 text-decoration: none;
 margin-left: 1.5rem;
 font-size: 0.95rem;
}
nav a:hover, nav a:focus {
 text-decoration: underline;
}
main {
 padding: 2rem 0;
}
.hero {
 text-align: center;
 margin-bottom: 2.5rem;
}
.hero h2 {
 font-size: clamp(1.75rem, 5vw, 2.5rem);
 margin-bottom: 1rem;
 color: #1a202c;
}
.hero p {
 font-size: 1.1rem;
 color: #4a5568;
 max-width: 600px;
 margin: 0 auto;
}
.preset-example {
 background: #edf2f7;
 border-left: 4px solid #4299e1;
 padding: 1rem;
 margin-top: 1.5rem;
 border-radius: 0 4px 4px 0;
}
.explorer-section {
 background: #f7fafc;
 border-radius: 8px;
 padding: 1.75rem;
 margin-bottom: 2rem;
 border: 1px solid #e2e8f0;
}
.explorer-header h3 {
 margin-top: 0;
 font-size: 1.3rem;
 color: #2d3748;
}
.explorer-header p {
 color: #718096;
 margin-bottom: 1rem;
}
.explorer-controls {
 display: flex;
 gap: 0.75rem;
 flex-wrap: wrap;
 margin-bottom: 1.5rem;
}
.explorer-controls select,
.explorer-controls button {
 padding: 0.75rem 1rem;
 border: 1px solid #cbd5e0;
 border-radius: 4px;
 font-size: 1rem;
}
.explorer-controls select {
 background: white;
 min-width: 200px;
}
.explorer-controls button {
 background: #4299e1;
 color: white;
 border: none;
 cursor: pointer;
}
.explorer-controls button:hover, .explorer-controls button:focus {
 background: #3182ce;
}
.monarch-display {
 background: white;
 border-radius: 6px;
 padding: 1.5rem;
 border: 1px solid #e2e8f0;
}
.monarch-header {
 display: flex;
 align-items: baseline;
 gap: 0.5rem;
 margin-bottom: 1rem;
}
.monarch-header h4 {
 margin: 0;
 font-size: 1.5rem;
}
.regnal-number {
 background: #4299e1;
 color: white;
 padding: 0.25rem 0.75rem;
 border-radius: 20px;
 font-weight: 600;
}
.monarch-details p {
 margin: 0.5rem 0;
}
#lineagePanel, #comparePanel {
 margin-top: 1rem;
 padding-top: 1rem;
 border-top: 1px solid #e2e8f0;
}
.lineage-tree {
 display: flex;
 flex-direction: column;
 gap: 0.5rem;
}
.lineage-item {
 display: flex;
 align-items: center;
 gap: 0.75rem;
}
.compare-table {
 width: 100%;
 border-collapse: collapse;
}
.compare-table th, .compare-table td {
 padding: 0.75rem;
 text-align: left;
 border-bottom: 1px solid #e2e8f0;
}
.compare-table th {
 background: #edf2f7;
}
.examples-section {
 background: #ffffff;
 border-radius: 8px;
 padding: 1.75rem;
 margin-bottom: 2rem;
 border: 1px solid #e2e8f0;
}
.examples-section h3 {
 margin-top: 0;
 color: #2d3748;
}
.examples-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1rem;
}
.example-card {
 background: #f7fafc;
 padding: 1rem;
 border-radius: 6px;
 border: 1px solid #e2e8f0;
}
.example-card h4 {
 margin: 0 0 0.5rem;
 font-size: 1rem;
}
.faq-section {
 background: #ffffff;
 border-radius: 8px;
 padding: 1.75rem;
 margin-bottom: 2rem;
 border: 1px solid #e2e8f0;
}
.faq-section h3 {
 margin-top: 0;
 color: #2d3748;
}
.faq-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 1rem;
}
.faq-item h4 {
 margin: 0 0 0.5rem;
 font-size: 0.95rem;
}
.ad-reserve {
 text-align: center;
 margin: 2rem 0;
}
footer {
 background: #2d3748;
 color: #a0aec0;
 padding: 1.5rem 0;
 font-size: 0.9rem;
}
footer a {
 color: #90cdf4;
 text-decoration: none;
}
footer a:hover {
 text-decoration: underline;
}
@media (max-width: 600px) {
 .explorer-controls {
 flex-direction: column;
 }
 .explorer-controls select,
 .explorer-controls button {
 width: 100%;
 }
 .monarch-header {
 flex-direction: column;
 align-items: flex-start;
 }
 .faq-grid {
 grid-template-columns: 1fr;
 }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
