:root {
    --eh-paper: #f4f4ec;
    --eh-surface: #fffefa;
    --eh-ink: #20271f;
    --eh-muted: #586256;
    --eh-line: #dedfd4;
    --eh-forest: #182d25;
    --eh-lime: #dcf58b;
    --eh-green: #295b45;
    --eh-radius: 20px;
    --bs-body-color: var(--eh-ink);
    --bs-body-bg: var(--eh-paper);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-link-color-rgb: 41, 91, 69;
    --bs-link-hover-color-rgb: 28, 67, 50;
}

body { min-height: 100vh; }
a { text-underline-offset: 3px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #608544;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    background: var(--eh-surface);
    transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
    background: var(--eh-paper);
    border-bottom: 1px solid var(--eh-line);
}

.header-grid {
    display: grid;
    grid-template-columns: 215px minmax(0, 380px) 1fr;
    align-items: center;
    gap: 26px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: var(--eh-ink);
    text-decoration: none;
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -.085em;
    white-space: nowrap;
    line-height: 1;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--eh-muted);
    font-size: .62rem;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.brand-accent { color: var(--eh-green); }

.brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.search {
    display: flex;
    align-items: center;
    min-width: 0;
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: 10px;
}

.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 10px 13px;
    background: transparent;
    color: var(--eh-ink);
    border-radius: 10px;
}

.search-button {
    color: var(--eh-green);
    font-size: .87rem;
    font-weight: 750;
}

.member-nav {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: clamp(10px, 2vw, 24px);
    white-space: nowrap;
}

.nav-quiet {
    color: var(--eh-ink);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
}

.btn-ink {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--eh-forest);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--eh-green);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--eh-green);
    font-weight: 700;
}

.btn-lime {
    --bs-btn-color: var(--eh-forest);
    --bs-btn-bg: var(--eh-lime);
    --bs-btn-hover-color: var(--eh-forest);
    --bs-btn-hover-bg: #c9e677;
    --bs-btn-active-color: var(--eh-forest);
    --bs-btn-active-bg: #c9e677;
    font-weight: 750;
}

.btn-lime span { margin-left: 10px; }

.main-wrap { padding-top: 34px; padding-bottom: 32px; }

.dictionary-grid,
.reading-grid {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr) 235px;
    gap: 22px;
}

.reading-grid { grid-template-columns: 252px minmax(0, 800px); }
.min-width-0 { min-width: 0; }

.side-panel { padding: 8px 0; }

.aside-title {
    color: var(--eh-muted);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin: 4px 12px 10px;
}

.section-label { margin-top: 27px; }
.section-links { display: grid; gap: 3px; }

.section-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--eh-ink);
    font-size: .9rem;
    font-weight: 650;
}

.section-links a span:last-child:not(.category-dot) { margin-left: auto; }
.section-links a:hover, .section-links a.selected { background: #e4ebd9; }

.category-dot {
    width: 6px;
    height: 6px;
    border: 1px solid var(--eh-green);
    border-radius: 50%;
}

.welcome {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 4vw, 46px);
    border-radius: var(--eh-radius);
    color: #fff;
    background: var(--eh-forest);
}

.welcome h1 {
    font-weight: 810;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.05;
    letter-spacing: -.059em;
    margin-bottom: 16px;
}

.welcome h1 span { color: var(--eh-lime); }

.welcome p:not(.kicker) {
    color: #e3ecdb;
    max-width: 37ch;
    margin-bottom: 25px;
}

.kicker {
    font-size: .7rem;
    letter-spacing: .17em;
    font-weight: 800;
    color: var(--eh-lime);
}

.welcome-art {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
}

.welcome-art i {
    position: absolute;
    top: 24%;
    right: -95px;
    width: 250px;
    height: 270px;
    border: 1px solid #648167;
    border-radius: 46%;
    transform: rotate(-35deg);
}

.welcome-art i:nth-child(2) { right: -69px; top: 28%; }
.welcome-art i:nth-child(3) { right: -43px; top: 32%; }

.surface {
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: var(--eh-radius);
}

.aside-card { padding: 22px; }
.aside-card h2 { font-size: 1.05rem; font-weight: 780; }
.aside-card p { font-size: .89rem; color: var(--eh-muted); }

.aside-symbol {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding-top: 4px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #e9efd9;
    color: var(--eh-green);
    font: 750 1.8rem/1 Georgia, serif;
}

.text-link {
    color: var(--eh-green);
    font-size: .83rem;
    font-weight: 760;
    text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--eh-line);
}

.panel-head h1, .panel-head h2 { margin: 0; font-size: 1.18rem; font-weight: 800; }
.panel-head > span, .entry-count { flex: 0 0 auto; font-size: .82rem; color: var(--eh-muted); }

.topic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 25px;
    color: var(--eh-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.topic-row + .topic-row { border-top: 1px solid var(--eh-line); }
.topic-row:hover { background: #f4f6eb; }
.topic-row:last-child { border-radius: 0 0 var(--eh-radius) var(--eh-radius); }
.topic-row small { display: block; margin-top: 4px; color: var(--eh-muted); }
.search-summary { padding: 15px 25px 0; overflow-wrap: anywhere; }

.empty-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 24px;
}

.empty-state h2 { font-size: 1rem; font-weight: 750; margin-bottom: 4px; }
.empty-state p { color: var(--eh-muted); font-size: .86rem; margin: 0; }
.empty-state > a { margin-left: auto; }

.empty-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: #eff1e7;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 750;
}

.crumbs {
    display: flex;
    gap: 9px;
    margin: 0 0 15px;
    font-size: .88rem;
}

.topic-head, .form-panel { padding: clamp(18px, 3.5vw, 34px); }
.topic-head h1, .form-panel h1 { font-weight: 815; letter-spacing: -.045em; overflow-wrap: anywhere; }
.form-panel h2 { font-size: 1.25rem; font-weight: 780; }

.topic-tools, .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: .82rem;
    color: var(--eh-muted);
}

.topic-tools { margin-top: 15px; }
.topic-tools a.active, .entry-meta .author { font-weight: 780; }

.entry {
    padding: 22px clamp(18px, 3.5vw, 34px);
    border-top: 1px solid var(--eh-line);
    scroll-margin-top: 20px;
}

.entry:target { background: #f1f6e6; }
.panel-head + .entry { border-top: 0; }

.entry h2, .entry h3 { font-size: 1.08rem; font-weight: 750; }
.entry-meta a, .entry-meta button { font-size: inherit; }

.report-button, .favorite-button {
    padding: .2rem .65rem;
    border: 1px solid #bed0c4;
    border-radius: .5rem;
    background: #edf4ed;
    color: var(--eh-forest);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.report-button:is(:hover, :focus-visible), .favorite-button:is(:hover, :focus-visible),
.favorite-button[aria-pressed="true"] {
    border-color: var(--eh-green);
    background: var(--eh-forest);
    color: var(--eh-lime);
}
.entry-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.report-form { margin-top: 10px; font-size: .82rem; color: var(--eh-muted); }
.report-form form { max-width: 370px; padding-top: 10px; }
.editor-width { max-width: 800px; margin-inline: auto; }
.narrow { max-width: 480px; margin-inline: auto; }
.rule-list { margin-bottom: 0; padding-left: 1.25rem; }
.rule-list li + li { margin-top: 8px; }

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 16px;
    border-top: 1px solid var(--eh-line);
    color: var(--eh-muted);
    font-size: .875rem;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    border-top: 1px solid var(--eh-line);
    padding: 18px 0 24px;
    color: var(--eh-muted);
    font-size: .82rem;
}

@media (max-width: 1199px) {
    .dictionary-grid { grid-template-columns: 230px minmax(0, 1fr); }
    .reading-grid { grid-template-columns: 230px minmax(0, 800px); }
    .compact-aside { grid-column: 2; }
}

@media (max-width: 700px) {
    .header-grid {
        grid-template-columns: max-content minmax(0, 1fr);
        gap: 13px;
        padding-top: 14px;
        padding-bottom: 13px;
    }

    .search { grid-area: 2 / 1 / 3 / 3; }
    .member-nav { grid-column: 2; flex-wrap: wrap; row-gap: 6px; }
    .main-wrap { padding-top: 15px; }
    .dictionary-grid, .reading-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .side-panel { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
    .side-panel .aside-title { display: none; }
    .section-links { display: contents; }
    .section-links a { padding: 6px 8px; font-size: .79rem; }
    .section-links a span:last-child:not(.category-dot) { display: none; }
    .compact-aside { grid-column: auto; }
    .panel-head, .topic-row { padding-inline: 18px; }
    .empty-state > a { margin-left: 0; }
    .welcome-art { opacity: .55; }
}

@media (max-width: 360px) {
    .brand { gap: 6px; font-size: 1.25rem; }
    .brand-mark { width: 32px; height: 32px; }
    .member-nav { gap: 7px; }
    .member-nav .btn { padding-inline: 7px; font-size: .83rem; }
}

.price-card {
    margin: 0 clamp(18px, 3.5vw, 34px) 20px;
    padding: 16px 20px;
    border: 1px solid #dbe6c8;
    border-radius: 12px;
    background: #f2f6e8;
}

.price-card h2 { font-size: .92rem; font-weight: 760; }
.price-card .price-value { margin: 5px 0; font-size: 1.5rem; font-weight: 820; }

/* Konu akışı */
.stream-switcher {
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    border-bottom: 1px solid var(--eh-line);
    padding-bottom: 10px;
}

.stream-switcher a {
    justify-content: center;
    padding: 8px 6px;
    font-size: .78rem;
    white-space: nowrap;
}

.sidebar-list { margin-top: 13px; min-width: 0; }
.sidebar-heading { margin-bottom: 7px; }
.sidebar-topics { margin: 0; padding: 0; list-style: none; }

.sidebar-topics li + li { border-top: 1px solid var(--eh-line); }

.sidebar-topics a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    color: var(--eh-ink);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.sidebar-topics a:hover,
.sidebar-topics a[aria-current="page"] {
    background: #e4ebd9;
    border-radius: 8px;
}

.sidebar-topics small { flex: none; color: var(--eh-muted); font-variant-numeric: tabular-nums; }
.sidebar-empty, .sidebar-all { display: block; padding: 11px 12px; color: var(--eh-muted); font-size: .86rem; }
.sidebar-list .pager { gap: 6px 9px; padding: 10px 4px; font-size: .75rem; }

@media (max-width: 700px) {
    .topic-sidebar { display: block; }
    .topic-sidebar .stream-switcher { display: grid; grid-template-columns: repeat(3, 1fr); }
    .topic-sidebar .sidebar-heading { display: block; }
    .sidebar-topics { max-height: 190px; overflow-y: auto; }
    .category-menu { display: flex; flex-wrap: wrap; margin-top: 8px; }
    .sidebar-list .pager { justify-content: start; }
}

.entry.entry-featured {
    margin: 0 clamp(.75rem, 3vw, 1.5rem) 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid #bdd5c9;
    border-inline-start: .25rem solid var(--eh-green);
    border-radius: calc(var(--eh-radius) - .25rem);
    background: linear-gradient(135deg, #edf7ef, #f9fbf5);
}

.featured-entry-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .8rem;
    padding: .32rem .65rem;
    border-radius: 2rem;
    background: var(--eh-green);
    color: #fff;
    font-size: .82rem;
    line-height: 1.3;
}

.entry-featured .entry-body {
    font-size: clamp(1rem, 1.05vw, 1.12rem);
    line-height: 1.7;
}

.mobile-topic-menu { display: none; }

@media (max-width: 700px) {
    .reading-grid--topic > .topic-sidebar { display: none; }

    .mobile-topic-menu {
        display: block;
        margin-bottom: 12px;
    }

    .mobile-topic-menu > summary {
        display: flex;
        align-items: center;
        gap: .55rem;
        width: fit-content;
        padding: .5rem .75rem;
        border: 1px solid #bed0c4;
        border-radius: .5rem;
        background: #edf4ed;
        color: var(--eh-forest);
        font-size: .85rem;
        font-weight: 750;
        list-style: none;
        cursor: pointer;
    }

    .mobile-topic-menu > summary::-webkit-details-marker { display: none; }

    .mobile-topic-menu-icon {
        display: block;
        width: 1rem;
        height: .75rem;
        border-block: 2px solid currentColor;
        background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
    }

    .mobile-topic-menu[open] > .topic-sidebar {
        margin-top: .5rem;
        padding: .75rem;
        border: 1px solid var(--eh-line);
        border-radius: var(--eh-radius);
        background: var(--eh-paper, #fff);
    }
}
