.sheet {
    width: min(1180px, 100%);
}

.blog-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    margin-top: 26px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(211, 173, 114, 0.75);
    border-radius: 999px;
    color: var(--gold-2);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    text-align: center;
}

.chip:hover,
.chip:focus-visible {
    background: rgba(211, 173, 114, 0.12);
}

.chip.is-on {
    border-color: transparent;
    color: #24180c;
    background: linear-gradient(8deg, #d3ad72 0%, #ffefd4 100%);
    font-weight: 650;
}

.blog-tools .blog-search {
    width: min(260px, 100%);
}

.blog-search input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(211, 173, 114, 0.75);
    border-radius: 999px;
    background: transparent;
    color: #ffefd4;
    font: inherit;
    font-size: 14px;
}

.blog-search input::placeholder { color: #8d8376; }

.blog-search input:focus {
    outline: none;
    border-color: #ffefd4;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    height: 100%;
    padding: 12px 12px 14px;
    border: 0.85px solid rgba(211, 173, 114, 0.45);
    border-radius: 8.5px;
    background: #000;
    color: inherit;
    text-decoration: none;
}

.post-card:hover,
.post-card:focus-visible {
    border-color: #d3ad72;
    background: rgba(211, 173, 114, 0.06);
}

.post-card:focus-visible {
    outline: 2px solid #ffefd4;
    outline-offset: 3px;
}

.post-card-photo {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(211, 173, 114, 0.16), transparent 70%),
        #0b0b0b;
}

.post-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-card-title,
.post-card-lead,
.side-links a {
    overflow-wrap: break-word;
}

.post-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.post-card-lead {
    color: #cdcdcd;
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.post-card time {
    margin-top: auto;
    color: #d3ad72;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.blog-empty {
    margin-top: 28px;
    padding: 28px;
    border: 1px dashed rgba(211, 173, 114, 0.45);
    border-radius: 8.5px;
}

.blog-empty p {
    margin: 0;
    max-width: 42em;
    color: #cdcdcd;
    font-size: 16px;
    line-height: 1.5;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    align-items: start;
    margin-top: 22px;
}

.post-cover {
    display: block;
    width: 100%;
    height: auto;
    border: 0.85px solid rgba(211, 173, 114, 0.45);
    border-radius: 8.5px;
    background: #0b0b0b;
}

.post-date {
    margin: 16px 0 0;
    color: #d3ad72;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.06em;
}

.sheet h1.post-heading {
    margin: 12px 0 0;
    max-width: 22em;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    text-shadow: none;
}

.post-body {
    margin-top: 18px;
    max-width: 72ch;
    color: #d5d5d5;
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: break-word;
}

.post-body > :first-child { margin-top: 0; }

.post-body p { margin: 0 0 14px; }

.post-body h2,
.post-body h3 {
    margin: 28px 0 10px;
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
}

.post-body h2 { font-size: 22px; }
.post-body h3 { font-size: 18px; }

.post-body a { color: #ffefd4; }

.post-body ul,
.post-body ol {
    margin: 0 0 14px;
    padding-left: 1.2em;
}

.post-body li + li { margin-top: 6px; }

.post-body blockquote {
    margin: 0 0 14px;
    padding: 4px 0 4px 16px;
    border-left: 2px solid #d3ad72;
    color: #ffefd4;
}

.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0 14px;
    border-radius: 8px;
}

.post-body .table-wrap {
    margin: 0 0 16px;
    overflow-x: auto;
}

.post-body table {
    width: 100%;
    margin: 0 0 14px;
    border-collapse: collapse;
}

.post-body .table-wrap table { margin: 0; }

.post-body th,
.post-body td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(211, 173, 114, 0.35);
    text-align: left;
    vertical-align: top;
}

.post-body th {
    color: #ffefd4;
    font-weight: 650;
}

.blog-side {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 18px;
}

.blog-side h2 {
    margin: 0 0 8px;
    color: #d3ad72;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.side-links {
    display: flex;
    flex-direction: column;
}

.side-links a {
    padding: 8px 0;
    border-top: 1px solid rgba(211, 173, 114, 0.28);
    color: #ffefd4;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
}

.side-links a:last-child {
    border-bottom: 1px solid rgba(211, 173, 114, 0.28);
}

.side-links a:hover { color: #fff; }

.side-links a.is-on {
    color: #d3ad72;
    font-weight: 650;
}

.side-links time {
    display: block;
    margin-top: 3px;
    color: #8d8376;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.side-empty {
    margin: 0;
    color: #8d8376;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 980px) {
    .post-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .blog-side { position: static; }
}

@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
    .blog-search input { font-size: 16px; }
}
