﻿/* =========================================================
   SMART CONSULTING
   Useful list + article page
   ========================================================= */

.article-page,
.useful-page {
    --article-bg: #f5f1ea;
    --article-surface: #fbf9f5;
    --article-ink: #1b1a18;
    --article-muted: #706b65;
    --article-line: rgba(25,22,19,.12);
    --article-gold: #a78961;
    --article-gold-dark: #806442;
    --article-dark: #11191d;
    --article-dark-2: #1a252b;
    --article-serif: Georgia, "Times New Roman", serif;
    --article-sans: "Segoe UI", Arial, Helvetica, sans-serif;

    color: var(--article-ink);
    font-family: var(--article-sans);
}

.article-page *,
.useful-page * {
    box-sizing: border-box;
}

.article-container {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
}


/* =========================================================
   USEFUL — HEADER CONTRAST
   The global header lives outside .useful-page, so :has()
   scopes this override only to /Home/Useful.
   ========================================================= */

@media (min-width: 861px) {

    body:has(.useful-page) .site-header:not(.is-scrolled) {
        background: linear-gradient(
            180deg,
            rgba(8, 14, 17, .30) 0%,
            rgba(8, 14, 17, .10) 62%,
            rgba(8, 14, 17, 0) 100%
        );
    }

    body:has(.useful-page) .site-header:not(.is-scrolled) .main-nav a {
        color: rgba(255, 255, 255, .82);
        text-shadow: 0 1px 12px rgba(0, 0, 0, .18);
    }

    body:has(.useful-page) .site-header:not(.is-scrolled) .main-nav a:hover,
    body:has(.useful-page) .site-header:not(.is-scrolled) .main-nav a.is-active {
        color: #fff;
    }

    body:has(.useful-page) .site-header:not(.is-scrolled) .main-nav a:after {
        background: #c5a477;
    }

    body:has(.useful-page) .site-header:not(.is-scrolled) .brand img {
        filter: brightness(0) invert(1);
        opacity: .92;
    }
}


/* =========================================================
   USEFUL — HERO
   ========================================================= */

.useful-page {
    background: var(--article-bg);
}

.useful-hero {
    position: relative;
    overflow: hidden;
    padding: 176px 0 94px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(176,143,98,.28), transparent 29%),
        radial-gradient(circle at 8% 90%, rgba(72,99,111,.27), transparent 34%),
        linear-gradient(130deg, #0d1519 0%, #172229 55%, #0a1115 100%);
}

.useful-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .15;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 54px 54px;
    pointer-events: none;
}

.useful-orbit,
.read-hero-orbit {
    position: absolute;
    border: 1px solid rgba(212,181,138,.17);
    border-radius: 50%;
    pointer-events: none;
}

.useful-orbit-one {
    width: 560px;
    height: 560px;
    right: -270px;
    top: -155px;
}

.useful-orbit-two {
    width: 440px;
    height: 440px;
    right: -200px;
    top: -95px;
}

.useful-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.useful-kicker,
.useful-small-kicker,
.read-small-kicker {
    color: #cdb28e;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .23em;
}

.useful-kicker {
    margin-bottom: 23px;
}

.useful-hero h1 {
    margin: 0;
    max-width: 900px;
    font-family: var(--article-serif);
    font-size: clamp(58px, 6.2vw, 84px);
    line-height: .98;
    font-weight: 400;
    letter-spacing: -.045em;
}

.useful-hero p {
    max-width: 690px;
    margin: 29px 0 0;
    color: rgba(255,255,255,.67);
    font-size: 18px;
    line-height: 1.7;
}

.useful-hero-meta {
    margin-top: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255,255,255,.42);
    font-size: 11px;
    letter-spacing: .04em;
}

.useful-hero-meta strong {
    color: #e7d4b9;
    font-weight: 600;
}

.useful-meta-dot {
    color: var(--article-gold);
}


/* =========================================================
   USEFUL — LIST
   ========================================================= */

.useful-list-section {
    position: relative;
    padding: 88px 0 100px;
    background:
        radial-gradient(circle at 95% 8%, rgba(167,137,97,.10), transparent 24%),
        linear-gradient(180deg, #f5f1ea 0%, #eee7dc 100%);
}

.useful-section-head {
    margin-bottom: 36px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.useful-small-kicker,
.read-small-kicker {
    margin-bottom: 11px;
    color: var(--article-gold-dark);
}

.useful-section-head h2 {
    margin: 0;
    font-family: var(--article-serif);
    font-size: 46px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -.035em;
}

.useful-count {
    color: #b89b76;
    font-family: var(--article-serif);
    font-size: 42px;
    line-height: .9;
}

.useful-count span {
    display: block;
    margin-top: 6px;
    color: #898179;
    font-family: var(--article-sans);
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .12em;
    text-align: right;
    text-transform: uppercase;
}

.useful-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 19px;
}

.useful-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 275px;
    overflow: hidden;
    background: rgba(255,255,255,.77);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow:
        0 16px 42px rgba(44,35,25,.055),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.useful-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167,137,97,.23);
    box-shadow:
        0 26px 54px rgba(44,35,25,.10),
        inset 0 1px 0 rgba(255,255,255,.92);
}

.useful-card-featured {
    grid-column: 1 / -1;
    grid-template-columns: 48% 52%;
    min-height: 420px;
}

.useful-card-media {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: #dcd4c8;
}

.useful-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 275px;
    object-fit: cover;
    transition: transform .45s ease;
}

.useful-card-featured .useful-card-media img {
    min-height: 420px;
}

.useful-card:hover .useful-card-media img {
    transform: scale(1.035);
}

.useful-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 45%, rgba(15,23,27,.16));
    pointer-events: none;
}

.useful-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8e7353;
    background:
        radial-gradient(circle at 50% 50%, rgba(167,137,97,.12), transparent 34%),
        linear-gradient(145deg, #eee5d8, #dcd1c2);
}

.useful-card-placeholder span {
    font-family: var(--article-serif);
    font-size: 32px;
    letter-spacing: .15em;
}

.useful-card-placeholder small {
    margin-top: 7px;
    font-size: 9px;
    letter-spacing: .27em;
}

.useful-card-body {
    min-width: 0;
    padding: 29px 28px 27px;
    display: flex;
    flex-direction: column;
}

.useful-card-featured .useful-card-body {
    padding: 42px 42px 38px;
}

.useful-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.useful-tag,
.read-tag,
.related-tag {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid rgba(128,100,66,.18);
    border-radius: 100px;
    color: var(--article-gold-dark);
    background: rgba(167,137,97,.075);
    font-size: 8px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.useful-card-date {
    color: #999188;
    font-size: 9px;
}

.useful-card h2 {
    margin: 25px 0 18px;
    font-family: var(--article-serif);
    font-size: 27px;
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: -.025em;
}

.useful-card-featured h2 {
    max-width: 620px;
    margin-top: 32px;
    font-size: 43px;
    line-height: 1.05;
}

.useful-card h2 a {
    color: inherit;
    text-decoration: none;
}

.useful-card-footer {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(31,27,23,.08);
}

.useful-read-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #51483f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}

.useful-read-link span {
    color: var(--article-gold-dark);
    font-size: 16px;
    transition: transform .2s ease;
}

.useful-card:hover .useful-read-link span {
    transform: translateX(4px);
}

.useful-views {
    color: #aaa198;
    font-size: 9px;
}

.useful-empty {
    padding: 70px 24px;
    text-align: center;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(255,255,255,.84);
}

.useful-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    color: #9a7c59;
}

.useful-empty-icon svg {
    width: 100%;
    height: 100%;
}

.useful-empty h2 {
    margin: 0;
    font-family: var(--article-serif);
    font-size: 30px;
    font-weight: 400;
}

.useful-empty p {
    color: var(--article-muted);
}

.useful-pager {
    margin-top: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.useful-pager-arrow,
.useful-pager-pages a,
.useful-pager-pages > span {
    min-height: 39px;
    min-width: 39px;
    padding: 0 12px;
    border: 1px solid #d5ccc0;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.63);
    color: #665e56;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.useful-pager-arrow {
    min-width: 92px;
}

.useful-pager-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.useful-pager-pages .is-current {
    border-color: var(--article-gold-dark);
    background: var(--article-gold-dark);
    color: #fff;
}

.useful-pager-arrow.is-disabled {
    opacity: .36;
}


/* =========================================================
   READ — HERO
   ========================================================= */

.article-page {
    background: #fff;
}

.read-hero {
    position: relative;
    overflow: hidden;
    padding: 142px 0 70px;
    background:
        radial-gradient(circle at 88% 18%, rgba(167,137,97,.15), transparent 28%),
        linear-gradient(180deg, #f7f3ed 0%, #eee7dc 100%);
}

.read-hero:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to top, rgba(98,77,54,.04), transparent);
}

.read-hero-orbit-one {
    width: 520px;
    height: 520px;
    right: -250px;
    top: -180px;
}

.read-hero-orbit-two {
    width: 400px;
    height: 400px;
    right: -185px;
    top: -120px;
}

.read-breadcrumbs {
    position: relative;
    z-index: 2;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #928981;
    font-size: 10px;
}

.read-breadcrumbs a {
    color: #6d655e;
    text-decoration: none;
}

.read-breadcrumbs a:hover {
    color: var(--article-gold-dark);
}

.read-hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.read-tag {
    margin-bottom: 22px;
}

.read-hero h1 {
    margin: 0;
    max-width: 980px;
    font-family: var(--article-serif);
    font-size: clamp(52px, 6vw, 78px);
    line-height: 1.01;
    font-weight: 400;
    letter-spacing: -.045em;
    color: #181817;
}

.read-meta {
    margin-top: 26px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    color: #80786f;
    font-size: 11px;
}

.read-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.read-meta-icon {
    width: 17px;
    height: 17px;
    color: #9d805e;
}

.read-meta-icon svg {
    width: 100%;
    height: 100%;
}

.read-meta-separator {
    color: #b7a995;
}

.read-cover {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    overflow: hidden;
    background: #ddd4c8;
    box-shadow: 0 24px 70px rgba(39,31,24,.10);
}

.read-cover img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}


/* =========================================================
   READ — LAYOUT
   ========================================================= */

/* Global .page-shell has overflow:hidden in smart.css.
   That breaks position:sticky. For article pages we keep clipping
   without creating a scrolling ancestor. */
body:has(.article-page) .page-shell {
    overflow: visible;
    overflow: clip;
}

.read-content-section {
    padding: 74px 0 104px;
    background: #fff;
}

.read-layout {
    display: grid;
    grid-template-columns: minmax(0, 790px) 260px;
    justify-content: space-between;
    gap: 76px;
    align-items: start;
}

.read-main {
    min-width: 0;
}

.read-aside {
    min-width: 0;
    align-self: stretch;
}

.read-aside-sticky {
    position: sticky;
    top: 125px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(128,100,66,.28) transparent;
}

.toc-card {
    padding: 23px 21px;
    border-left: 1px solid rgba(167,137,97,.38);
    background: rgba(255,255,255,.46);
}

.toc-card-kicker {
    margin-bottom: 8px;
    color: var(--article-gold-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
}

.toc-card-title {
    margin-bottom: 17px;
    font-family: var(--article-serif);
    font-size: 23px;
}

.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.toc-list li {
    position: relative;
    margin: 0;
    padding: 0;
    counter-increment: toc;
}

.toc-link {
    position: relative;
    display: block;
    padding: 9px 3px 9px 28px;
    border-bottom: 1px solid rgba(31,27,23,.065);
    color: #777068;
    font-size: 11px;
    line-height: 1.45;
    text-decoration: none;
    transition:
        color .18s ease,
        padding-left .18s ease;
}

.toc-link:before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    color: #b39a7b;
    font-family: var(--article-serif);
    font-size: 9px;
}

.toc-link:hover,
.toc-link.is-active {
    color: #4b4034;
    padding-left: 31px;
}

.toc-link.is-active {
    color: #5f472f;
    background: linear-gradient(90deg, rgba(167,137,97,.11), transparent 88%);
    font-weight: 700;
}

.toc-link.is-active:before {
    color: var(--article-gold-dark);
}

.toc-link.is-active:after {
    content: "";
    position: absolute;
    left: -22px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--article-gold-dark);
}

.toc-mobile {
    display: none;
}


/* =========================================================
   ARTICLE TYPOGRAPHY
   ========================================================= */

.article-body {
    color: #302d29;
    font-family: var(--article-sans);
    font-size: 19px;
    line-height: 1.82;
}

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

.article-body p {
    margin: 0 0 1.45em;
}

.article-body h2 {
    scroll-margin-top: 130px;
    margin: 2.15em 0 .72em;
    font-family: var(--article-serif);
    font-size: 38px;
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: -.03em;
    color: #211f1c;
}

.article-body h3 {
    margin: 1.85em 0 .65em;
    font-family: var(--article-serif);
    font-size: 28px;
    line-height: 1.18;
    font-weight: 400;
    letter-spacing: -.02em;
    color: #28241f;
}

.article-body h4 {
    margin: 1.6em 0 .6em;
    font-size: 20px;
    line-height: 1.3;
    color: #332e29;
}

.article-body a {
    color: #745a3c;
    text-decoration: underline;
    text-decoration-color: rgba(116,90,60,.35);
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: var(--article-gold-dark);
    text-decoration-color: var(--article-gold-dark);
}

.article-body strong {
    color: #26221e;
    font-weight: 700;
}

.article-body em {
    color: #514b45;
}

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 32px auto;
    border-radius: 2px;
    box-shadow: 0 16px 42px rgba(38,30,22,.08);
}

.article-body figure {
    margin: 35px 0;
}

.article-body figcaption {
    margin-top: 8px;
    color: #91887e;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.article-body blockquote {
    margin: 34px 0;
    padding: 8px 0 8px 27px;
    border-left: 2px solid #b69770;
    color: #514a43;
    font-family: var(--article-serif);
    font-size: 25px;
    line-height: 1.5;
    font-style: italic;
}

.article-body hr {
    height: 1px;
    margin: 42px 0;
    border: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(167,137,97,.35),
        transparent
    );
}


/* =========================================================
   LISTS
   ========================================================= */

.article-body ul,
.article-body ol {
    margin: 1.1em 0 1.6em;
    padding-left: 0;
}

.article-body ul {
    list-style: none;
}

.article-body ul > li,
.article-body ol > li {
    position: relative;
    margin: 0 0 .72em;
    padding-left: 32px;
}

.article-body ul > li:before {
    content: "";
    position: absolute;
    left: 7px;
    top: .78em;
    width: 7px;
    height: 7px;
    border: 1px solid var(--article-gold-dark);
    border-radius: 50%;
}

.article-body ol {
    list-style: none;
    counter-reset: article-ol;
}

.article-body ol > li {
    counter-increment: article-ol;
}

.article-body ol > li:before {
    content: counter(article-ol);
    position: absolute;
    left: 0;
    top: .20em;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167,137,97,.10);
    color: var(--article-gold-dark);
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   TABLE
   ========================================================= */

.article-body table {
    width: 100%;
    margin: 34px 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 13px 34px rgba(44,35,25,.055);
    font-size: 15px;
    line-height: 1.55;
}

.article-body th,
.article-body td {
    padding: 14px 16px;
    border: 1px solid #e1d9ce;
    vertical-align: top;
    text-align: left;
}

.article-body th {
    background: #eee6da;
    color: #4f473f;
    font-weight: 700;
}

.article-body tbody tr:nth-child(even) td {
    background: #fbf8f4;
}


/* =========================================================
   SPECIAL CONTENT BLOCKS
   ========================================================= */

.article-body .divImp,
.article-body .divAdv,
.article-body .divSample {
    position: relative;
    margin: 34px 0;
    padding: 27px 28px 24px 31px;
    border: 1px solid rgba(31,27,23,.08);
    background: #fff;
    box-shadow: 0 12px 34px rgba(44,35,25,.045);
}

.article-body .divImp:before,
.article-body .divAdv:before,
.article-body .divSample:before {
    display: block;
    margin-bottom: 12px;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .16em;
}

.article-body .divImp {
    border-left: 4px solid #9c7751;
    background:
        linear-gradient(90deg, rgba(167,137,97,.09), transparent 45%),
        #fff;
}

.article-body .divImp:before {
    content: "ВАЖНО";
    color: #7f5f3e;
}

.article-body .divAdv {
    border-left: 4px solid #71836d;
    background:
        linear-gradient(90deg, rgba(113,131,109,.09), transparent 45%),
        #fff;
}

.article-body .divAdv:before {
    content: "СОВЕТ";
    color: #5d7059;
}

.article-body .divSample {
    border-left: 4px solid #687d89;
    background:
        linear-gradient(90deg, rgba(104,125,137,.09), transparent 45%),
        #fff;
}

.article-body .divSample:before {
    content: "ПРИМЕР";
    color: #576d79;
}

.article-body .divImp p:last-child,
.article-body .divAdv p:last-child,
.article-body .divSample p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FAQ
   ========================================================= */

.article-body .divFaq {
    margin: 44px 0;
    padding: 31px;
    background:
        radial-gradient(circle at 96% 0%, rgba(167,137,97,.10), transparent 24%),
        #f1eae0;
    border: 1px solid rgba(167,137,97,.13);
}

.article-body .divFaq > h2 {
    margin: 0 0 22px;
    font-size: 35px;
}

.article-body .divFaq > h3 {
    position: relative;
    margin: 0;
    padding: 17px 42px 17px 0;
    border-top: 1px solid rgba(31,27,23,.10);
    cursor: default;
    font-family: var(--article-serif);
    font-size: 21px;
    line-height: 1.3;
}

.article-body .divFaq > h3:first-of-type {
    border-top: 0;
}

.article-body .divFaq > h3 + p {
    margin: -3px 0 20px;
    color: #625b54;
    font-size: 16px;
    line-height: 1.7;
}

.article-body .divFaq.faq-enhanced > h3 {
    cursor: pointer;
}

.article-body .divFaq.faq-enhanced > h3 + p {
    display: none;
}

.article-body .divFaq.faq-enhanced > h3.is-open + p {
    display: block;
}

.faq-toggle-icon {
    position: absolute;
    right: 0;
    top: 15px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(128,100,66,.20);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--article-gold-dark);
    font-family: var(--article-sans);
    font-size: 16px;
    font-weight: 400;
}


/* =========================================================
   CODE
   ========================================================= */

.article-body code {
    padding: 2px 5px;
    border-radius: 3px;
    background: #eee7dd;
    color: #624d36;
    font-family: Consolas, "Courier New", monospace;
    font-size: .88em;
}

.article-body pre {
    margin: 31px 0;
    padding: 20px 22px;
    overflow-x: auto;
    border-radius: 3px;
    background: #172127;
    color: #e9e1d7;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.65;
}

.article-body pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}


/* =========================================================
   SHARE
   ========================================================= */

.share-box {
    position: relative;
    margin-top: 58px;
    padding: 28px 29px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 92% 18%, rgba(180,146,100,.22), transparent 28%),
        linear-gradient(135deg, #11191d, #1b282f);
}

.share-box:after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    bottom: -100px;
    border: 1px solid rgba(211,180,137,.16);
    border-radius: 50%;
}

.share-box-copy,
.share-buttons {
    position: relative;
    z-index: 2;
}

.share-box-kicker {
    margin-bottom: 7px;
    color: #cdb18c;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
}

.share-box h2 {
    margin: 0;
    font-family: var(--article-serif);
    font-size: 26px;
    font-weight: 400;
}

.share-box p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.51);
    font-size: 11px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.share-button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.78);
    font-family: var(--article-sans);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.share-button:hover {
    border-color: rgba(205,177,140,.42);
    color: #fff;
    background: rgba(205,177,140,.08);
}

.share-message {
    position: absolute;
    right: 29px;
    bottom: 7px;
    z-index: 3;
    color: #d8c09f;
    font-size: 9px;
    opacity: 0;
    transition: opacity .2s ease;
}

.share-message.is-visible {
    opacity: 1;
}


/* =========================================================
   RELATED
   ========================================================= */

.related-section {
    margin-top: 74px;
}

.related-heading {
    margin-bottom: 25px;
}

.related-heading h2 {
    margin: 0;
    font-family: var(--article-serif);
    font-size: 39px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.03em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.related-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(31,27,23,.07);
    color: inherit;
    text-decoration: none;
    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(44,35,25,.08);
}

.related-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e6ded3;
}

.related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .38s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.035);
}

.related-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c7252;
    background: linear-gradient(145deg, #eee6da, #dcd1c1);
    font-family: var(--article-serif);
    letter-spacing: .14em;
}

.related-card-body {
    flex: 1 1 auto;
    padding: 18px 17px 17px;
    display: flex;
    flex-direction: column;
}

.related-tag {
    align-self: flex-start;
    min-height: 23px;
    padding: 0 8px;
    font-size: 7px;
}

.related-card h3 {
    margin: 16px 0 18px;
    font-family: var(--article-serif);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 400;
}

.related-link {
    margin-top: auto;
    color: #796b5b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.related-link b {
    color: var(--article-gold-dark);
    font-size: 14px;
}


/* =========================================================
   CONTACT AUTHOR
   ========================================================= */

.author-contact {
    margin-top: 27px;
    padding: 29px;
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 22px;
    align-items: center;
    background:
        radial-gradient(circle at 90% 20%, rgba(167,137,97,.09), transparent 26%),
        #eee7dc;
    border: 1px solid rgba(167,137,97,.12);
}

.author-contact-icon {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(167,137,97,.21);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #987956;
    background: rgba(255,255,255,.35);
}

.author-contact-icon svg {
    width: 30px;
    height: 30px;
}

.author-contact h2 {
    margin: 0;
    font-family: var(--article-serif);
    font-size: 27px;
    font-weight: 400;
}

.author-contact p {
    max-width: 520px;
    margin: 7px 0 0;
    color: #766e65;
    font-size: 11px;
    line-height: 1.55;
}

.author-contact-button {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--article-gold-dark);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}

.author-contact-button span {
    font-size: 15px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 980px) {

    .article-container {
        width: min(100% - 36px, 900px);
    }

    .useful-articles-grid {
        grid-template-columns: 1fr;
    }

    .useful-card-featured {
        grid-column: auto;
    }

    .read-layout {
        grid-template-columns: minmax(0, 1fr) 225px;
        gap: 42px;
    }

    .article-body {
        font-size: 18px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE / TABLET
   ========================================================= */

@media (max-width: 760px) {

    .article-container {
        width: calc(100% - 28px);
    }

    .useful-hero {
        padding: 125px 0 69px;
    }

    .useful-hero h1 {
        font-size: 48px;
    }

    .useful-hero p {
        font-size: 16px;
    }

    .useful-list-section {
        padding: 62px 0 74px;
    }

    .useful-section-head h2 {
        font-size: 38px;
    }

    .useful-count {
        display: none;
    }

    .useful-card,
    .useful-card-featured {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .useful-card-media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .useful-card-media img,
    .useful-card-featured .useful-card-media img {
        min-height: 0;
        height: 100%;
    }

    .useful-card-body,
    .useful-card-featured .useful-card-body {
        padding: 25px 23px 23px;
    }

    .useful-card h2,
    .useful-card-featured h2 {
        margin: 22px 0 18px;
        font-size: 29px;
        line-height: 1.1;
    }

    .read-hero {
        padding: 112px 0 48px;
    }

    .read-breadcrumbs {
        margin-bottom: 27px;
    }

    .read-hero h1 {
        font-size: 47px;
    }

    .read-cover {
        margin-top: 35px;
    }

    .read-content-section {
        padding: 45px 0 74px;
    }

    .read-layout {
        display: block;
    }

    .read-aside {
        display: none;
    }

    .toc-mobile {
        display: block;
        margin-bottom: 34px;
        border: 1px solid rgba(167,137,97,.16);
        background: #f1eae0;
    }

    .toc-mobile-toggle {
        width: 100%;
        min-height: 66px;
        padding: 12px 16px;
        border: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent;
        color: #403a34;
        text-align: left;
        cursor: pointer;
    }

    .toc-mobile-toggle small {
        display: block;
        margin-bottom: 4px;
        color: var(--article-gold-dark);
        font-size: 7px;
        font-weight: 800;
        letter-spacing: .16em;
    }

    .toc-mobile-toggle strong {
        font-family: var(--article-serif);
        font-size: 20px;
        font-weight: 400;
    }

    .toc-mobile-toggle b {
        color: var(--article-gold-dark);
        font-size: 24px;
        font-weight: 400;
    }

    .toc-mobile-panel {
        display: none;
        padding: 0 16px 13px;
    }

    .toc-mobile.is-open .toc-mobile-panel {
        display: block;
    }

    .toc-mobile .toc-link {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 12px;
    }

    .article-body {
        font-size: 18px;
        line-height: 1.78;
    }

    .article-body h2 {
        font-size: 34px;
    }

    .article-body h3 {
        font-size: 25px;
    }

    .article-body table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .share-box {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        justify-content: flex-start;
    }

    .share-message {
        position: static;
        margin-top: -13px;
    }

    .author-contact {
        grid-template-columns: 52px 1fr;
    }

    .author-contact-icon {
        width: 52px;
        height: 52px;
    }

    .author-contact-button {
        grid-column: 1 / -1;
        justify-content: center;
    }
}


/* =========================================================
   RESPONSIVE — PHONE
   ========================================================= */

@media (max-width: 520px) {

    .article-container {
        width: calc(100% - 24px);
    }

    .useful-hero {
        padding-top: 112px;
    }

    .useful-kicker {
        font-size: 8px;
        letter-spacing: .18em;
    }

    .useful-hero h1 {
        font-size: 41px;
    }

    .useful-hero p {
        font-size: 15px;
        line-height: 1.62;
    }

    .useful-section-head {
        margin-bottom: 27px;
    }

    .useful-section-head h2 {
        font-size: 34px;
    }

    .useful-card-top {
        align-items: flex-start;
    }

    .useful-card h2,
    .useful-card-featured h2 {
        font-size: 26px;
    }

    .useful-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .useful-pager {
        margin-top: 34px;
        gap: 7px;
    }

    .useful-pager-arrow {
        min-width: 76px;
        padding: 0 7px;
        font-size: 8px;
    }

    .useful-pager-pages {
        gap: 3px;
    }

    .useful-pager-pages a,
    .useful-pager-pages > span {
        min-width: 34px;
        min-height: 36px;
        padding: 0 8px;
    }

    .read-hero {
        padding-top: 101px;
    }

    .read-breadcrumbs {
        font-size: 9px;
        line-height: 1.45;
    }

    .read-tag {
        margin-bottom: 18px;
    }

    .read-hero h1 {
        font-size: 40px;
        line-height: 1.02;
    }

    .read-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .read-meta-separator {
        display: none;
    }

    .read-cover {
        margin-left: -12px;
        margin-right: -12px;
    }

    .article-body {
        font-size: 17px;
        line-height: 1.76;
    }

    .article-body h2 {
        margin-top: 1.9em;
        font-size: 31px;
    }

    .article-body h3 {
        font-size: 23px;
    }

    .article-body blockquote {
        padding-left: 20px;
        font-size: 21px;
    }

    .article-body ul > li,
    .article-body ol > li {
        padding-left: 29px;
    }

    .article-body .divImp,
    .article-body .divAdv,
    .article-body .divSample {
        margin-left: -2px;
        margin-right: -2px;
        padding: 22px 20px 20px 23px;
    }

    .article-body .divFaq {
        margin-left: -3px;
        margin-right: -3px;
        padding: 24px 19px;
    }

    .article-body .divFaq > h2 {
        font-size: 31px;
    }

    .article-body .divFaq > h3 {
        font-size: 19px;
    }

    .article-body th,
    .article-body td {
        min-width: 145px;
        padding: 12px;
        font-size: 14px;
    }

    .share-box {
        margin-left: -2px;
        margin-right: -2px;
        padding: 24px 20px;
    }

    .share-box h2 {
        font-size: 24px;
    }

    .share-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .share-button {
        width: 100%;
    }

    .related-section {
        margin-top: 58px;
    }

    .related-heading h2 {
        font-size: 33px;
    }

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

    .related-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .author-contact {
        padding: 24px 20px;
        grid-template-columns: 1fr;
    }

    .author-contact-icon {
        display: none;
    }

    .author-contact h2 {
        font-size: 25px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .article-page *,
    .article-page *:before,
    .article-page *:after,
    .useful-page *,
    .useful-page *:before,
    .useful-page *:after {
        transition-duration: .01ms !important;
    }
}
