/* ==========================================================================
   UnitedDriversAndRestaurants.org - Core Desktop Stylesheet (769px and up)
   ========================================================================== */

:root {
    --primary-color: #1a252f;
    --accent-color: #c0392b;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --border-color: #dddddd;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* Typography & Layout Spacing */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-top: 2rem; }
h3 { font-size: 1.3rem; }

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 3.5rem 0;
}

/* Header & Banner Elements */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

header h1 {
    margin: 0 0 0.5rem 0;
}

header p {
    margin: 0;
    font-style: italic;
    color: #bdc3c7;
    font-size: 1.1rem;
}

.notice-banner {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 1.25rem;
    margin-bottom: 3rem;
    font-weight: bold;
    font-size: 1.05rem;
}

/* Flexbox/Grid alignment for 3 wide targets side-by-side */
.grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 4px;
    padding: 2rem;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Vertically aligns buttons cleanly at bottom */
}

.card.accent-card {
    border-top-color: var(--accent-color);
}

.card h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.card h2.alert {
    color: var(--accent-color);
}

/* Buttons & Direct Links */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 1.5rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-color);
}

.btn-back {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: #2980b9;
    font-weight: bold;
    transition: color 0.2s ease;
}

.btn-back:hover {
    color: var(--accent-color);
}

/* Traditional Data Table Layout */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

table, th, td {
    border: 1px solid var(--border-color);
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    background-color: #eaedf0;
}

/* Modular Document & Compliance Copy Containers */
.statute-box {
    background: #eef7f9;
    border-left: 5px solid #2980b9;
    padding: 1.75rem;
    margin: 2rem 0;
}

.metric-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.template-box {
    background: #f4f6f7;
    border: 1px solid #ccd1d1;
    padding: 2.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

blockquote {
    margin: 2.5rem 0;
    padding: 1rem 2rem;
    border-left: 5px solid var(--accent-color);
    font-style: italic;
    background: var(--bg-light);
    font-size: 1.1rem;
}

/* Footer Control */
footer {
    background-color: var(--primary-color);
    color: #ecf0f1;
    padding: 3rem 2rem;
    font-size: 0.9rem;
    margin-top: 6rem;
    border-top: 3px solid var(--border-color);
}

/* ==========================================================================
   Navigation and Advanced Modular Layouts Additions (Desktop)
   ========================================================================== */
.main-nav {
    background-color: #2c3e50;
    padding: 1rem 0;
    border-bottom: 1px solid #34495e;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.nav-logo {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.3rem;
}
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-links li {
    margin-left: 1.5rem;
}
.nav-links li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}
.nav-links li a:hover {
    color: #e74c3c;
}
.newsletter-box {
    background-color: #eaedf0;
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
}
.inline-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.inline-form input[type="email"] {
    width: 350px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.btn-submit {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}
.btn-submit:hover { background-color: #1a252f; }
.status-indicator { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 3px; font-weight: bold; font-size: 0.8rem; margin-top: 0.5rem; color: #fff; }
.status-indicator.active { background-color: #27ae60; }
.status-indicator.pending { background-color: #f39c12; }

/* ==========================================================================
   Modular Blog Publisher Form Layout Hooks
   ========================================================================== */
.editor-wrapper {
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.system-status-message {
    background-color: #d4edda;
    border-left: 5px solid #28a745;
    color: #155724;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}
.pure-editor-form {
    display: flex;
    flex-direction: column;
}
.form-row {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}
.form-row label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.95rem;
}
.form-row input[type="text"],
.form-row select,
.form-row textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-row textarea {
    resize: vertical;
}
.btn-publish {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-publish:hover {
    background-color: #1a252f;
}

/* ==========================================================================
   Public Blog Stream & Reader Layout Target Hooks
   ========================================================================== */
.public-stream-layout { background-color: #f8f9fa; font-family: Arial, sans-serif; margin: 0; padding: 0; }
.stream-container { max-width: 1100px; margin: 3rem auto; padding: 0 1.5rem; box-sizing: border-box; }

/* Stream Index Layout Elements */
.stream-introduction-header { margin-bottom: 3rem; text-align: center; }
.stream-introduction-header h1 { font-size: 2.2rem; color: #1a252f; margin-bottom: 0.5rem; }
.stream-introduction-header p { color: #7f8c8d; font-size: 1.1rem; margin: 0; }
.articles-grid-view { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.stream-summary-card { background: #fff; border-radius: 4px; padding: 2rem; box-shadow: 0 2px 5px rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: space-between; border-left: 4px solid #1a252f; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 1rem; font-weight: bold; }
.category-tag { color: #c0392b; text-transform: uppercase; letter-spacing: 0.5px; }
.publish-date { color: #95a5a6; }
.stream-summary-card h2 { margin: 0 0 1rem 0; font-size: 1.3rem; color: #2c3e50; line-height: 1.3; }
.article-excerpt { color: #555; font-size: 0.95rem; line-height: 1.5; margin: 0 0 1.5rem 0; }
.btn-read-more { display: inline-block; color: #1a252f; font-weight: bold; text-decoration: none; font-size: 0.9rem; border-bottom: 2px solid #c0392b; padding-bottom: 2px; align-self: flex-start; }
.btn-read-more:hover { color: #c0392b; }

/* Single Post View Layout Elements */
.single-article-view { background: #fff; padding: 3.5rem; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.article-meta-header { border-bottom: 1px solid #ecf0f1; padding-bottom: 1.5rem; margin-bottom: 2rem; }
.article-meta-header h1 { font-size: 2.5rem; color: #1a252f; margin: 0.75rem 0 0 0; }
.article-body-content { color: #2c3e50; font-size: 1.1rem; line-height: 1.7; }
.article-body-content p { margin-bottom: 1.5rem; }
.article-footer-nav { margin-top: 3rem; border-top: 1px solid #ecf0f1; padding-top: 1.5rem; }
.btn-return-stream { display: inline-block; background-color: #1a252f; color: white; text-decoration: none; padding: 0.75rem 1.5rem; font-weight: bold; border-radius: 4px; }
.btn-return-stream:hover { background-color: #c0392b; }
.empty-stream-alert { grid-column: 1 / -1; background: #fff; text-align: center; padding: 3rem; border: 1px dashed #bdc3c7; color: #7f8c8d; }