:root {
    color-scheme: light;
    --bg: #f5f7f2;
    --paper: #ffffff;
    --ink: #17211b;
    --muted: #66736b;
    --line: #dfe6dd;
    --accent: #007f68;
    --accent-strong: #005b4d;
    --warm: #d85b42;
    --gold: #e5b53d;
    --shadow: 0 16px 40px rgba(23, 33, 27, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0) 240px),
        var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.68;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(23, 33, 27, 0.1);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 146px;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 176px;
    height: 44px;
}

.search-form,
.search-page-form {
    display: flex;
    align-items: stretch;
}

.search-form {
    flex: 1 1 420px;
    width: min(100%, 520px);
    max-width: 520px;
}

.search-form input,
.search-page-form input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.2;
    padding: 11px 13px;
    outline: none;
}

.search-form input:focus,
.search-page-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 127, 104, 0.14);
}

.search-form button,
.search-page-form button {
    border: 1px solid var(--accent);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: var(--accent);
    color: #fff;
    font: 700 15px/1 Arial, Helvetica, sans-serif;
    padding: 0 15px;
    cursor: pointer;
}

.search-form button {
    width: 48px;
    display: grid;
    place-items: center;
    padding: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.header-nav a {
    color: var(--ink);
    text-decoration: none;
}

.header-nav a:hover {
    color: var(--accent-strong);
}

.page-shell {
    display: block;
    padding: 32px 326px 58px;
}

.content-column {
    width: min(100%, 650px);
    max-width: 650px;
    margin: 0 auto;
}

.home-view .content-column {
    width: min(100%, 1180px);
    max-width: 1180px;
}

.ad-rail {
    position: fixed;
    top: 82px;
    z-index: 8;
    min-height: 600px;
}

.ad-left {
    left: 1px;
}

.ad-right {
    right: 1px;
}

.ad-unit {
    width: max-content;
    min-height: 600px;
}

.ad-left-slim,
.ad-right-slim {
    display: none;
}

.intro-panel,
.search-panel,
.post-article {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 33, 27, 0.1);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro-panel,
.search-panel {
    padding: 26px 28px;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.18;
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: 42px;
}

.title-list {
    display: grid;
    gap: 10px;
}

.title-card {
    background: var(--paper);
    border: 1px solid rgba(23, 33, 27, 0.1);
    border-radius: 8px;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.title-card:hover {
    border-color: rgba(0, 127, 104, 0.38);
    box-shadow: 0 10px 26px rgba(23, 33, 27, 0.08);
    transform: translateY(-1px);
}

.title-card a {
    display: block;
    padding: 17px 18px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.title-card a:hover {
    color: var(--accent-strong);
}

.home-view {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 246, 0.76) 360px, #fbfcfb 740px),
        #fbfcfb;
    font-size: 16px;
    line-height: 1.5;
}

.home-view .page-shell {
    padding-top: 28px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 318px;
    margin-bottom: 22px;
    padding: 38px 34px 30px;
    border: 1px solid rgba(23, 33, 27, 0.08);
    border-radius: 12px;
    background:
        radial-gradient(circle at 0 0, rgba(0, 127, 104, 0.12) 0 1px, transparent 2px) 0 0 / 18px 18px,
        linear-gradient(135deg, rgba(235, 247, 240, 0.96), rgba(255, 255, 255, 0.96) 52%, rgba(229, 243, 237, 0.96));
    box-shadow: 0 24px 70px rgba(23, 33, 27, 0.08);
    text-align: center;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -170px;
    width: 470px;
    height: 280px;
    border-radius: 56% 44% 0 0;
    background: rgba(0, 127, 104, 0.08);
    transform: rotate(-11deg);
}

.home-hero > * {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 18px;
    padding: 7px 15px;
    border: 1px solid rgba(23, 33, 27, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #2b3932;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-kicker span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 1px;
}

.home-hero h1 {
    max-width: 610px;
    margin: 0 auto;
    font-size: clamp(42px, 5vw, 62px);
    line-height: 0.98;
    font-weight: 900;
}

.home-hero h1 strong {
    color: var(--accent);
    font-weight: inherit;
}

.hero-copy {
    max-width: 520px;
    margin: 16px auto 24px;
    color: #5a675f;
    font-size: 17px;
    line-height: 1.42;
}

.hero-search {
    display: flex;
    width: min(100%, 590px);
    margin: 0 auto;
    border: 1px solid rgba(23, 33, 27, 0.14);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 33, 27, 0.08);
    overflow: hidden;
}

.hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 16px/1.2 Arial, Helvetica, sans-serif;
    padding: 18px 20px;
    outline: none;
}

.hero-search button {
    min-width: 96px;
    margin: 4px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #098764, #006b53);
    color: #fff;
    font: 800 16px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.hero-trends {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 15px;
    flex-wrap: wrap;
    color: #2f3d35;
    font-size: 13px;
    font-weight: 700;
}

.hero-trends a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid rgba(0, 127, 104, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--accent-strong);
    text-decoration: none;
}

.hero-trends a:hover {
    border-color: rgba(0, 127, 104, 0.36);
    background: rgba(230, 246, 238, 0.82);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px;
}

.section-heading h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 900;
}

.section-heading a {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.home-topics {
    margin-bottom: 18px;
}

.topic-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.topic-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid rgba(23, 33, 27, 0.1);
    border-radius: 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(23, 33, 27, 0.04);
}

.topic-icon,
.topic-card-icon,
.definition-icon,
.archive-intro-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--accent-strong);
}

.topic-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
}

.ui-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.topic-icon .ui-icon {
    width: 17px;
    height: 17px;
}

.topic-label {
    min-width: 0;
}

.topic-technology { background: #f0faed; color: #214e35; }
.topic-internet { background: #eefafa; color: #26695f; }
.topic-definition { background: #fbf5ff; color: #7452b5; }
.topic-education { background: #f3f7ff; color: #3860c9; }
.topic-electronics { background: #fff8ea; color: #a96900; }
.topic-media-files { background: #eefafa; color: #26695f; }
.topic-slang { background: #fff3f7; color: #bd4c7d; }

.home-section {
    margin-top: 18px;
}

.home-definition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-definition-card {
    min-height: 122px;
}

.home-definition-card a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 16px;
}

.definition-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f7ee;
    color: var(--accent-strong);
}

.definition-icon .ui-icon {
    width: 30px;
    height: 30px;
}

.icon-tone-1 { background: #e8f7ee; color: #007f68; }
.icon-tone-2 { background: #eef4ff; color: #2c65bf; }
.icon-tone-3 { background: #f6edff; color: #7c45bc; }
.icon-tone-4 { background: #eaf8f5; color: #007c68; }
.icon-tone-5 { background: #fff4e8; color: #c56f11; }
.icon-tone-6 { background: #edf5ff; color: #315fb6; }
.icon-tone-7 { background: #fff3f7; color: #bd4c7d; }
.icon-tone-8 { background: #f2f8ec; color: #42782c; }
.icon-tone-9 { background: #f5f3ff; color: #5f55b7; }
.icon-tone-10 { background: #eefafa; color: #26695f; }

.definition-text {
    min-width: 0;
}

.definition-text strong,
.definition-text span {
    display: block;
}

.definition-text strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.16;
}

.definition-text span {
    margin-top: 7px;
    color: #3f4c45;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.definition-arrow {
    color: var(--accent-strong);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

.home-new-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 16px 20px;
    border: 1px solid rgba(23, 33, 27, 0.1);
    border-radius: 10px;
    background: linear-gradient(90deg, #f8fcf9, #ffffff);
}

.home-new-panel div {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
}

.book-mark {
    grid-row: span 2;
    width: 46px;
    height: 40px;
    border: 4px solid var(--accent);
    border-radius: 5px 5px 10px 10px;
}

.home-new-panel h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.home-new-panel p {
    margin: 0;
    color: #506058;
    font-size: 14px;
    font-weight: 600;
}

.home-new-panel > a {
    flex: 0 0 auto;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.anchor-target {
    display: block;
    position: relative;
    top: -86px;
}

.archive-intro {
    display: flex;
    align-items: center;
    gap: 18px;
}

.archive-intro h1 {
    margin-bottom: 8px;
}

.archive-intro p:last-child {
    margin: 0;
    color: #56645c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.archive-intro-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
}

.archive-intro-icon .ui-icon {
    width: 32px;
    height: 32px;
}

.compact-topics {
    margin-top: 18px;
}

.topics-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.topic-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 128px;
    padding: 18px;
    border: 1px solid rgba(23, 33, 27, 0.1);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(23, 33, 27, 0.05);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.topic-card:hover {
    border-color: rgba(0, 127, 104, 0.32);
    box-shadow: 0 14px 30px rgba(23, 33, 27, 0.08);
    transform: translateY(-1px);
}

.topic-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.topic-card-icon .ui-icon {
    width: 27px;
    height: 27px;
}

.topic-card strong,
.topic-card span span,
.topic-card em {
    display: block;
}

.topic-card strong {
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.18;
}

.topic-card span span {
    color: #536159;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.topic-card em {
    margin-top: 9px;
    color: var(--accent-strong);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

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

.page-link,
.page-status {
    border: 1px solid rgba(23, 33, 27, 0.1);
    border-radius: 8px;
    background: #fff;
    padding: 10px 13px;
    font-size: 15px;
    font-weight: 800;
}

.page-link {
    color: var(--accent-strong);
    text-decoration: none;
}

.page-status {
    color: var(--muted);
    font-weight: 700;
}

.post-article {
    padding: 32px 34px;
}

.post-view {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.86), rgba(255,255,255,0.7)),
        radial-gradient(circle at 12% 12%, rgba(0, 127, 104, 0.06), transparent 34%),
        var(--bg);
}

.post-view .post-article {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.static-page .post-content h2:first-child {
    margin-top: 0;
}

.static-page-header p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.post-header {
    padding-bottom: 0;
    margin-bottom: 18px;
    border-bottom: 0;
}

.post-header h1 {
    max-width: 620px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(46px, 4.7vw, 62px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: 0;
}

.post-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.post-meta-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-meta-separator {
    width: 1px;
    height: 18px;
    background: rgba(23, 33, 27, 0.18);
}

.post-visual {
    position: relative;
    min-height: 126px;
    margin: 18px 0 24px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 27, 0.14);
    border-radius: 8px;
    color: hsl(var(--post-hue) 58% 29%);
    background: hsl(var(--post-hue) 38% 95%);
}

.post-visual-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.post-visual-items {
    position: relative;
    z-index: 1;
    min-height: 126px;
    display: grid;
    grid-template-columns: 74px minmax(34px, 1fr) 116px minmax(34px, 1fr) 74px;
    align-items: center;
    gap: 18px;
    padding: 0 74px;
}

.post-visual-node {
    display: grid;
    place-items: center;
}

.post-visual-side {
    width: 62px;
    height: 62px;
    border: 1px solid hsla(var(--post-hue), 34%, 35%, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: hsl(var(--post-hue) 50% 31%);
}

.post-visual-side .ui-icon {
    width: 34px;
    height: 34px;
}

.post-visual-main {
    width: 104px;
    height: 104px;
    border: 3px solid currentColor;
    border-radius: 34px;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
        hsl(var(--post-hue-two) 38% 94%);
    color: hsl(var(--post-hue) 62% 29%);
    box-shadow: 0 18px 36px rgba(23, 33, 27, 0.08);
}

.post-visual-main .ui-icon {
    width: 49px;
    height: 49px;
}

.post-visual-line {
    display: block;
    min-width: 0;
    height: 2px;
    background-image: linear-gradient(90deg, currentColor 0 3px, transparent 3px 12px);
    background-size: 12px 2px;
    opacity: 0.65;
}

.content-ad {
    width: 100%;
    max-width: 100%;
    min-height: 90px;
    margin: 0 auto 24px;
    padding: 10px 0;
    text-align: center;
    overflow: hidden;
}

.content-ad + .post-content {
    margin-top: 4px;
}

.post-content + .content-ad {
    margin-top: 28px;
    margin-bottom: 28px;
}

.content-ad .adsbygoogle {
    display: block !important;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.post-content {
    overflow-wrap: break-word;
    color: #111916;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.62;
}

.post-content h2 {
    margin: 30px 0 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 33, 27, 0.16);
    font-size: 25px;
}

.post-content h3 {
    margin: 25px 0 9px;
    font-size: 22px;
}

.post-content p,
.post-content ul,
.post-content ol {
    margin: 0 0 18px;
}

.post-content ul,
.post-content ol {
    padding-left: 26px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content > p:first-of-type::first-letter {
    float: left;
    margin: 7px 12px 0 0;
    color: var(--accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 76px;
    font-weight: 700;
    line-height: 0.8;
}

.post-short {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    margin: 24px 0;
    padding: 15px 17px;
    border: 1px solid rgba(0, 127, 104, 0.22);
    border-radius: 8px;
    background: rgba(247, 252, 249, 0.9);
    color: #1d2b25;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.post-short p {
    margin: 0;
}

.post-short-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.post-short-icon .ui-icon {
    width: 24px;
    height: 24px;
}

.post-emoji-feature {
    display: grid;
    place-items: center;
    min-height: 160px;
    margin: -6px 0 28px;
    padding: 18px;
    border: 1px solid rgba(0, 127, 104, 0.16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 22% 20%, rgba(0, 127, 104, 0.11), transparent 30%),
        radial-gradient(circle at 78% 78%, rgba(30, 145, 110, 0.1), transparent 34%),
        #fbfdfb;
    text-align: center;
}

.post-emoji-feature span {
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", Arial, Helvetica, sans-serif;
    font-size: clamp(82px, 17vw, 142px);
    line-height: 1;
}

.post-content img {
    display: block;
    margin: 24px auto;
    border-radius: 8px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.post-content th,
.post-content td {
    border: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
}

.post-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--warm);
    background: #fff7f4;
}

.related-posts {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.related-posts h2 {
    margin: 0 0 12px;
    color: #34433b;
    font-size: 13px;
    font-weight: 900;
    text-transform: none;
}

.related-posts ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-posts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(0, 127, 104, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.related-posts a::after {
    content: '\203A';
    font-size: 19px;
    line-height: 1;
}

.related-posts a:hover {
    color: var(--accent-strong);
    border-color: rgba(0, 127, 104, 0.34);
    background: #fff;
}

.search-page-form {
    margin-top: 18px;
}

.search-page-form button {
    min-width: 96px;
}

.result-count,
.no-results {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.search-results:empty {
    display: none;
}

.contact-page-header {
    margin-bottom: 22px;
}

.contact-layout {
    display: grid;
    gap: 30px;
}

.contact-panel h2,
.contact-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 7px;
    margin: 0;
}

.form-field label,
.checkbox-field {
    color: #334139;
    font-size: 14px;
    font-weight: 900;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.35;
    padding: 12px 13px;
    outline: none;
}

.form-field textarea {
    min-height: 190px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 127, 104, 0.14);
}

.captcha-box {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(0, 127, 104, 0.16);
    border-radius: 8px;
    background: #f8fcf9;
}

.captcha-field input {
    max-width: 170px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.35;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.contact-submit {
    width: max-content;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font: 900 15px/1 Arial, Helvetica, sans-serif;
    padding: 14px 18px;
}

.contact-submit:hover {
    background: var(--accent-strong);
}

.form-status {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.form-status ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.form-status-success {
    border: 1px solid rgba(0, 127, 104, 0.24);
    background: #edf8f3;
    color: #075f4f;
}

.form-status-error {
    border: 1px solid rgba(216, 91, 66, 0.28);
    background: #fff6f3;
    color: #843623;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-card {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.contact-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.contact-card a {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--accent-strong);
    font-weight: 900;
    text-decoration: none;
}

.contact-note {
    margin-top: 16px !important;
    font-size: 14px;
}

.site-footer {
    margin-left: 326px;
    margin-right: 326px;
    border-top: 1px solid rgba(23, 33, 27, 0.1);
    background: #fff;
}

.footer-inner {
    width: min(100%, 650px);
    margin: 0 auto;
    padding: 28px 18px 24px;
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) repeat(2, minmax(82px, 0.6fr));
    align-items: start;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.footer-inner a {
    color: var(--accent-strong);
    text-decoration: none;
}

.footer-brand img {
    display: block;
    width: 150px;
    height: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 290px;
    margin: 0;
    line-height: 1.45;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-links h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.footer-links a {
    color: #607066;
    font-size: 13px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--accent-strong);
}

.footer-bottom {
    width: min(100%, 650px);
    margin: 0 auto;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(23, 33, 27, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.footer-bottom a {
    color: var(--accent-strong);
    text-decoration: none;
}

@media (max-width: 1700px) {
    .home-definition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-strip,
    .topics-index-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1329px) {
    .page-shell {
        padding-left: 146px;
        padding-right: 326px;
    }

    .site-footer {
        margin-left: 146px;
        margin-right: 326px;
    }

    .ad-left-large {
        display: none;
    }

    .ad-left-slim {
        display: block;
    }
}

@media (max-width: 1149px) {
    .page-shell {
        padding-left: 16px;
        padding-right: 326px;
    }

    .site-footer {
        margin-left: 16px;
        margin-right: 326px;
    }

    .ad-left {
        display: none;
    }
}

@media (max-width: 1005px) {
    .page-shell {
        padding-left: 12px;
        padding-right: 186px;
    }

    .site-footer {
        margin-left: 12px;
        margin-right: 186px;
    }

    .ad-right-large {
        display: none;
    }

    .ad-right-slim {
        display: block;
    }

}

@media (max-width: 865px) {
    .site-header {
        position: static;
    }

    .header-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .header-nav {
        justify-content: center;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .brand img {
        width: 158px;
        height: auto;
    }

    .search-form {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .page-shell {
        display: block;
        padding: 20px 14px 42px;
    }

    .site-footer {
        margin-left: 0;
        margin-right: 0;
    }

    .content-column,
    .home-view .content-column {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .home-view .page-shell {
        padding-left: 0;
        padding-right: 0;
    }

    .home-view .content-column {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 14px;
        padding-right: 14px;
    }

    .ad-rail {
        display: none;
    }

    .post-visual-items {
        grid-template-columns: 52px minmax(20px, 1fr) 88px minmax(20px, 1fr) 52px;
        gap: 10px;
        padding: 0 28px;
    }

    .post-visual-side {
        width: 50px;
        height: 50px;
    }

    .post-visual-side .ui-icon {
        width: 27px;
        height: 27px;
    }

    .post-visual-main {
        width: 82px;
        height: 82px;
        border-radius: 25px;
    }

    .post-visual-main .ui-icon {
        width: 40px;
        height: 40px;
    }

    .home-hero {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 30px 18px 24px;
    }

    .home-topics,
    .home-section,
    .home-new-panel,
    .home-view .pagination {
        width: 100%;
        max-width: 100%;
    }

    .home-hero h1 {
        font-size: 38px;
    }

    .hero-search {
        display: grid;
        padding: 4px;
    }

    .hero-search input {
        padding: 15px 14px;
    }

    .hero-search button {
        min-height: 44px;
        margin: 0;
    }

    .topic-strip,
    .topics-index-grid,
    .home-definition-grid {
        grid-template-columns: 1fr;
    }

    .home-definition-card a {
        grid-template-columns: 66px minmax(0, 1fr) 14px;
        padding: 16px 14px;
    }

    .definition-icon {
        width: 54px;
        height: 54px;
    }

    .definition-icon .ui-icon {
        width: 26px;
        height: 26px;
    }

    .archive-intro {
        align-items: flex-start;
    }

    .archive-intro-icon {
        width: 56px;
        height: 56px;
        border-radius: 15px;
    }

    .archive-intro-icon .ui-icon {
        width: 27px;
        height: 27px;
    }

    .home-new-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .home-new-panel > a {
        text-align: center;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
        line-height: 1.64;
    }

    h1,
    .post-header h1 {
        font-size: 31px;
    }

    .post-view .post-header h1 {
        font-size: 39px;
    }

    .home-hero h1 {
        max-width: 310px;
        font-size: 30px;
        line-height: 1.04;
    }

    .hero-kicker {
        width: auto;
        max-width: 310px;
        white-space: normal;
    }

    .hero-copy,
    .hero-search,
    .hero-trends {
        max-width: 310px;
    }

    .intro-panel,
    .search-panel,
    .post-article {
        padding: 22px 18px;
    }

    .post-view .post-article {
        padding: 0;
    }

    .post-meta-row {
        gap: 9px;
        margin-top: 17px;
    }

    .post-visual {
        min-height: 110px;
    }

    .post-visual-items {
        min-height: 110px;
        grid-template-columns: 42px minmax(12px, 1fr) 72px minmax(12px, 1fr) 42px;
        padding: 0 16px;
    }

    .post-visual-side {
        width: 42px;
        height: 42px;
    }

    .post-visual-side .ui-icon {
        width: 23px;
        height: 23px;
    }

    .post-visual-main {
        width: 70px;
        height: 70px;
        border-width: 2px;
        border-radius: 21px;
    }

    .post-visual-main .ui-icon {
        width: 34px;
        height: 34px;
    }

    .post-content {
        font-size: 17px;
    }

    .post-content > p:first-of-type::first-letter {
        font-size: 64px;
        margin-right: 10px;
    }

    .home-hero {
        border-radius: 10px;
    }

    .hero-copy {
        font-size: 15px;
    }

    .title-card a {
        padding: 15px 16px;
        font-size: 17px;
    }

    .home-definition-card a {
        padding: 15px 13px;
    }

    .home-new-panel div {
        grid-template-columns: 1fr;
    }

    .book-mark {
        display: none;
    }

    .archive-intro {
        display: block;
    }

    .archive-intro-icon {
        margin-bottom: 14px;
    }

    .topic-card {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: 0;
        padding: 15px;
    }

    .topic-card-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .page-link,
    .page-status {
        width: 100%;
        text-align: center;
    }

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

    .contact-submit {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }
}
