* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dark-green: #54781F;
    --link-green: #4C6619;
    --border-grey: #c5c9ce;
}

body {
    background: #f3f3f3;
    font-family: 'Verdana', serif;
    color: #222;
}

/* ===== WRAPPER ===== */

.site-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
}

/* ===== HEADER ===== */

.site-header {
    background: linear-gradient(0deg,rgba(135, 162, 95, 1) 47%, rgba(112, 148, 75, 1) 100%);
    border-bottom: 2px solid var(--dark-green);
    display: flex;
    flex-direction: column;
}

/* Top section */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px 0;
    height: 70px;
}

/* Branding */

.branding {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.logo-small {
    height: 70px;
    width: auto;
    display: block;
    margin: 7px 0;
}

.logo-main {
    height: 70px;
    width: auto;
    display: block;
    margin: 6px 10px;
}

/* Utility links */

.top-links {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 15px;
}

.top-links a {
    color: white;
    font-size: 12px;
    text-decoration: none;
}

.top-links a:hover {
    text-decoration: underline;
}
/* ===== TAB MENU ===== */

.tab-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 4px;
    padding: 0 18px;
    margin-top: auto;
}

.tab {
    display: block;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    background: #739148;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 13px;
    color: white;
    font-weight: bolder;
}

.tab:hover {
    background: #64803D;
}

.tab.active {
    background: var(--dark-green);
}

/* ===== MAIN AREA ===== */

.page-content {
    display: grid;
    grid-template-columns: 235px 670px 290px;
    gap: 24px;
    padding: 24px 18px 12px;
}

/* ===== SIDEBARS ===== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-box {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.sidebar-left .sidebar-box a {
    margin: 3px 0;
    line-height: 1.4;
    position: relative;
    padding-left: 10px;
}

.sidebar-left .sidebar-box a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    background-image: url('dark green list marker.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.sidebar h3 {
    font-size: 15px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-color: var(--dark-green);
    padding: 5px 7px;
    color: white;
    font-weight: bold;
    margin-bottom: 10px
}

.sidebar h4 {
    font-size: 13px;
    font-weight: bold;
    color: var(--dark-green);
    border-bottom: 1px solid var(--border-grey);
    padding-bottom: 3px;
    margin-bottom: 8px;
}

.sidebar a {
    font-size: 13px;
    color: var(--link-green);
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* ===== CENTER COLUMN ===== */

.main-column {
    min-width: 0;
    border-left: 1px solid var(--border-grey);
    border-right: 1px solid var(--border-grey);
    padding: 14px 25px;
}

.content-box {
    background: #ffffff;
    min-height: 500px;
}

.content-box h1 {
    font-size: 29px;
    font-family: 'Trebuchet MS', 'Helvetica';
    font-weight: normal;
    color: var(--dark-green);
    border-bottom: 2px solid var(--dark-green);
    padding-bottom: 3px;
}

.content-box h2 {
    font-size: 23px;
    font-family: 'Trebuchet MS', 'Helvetica';
    font-weight: normal;
    color: var(--dark-green);
    border-bottom: 2px solid var(--dark-green);
    padding-bottom: 3px;
    margin: 15px 0 15px 0;
}

.content-box p {
    font-size: 13px;
    line-height: 20px;
    margin: 10px 5px 20px 0;
}

.dictionary-search {
    background: #EFF2EA;
    border-radius: 10px;
    padding: 20px 15px;
    margin: 10px 0;
    position: relative;
}

.dictionary-search input, .dictionary-search select, .dictionary-search button {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #c5c9ce;
    border-radius: 4px;
    font-family: 'Verdana', sans-serif;
    background-color: white;
}

.sidebar-right .dictionary-search #dictSearch {
    width: 250px;
}

.dictionary-search a {
    text-decoration: none;
    color: black;
}

.content-box ul {
    line-height: 20px;
    margin: 10px 10px 25px 30px;
    font-size: 13px;
}

/* === FOOTER === */
#footer {
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    border-top: 3px solid var(--dark-green);
}

/* === ENTRIES === */
#entryHead {
    font-size: 25px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #cc0000;
}

#entryPoS {
    font-size: 13px;
    color: #333333;
    border-bottom: 1px dotted #333333;
    font-style: italic;
}

#definitionTop {
    margin-bottom: 10px;
}

.entryLabel {
    background-color: #EAEFF2;
    font-size: 10.5px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin-right: 5px;
    padding: 3px;
    color: #333333;
    border: 1px solid #cccccc;
    letter-spacing: 0.1em;
    margin: 0 0.6em 0 0;
    display: inline-block;
}

.entryRow {
    margin: 10px 0;
}

.entryRow span {
    font-size: 13px;
}

.entryRow a {
    color: var(--link-green);
    font-size: 13px;
    text-decoration: none;
}

.entryRow a:hover {
    text-decoration: underline;
}

#meaningsList {
    line-height: 20px;
    margin: 10px 10px 25px 30px;
    font-size: 14px;
}

#meaningsList li {
    padding: 10px 0 25px 8px;
}

#meaningsList li:not(:last-child) {
    border-bottom: 1px solid #cccccc;
}

#meaningsList li::marker {
    font-size: 16px;
    font-family: 'Trebuchet MS';
    font-weight: bolder;
}

.pipeSeparator {
    display: inline-block;
    width: 1px;
    height: 0.9em;
    margin: 0 0.5em;
    background-color: currentColor;
    vertical-align: middle;
    user-select: none;
    pointer-events: none;
}

#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.suggestion {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
}

.suggestion:hover {
    background: #f2f2f2;
}

.suggestionPoS {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.suggestionLemma {
    color: var(--link-green);
}

.suggestionLemma sup {
    font-size: 0.7em;
    vertical-align: super;
}

#alphabeticalList {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border-grey);
    padding: 0 0 10px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 20%, rgba(239, 242, 235, 1) 100%);
    border-top: 1px solid var(--border-grey);
}

.alphabeticalItem {
    line-height: 1.4;
    position: relative;
    padding-left: 10px;
}

.alphabeticalItem::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background-image: url('dark green list marker.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.alphabeticalItem.current {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    padding-left: 10px;
}

.alphabeticalItem.current a {
    font-weight: bold;
}

.alphabeticalItem a {
    text-decoration: none;
}

.alphaItemPoS {
    color: #666;
    font-size: 11.7px;
    font-style: italic;
}

#declensionsSection table {
    border-collapse: collapse;
    font-size: 13px;
}
      
#declensionsTable tr,
#declensionsTable th,
#declensionsTable td {
    border:1px solid var(--border-grey);
    padding: 6px;
    text-align: center;
}

#declensionsTable th {
    color: #14765d;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1000px) {

    .page-content {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .tab {
        width: 130px;
    }
}

@media (max-width: 700px) {

    .header-top {
        flex-direction: column;
        gap: 16px;
    }

    .branding {
        flex-wrap: wrap;
    }

    .logo-small {
        height: 70px;
    }

    .logo-main {
        height: 45px;
    }

    .tab {
        width: 100px;
        height: 36px;
    }
}
