/* Titanic Era Passenger Simulator Styles */
:root {
    --bg: #f5f0e8;
    --text: #2c2416;
    --header-bg: #1a2b3c;
    --header-text: #e6d5b8;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --accent: #8b5a2b;
    --accent-hover: #a46d3a;
    --border: #d4c4a8;
    --btn-primary-bg: #2c3e50;
    --btn-primary-text: #f5f0e8;
    --btn-secondary-bg: #e0d3c3;
    --btn-secondary-text: #2c2416;
    --danger: #a83232;
    --success: #3a6b4f;
    --radius: 6px;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--accent);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--header-text);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #fff;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #1a2b3c;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4a3f2f;
    max-width: 600px;
    margin: 0 auto;
}

.simulator {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
}

.sim-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.passenger-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a2b3c;
}

.form-group select {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s;
}

.form-group select:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn.primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn.primary:hover {
    background: #3a5068;
}

.btn.secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    background: #d0c3b0;
}

.presets {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.preset-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.preset-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.4rem;
    background: #faf7f2;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.preset-btn:hover {
    background: #efe6d5;
}

.profile-card {
    background: #fdfaf5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
}

.empty-state {
    text-align: center;
    color: #7a6e5d;
    font-style: italic;
}

.profile-content {
    width: 100%;
}

.profile-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #1a2b3c;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.profile-details {
    list-style: none;
    margin-bottom: 1rem;
}

.profile-details li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.profile-details strong {
    color: #1a2b3c;
}

.survival-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.survival-high {
    background: #d4edda;
    color: #155724;
}

.survival-medium {
    background: #fff3cd;
    color: #856404;
}

.survival-low {
    background: #f8d7da;
    color: #721c24;
}

.profile-narrative {
    font-style: italic;
    color: #3a3224;
    line-height: 1.7;
}

.profile-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.supporting-content {
    margin-top: 2rem;
}

.supporting-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #1a2b3c;
    margin-bottom: 1.5rem;
    text-align: center;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.support-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.support-card h3 {
    font-family: var(--font-serif);
    color: #1a2b3c;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.scenario-walkthrough, .common-mistakes {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.scenario-walkthrough h3, .common-mistakes h3 {
    font-family: var(--font-serif);
    color: #1a2b3c;
    margin-bottom: 0.8rem;
}

.common-mistakes ul {
    padding-left: 1.5rem;
}

.common-mistakes li {
    margin-bottom: 0.5rem;
}

.saved-profiles {
    margin-top: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.saved-profiles h2 {
    font-family: var(--font-serif);
    color: #1a2b3c;
    margin-bottom: 1rem;
}

.saved-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.saved-card {
    background: #fdfaf5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.saved-card h4 {
    margin-bottom: 0.5rem;
}

.site-footer {
    background: #1a2b3c;
    color: #c0b49a;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-top: 3px solid var(--accent);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.8rem 0;
}

.footer-nav a {
    color: #c0b49a;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .sim-layout {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
    .main-nav ul {
        gap: 1rem;
    }
}



/* 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;
}
