/* plaidlover.com - Global Stylesheet */
/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #f5f0e8;
}

a { color: #8b0000; text-decoration: underline; }
a:hover { color: #c00; }
a:visited { color: #5b0000; }

/* Layout */
#wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    min-height: 100vh;
}

#header {
    background: #1a3a1a;
    color: #fff;
    padding: 18px 24px;
    border-bottom: 4px solid #8b0000;
}

#header h1 {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

#header h1 a { color: #fff; text-decoration: none; }
#header h1 a:visited { color: #fff; }
#header h1 a:hover { color: #ddd; }

#header .tagline {
    font-size: 13px;
    color: #b0c8b0;
    margin-top: 2px;
    font-style: italic;
}

/* Navigation */
#nav {
    background: #2a5a2a;
    padding: 0;
    border-bottom: 2px solid #1a3a1a;
    overflow-x: auto;
    white-space: nowrap;
}

#nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
}

#nav ul li { display: inline-block; }

#nav ul li a {
    display: block;
    color: #e0e8d0;
    text-decoration: none;
    padding: 8px 14px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #1a3a1a;
}

#nav ul li a:hover {
    background: #3a7a3a;
    color: #fff;
}

#nav ul li a:visited { color: #e0e8d0; }

/* Breadcrumbs */
.breadcrumbs {
    padding: 8px 24px;
    font-size: 12px;
    color: #888;
    background: #f9f6f0;
    border-bottom: 1px solid #e0dcd0;
    font-family: Verdana, Geneva, sans-serif;
}

.breadcrumbs a { color: #666; font-size: 12px; }

/* Content */
#content {
    padding: 24px;
}

#content h2 {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 22px;
    color: #1a3a1a;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 6px;
    margin-bottom: 16px;
    margin-top: 28px;
}

#content h2:first-child { margin-top: 0; }

#content h3 {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 17px;
    color: #333;
    margin-top: 22px;
    margin-bottom: 8px;
}

#content p {
    margin-bottom: 14px;
    text-align: justify;
}

#content ul, #content ol {
    margin: 0 0 14px 28px;
}

#content li {
    margin-bottom: 6px;
}

/* Intro box */
.intro-box {
    background: #f0ede4;
    border: 1px solid #d0cbb8;
    border-left: 4px solid #8b0000;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Link lists / index pages */
.page-index {
    margin: 16px 0;
}

.page-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-index li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.page-index li:last-child { border-bottom: none; }

.page-index a {
    font-weight: bold;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 15px;
}

.page-index .desc {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 2px;
    font-family: Georgia, serif;
}

/* Info box / sidebar callout */
.info-box {
    background: #e8f0e8;
    border: 1px solid #b0c8b0;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 14px;
}

.info-box h4 {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    color: #1a3a1a;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Related links box */
.related-links {
    background: #f9f6f0;
    border: 1px solid #d0cbb8;
    padding: 14px 18px;
    margin: 24px 0 10px 0;
}

.related-links h4 {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 14px;
    color: #1a3a1a;
    margin-bottom: 8px;
}

.related-links ul {
    list-style: square;
    margin: 0 0 0 20px;
}

.related-links li {
    margin-bottom: 4px;
    font-size: 13px;
}

/* External links */
.ext-links {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #666;
}

.ext-links h4 {
    font-size: 13px;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    color: #555;
    margin-bottom: 6px;
}

/* Clan tartan card */
.tartan-card {
    border: 1px solid #ccc;
    padding: 16px;
    margin: 16px 0;
    background: #faf8f4;
}

.tartan-card h4 {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    color: #1a3a1a;
    margin-bottom: 6px;
}

.tartan-card .colors {
    display: flex;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.tartan-card .swatch {
    width: 28px;
    height: 28px;
    border: 1px solid #999;
    display: inline-block;
}

/* Homepage features */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.home-card {
    background: #f9f6f0;
    border: 1px solid #d0cbb8;
    padding: 14px;
}

.home-card h3 {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 15px;
    color: #1a3a1a;
    margin: 0 0 6px 0;
}

.home-card h3 a { color: #1a3a1a; }

.home-card p {
    font-size: 13px;
    margin: 0;
    text-align: left;
}

/* Glossary */
.glossary-term {
    margin-bottom: 14px;
}

.glossary-term dt {
    font-weight: bold;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    color: #1a3a1a;
}

.glossary-term dd {
    margin-left: 16px;
    font-size: 14px;
}

/* Surname lookup table */
.surname-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.surname-table th {
    background: #2a5a2a;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

.surname-table td {
    padding: 6px 12px;
    border-bottom: 1px solid #ddd;
}

.surname-table tr:nth-child(even) td {
    background: #f5f2ea;
}

/* Footer */
#footer {
    background: #1a3a1a;
    color: #a0b8a0;
    padding: 16px 24px;
    font-size: 12px;
    font-family: Verdana, Geneva, sans-serif;
    text-align: center;
    border-top: 4px solid #8b0000;
}

#footer a { color: #c0d8c0; }

/* ─── Responsive ─── */
@media (max-width: 700px) {
    body { font-size: 14px; }

    #header { padding: 14px 16px; }
    #header h1 { font-size: 22px; }

    #nav ul { flex-wrap: nowrap; overflow-x: auto; }
    #nav ul li a { padding: 8px 10px; font-size: 11px; }

    #content { padding: 16px; }
    #content h2 { font-size: 19px; }

    .home-grid { grid-template-columns: 1fr; }

    .surname-table { font-size: 12px; }
    .surname-table th, .surname-table td { padding: 5px 8px; }

    .breadcrumbs { padding: 8px 16px; }

    .tartan-card .colors { gap: 4px; }
    .tartan-card .swatch { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
    #header h1 { font-size: 19px; }
    #header .tagline { font-size: 11px; }
    #content { padding: 12px; }
    #content h2 { font-size: 17px; }
}
