/*
 * ConnectedDale Stylesheet
 * 
 * Table of Contents:
 * 1. Base Styles & Typography
 *    - body, h1, h2, ul, ol, p, .no-style
 * 2. Images & Media
 *    - img, .ls-image, .logo
 * 3. Links & Navigation
 *    - Links: a[href="index.html"], a[href="index.html"]:hover
 *    - Navigation: nav, nav ul, nav ul li, nav ul li a, nav ul li a.active
 * 4. Layout Components
 *    - .client-grid, .client-logo, .search-box, .sub-heading, .pdf-container
 * 5. jtbd / wesc Tables & Data Display
 *    - .jtbd_table, .jtbd_table th, .jtbd_table td
 * 6. Floating Text Block
 *    - .text-block, .text-block a
 * 7. Responsive Adjustments
 *    - @media (max-width: 600px) .text-block, @media (max-width: 400px) .text-block
 * 8. Comments System
 *    - .comments-section, .comment, .comment-meta, input[type="submit"].submit, #submitStatus
 */

/* 1. Base Styles & Typography */

body {
    max-width: 60em;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Georgia', serif;
    font-weight: normal;
    font-size: 1em;
    color: #000555;
    background-color: #FFF5F2;
    line-height: 1.5;
}

h1 {
    color: #000000;
    font-size: 2.2em;
    text-align: left;
    margin-bottom: 2px;
    margin-top: 2px;
}

h1 a {
    text-decoration: none;
    color: inherit;
}

h2 {
    color: #000555;
    font-size: 1.5em;
    text-align: left;
    margin-bottom: 0px;
    margin-top: 30px;
}

ul, ol {
    margin: 0;
}

body > ul > li:not(:first-child),
body > ol > li:not(:first-child) {
    margin-top: 10px;
}

p {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
}

.no-style {
    text-decoration: none;
    color: inherit;
}

.release-date {
    margin-bottom: 0em;
    color: #666;
    font-size: 0.9em;
    display: block;
}

.post-content {
    margin-top: 0em;
}

/* 2. Images & Media */
img {
    display: inline-block;
    max-width: 600px;
    height: auto;
    margin: 20px 20px 20px 0px;
    border: none;
    box-shadow: none;
}

.ls-image {
    display: inline-block;
    max-width: 70%;
    height: auto;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.logo {
    display: inline;
    width: 125px;
    height: auto;
    box-shadow: none;
    margin: 2px 20px 2px 0px;
}

/* 3. Links & Navigation */
/* Links */

a[href="index.html"] {
    text-decoration: none !important;
    color: inherit;
}

a[href="index.html"]:hover {
    color: inherit;
}

/* Navigation */
nav {
    text-align: left;
    padding: 0px;
    background-color: #DDE2F4;
    margin: 10px 0 10px;
}

nav ul {
    list-style: none;
    padding: 3;
    margin: 0;
    display: flex;
}

nav ul li {
    font-weight: bold;
    margin-right: 50px;
    position: relative;
}

nav ul li a {
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

nav ul li a.active {
    color: #007bff;
    text-decoration: underline;
}

/* 4. Layout Components */
.client-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.client-logo {
    opacity: 1;
}

.search-box {
    display: flex;
    padding: 2px;
    width: 200px;
}

.search-box input[type="text"] {
    flex-grow: 1;
    border: none;
    font-family: 'Georgia', serif;
    font-size: 0.9em;
    height: 20px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.sub-heading {
    margin-bottom: 10px;
    margin-top: -10px;
}

.pdf-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.pdf-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 5. jtbd / wesc Tables & Data Display */
.jtbd_table {
    border-collapse: collapse;
    width: 100%;
}

.jtbd_table th,
.jtbd_table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.jtbd_table th {
    background-color: #CCCCCC;
    vertical-align: bottom;
}

.jtbd_table td {
    vertical-align: top;
}

/* 6. Floating Text Block */
.text-block {
    float: right;
    width: 100px;
    background-color: darkblue;
    color: white;
    padding: 10px;
    border: 1px solid #ccc;
    margin: 20px;
    font-size: 14px;
}

.text-block a {
    color: white;
    text-decoration: underline;
}

/* 7. Responsive Adjustments */
@media (max-width: 600px) {
    .text-block {
        width: 150px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .text-block {
        width: 50px;
        font-size: 10px;
        float: none;
        margin: 10px auto;
        display: block;
    }
}

/* 8. Comments System */
.comments-section {
    margin-top: 2em;
    padding: 20px;
    border-top: none;
    max-width: 60em;
    margin-left: 0;
    margin-right: 0;
}

.comment {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #f9f9f9;
    border-left: 3px solid #333;
}

.comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5em;
}

input[type="submit"].submit {
    background: #333;
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: inherit;
}

input[type="submit"].submit:hover {
    background: #444;
}

input[type="submit"].submit:disabled {
    background: #999;
    cursor: not-allowed;
}

#submitStatus {
    margin-top: 1em;
    padding: 1em;
}

#submitStatus .success {
    background: #e6ffe6;
    border: 1px solid #99ff99;
    padding: 1em;
}

#submitStatus .error {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    padding: 1em;
}

.comments-section input[type="text"],
.comments-section input[type="email"],
.comments-section textarea {
    font-family: 'Georgia', serif;
    font-size: 1em;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #000555;
}

.comments-section textarea {
    width: 100%;
    box-sizing: border-box;
}

.comments-section .small {
    font-size: 0.8em;
    color: #666;
}

.comments-section {
    clear: both;
}