/* Sgaw Karen Glossing Guide - Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    background: #f5f7fa;
    color: #1e2b37;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    background: #1e3c4f;
    color: white;
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 5px solid #e8c51e;
}

.main-header h1 {
    font-weight: 400;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.main-header h1 strong {
    font-weight: 600;
    color: #ffd966;
}

.main-header .sub {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Navigation */
.main-nav {
    background: #2c546a;
    padding: 0.75rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    border-bottom: 1px solid #1a3f52;
}

.main-nav a {
    color: #f0f7fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.main-nav a:hover {
    border-bottom-color: #e8c51e;
    color: white;
}

.main-nav a.active {
    border-bottom-color: #ffd966;
    color: white;
    font-weight: 600;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2.5rem;
    background: white;
}

/* Typography */
h2 {
    font-size: 2.2rem;
    font-weight: 400;
    border-left: 8px solid #e8c51e;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    color: #1e3c4f;
}

h3 {
    font-size: 1.6rem;
    font-weight: 400;
    margin: 2rem 0 1rem;
    color: #2c546a;
    border-bottom: 2px solid #dceaf0;
    padding-bottom: 0.5rem;
}

h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 1.5rem 0 0.75rem;
    color: #1a4b64;
}

/* Abbreviation blocks */
.abbrev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem 2rem;
    background: #f8fbfd;
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.abbrev-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    border-bottom: 1px dotted #bfd7e3;
    padding: 0.4rem 0;
}

.abbrev-term {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #b13e3e;
    background: #fff1f0;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.abbrev-def {
    color: #1e3c4f;
}

/* Examples */
.example {
    background: #f0f7fc;
    border-left: 6px solid #2c546a;
    padding: 1.5rem 2rem;
    margin: 1.8rem 0;
    border-radius: 0 20px 20px 0;
    font-family: 'Courier New', 'Segoe UI Mono', monospace;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.example p {
    margin: 0.5rem 0;
    font-family: inherit;
}

.example .gloss {
    font-weight: 600;
    color: #1e3c4f;
    margin-top: 0.25rem;
}

.example .trans {
    font-family: 'Segoe UI', sans-serif;
    color: #3e6b81;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #bfd7e3;
}

.example .label {
    display: inline-block;
    background: #e8c51e;
    color: #1e3c4f;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #f9fcfd;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

th {
    background: #1e3c4f;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1rem;
    text-align: left;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #d4e2e9;
}

tr:last-child td {
    border-bottom: none;
}

/* cards for abbreviation lists */
.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.card-list span {
    background: #eef4f7;
    padding: 0.25rem 1rem;
    border-radius: 40px;
    font-family: monospace;
    font-weight: 600;
    color: #144a66;
    border: 1px solid #c7dde9;
}

.footnote {
    font-size: 0.9rem;
    background: #fcf8e7;
    padding: 1rem 2rem;
    border-radius: 30px;
    margin: 2rem 0;
    color: #5e4b1e;
    border-left: 5px solid #e8c51e;
}

footer {
    background: #eef4f7;
    padding: 1.5rem 2.5rem;
    color: #2c546a;
    border-top: 1px solid #cbdae3;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 700px) {
    .main-header, .main-nav, .main-content {
        padding: 1.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .abbrev-grid {
        grid-template-columns: 1fr;
    }
}
