/*
Theme Name: EasyAImail Journal
Theme URI: https://www.easyaimail.com/
Author: EasyAImail
Author URI: https://www.easyaimail.com/
Description: A fast, multilingual editorial theme built specifically for the EasyAImail blog.
Version: 1.2.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: easyaimail-journal
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --eam-bg: #f8f9fc;
  --eam-surface: #ffffff;
  --eam-surface-soft: #f3f5f9;
  --eam-text: #171b26;
  --eam-muted: #606a7b;
  --eam-line: #dfe4ec;
  --eam-line-strong: #cfd6e2;
  --eam-primary: #f45f78;
  --eam-primary-strong: #df4965;
  --eam-blue: #2563eb;
  --eam-radius: 8px;
  --eam-radius-small: 8px;
  --eam-shadow-control: 0 1px 2px rgba(19, 27, 44, 0.07), 0 7px 18px rgba(19, 27, 44, 0.05);
  --eam-shadow-card: 0 14px 34px rgba(19, 27, 44, 0.08);
  --eam-shadow: var(--eam-shadow-card);
  --eam-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --eam-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--eam-bg);
  color: var(--eam-text);
  font-family: "Onest", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(244, 95, 120, .2); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(244, 95, 120, .38);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  top: 10px;
  left: 10px;
  z-index: 99999;
  width: auto;
  height: auto;
  clip: auto;
  border-radius: 6px;
  background: var(--eam-surface);
  padding: 12px 16px;
  color: var(--eam-text);
  box-shadow: var(--eam-shadow);
}

.eam-container { width: min(var(--eam-content), calc(100% - 40px)); margin-inline: auto; }
.site-main { min-height: 60vh; }
.breadcrumbs { overflow: hidden; border-bottom: 1px solid var(--eam-line); background: var(--eam-surface); }
.breadcrumbs ol, .breadcrumbs #breadcrumbs, .breadcrumbs .eam-container > span { display: flex; min-height: 52px; align-items: center; gap: 8px; margin: 0; padding: 15px 0; list-style: none; color: #7b8596; font-size: 13px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.breadcrumbs .eam-container > span > span { display: inline-flex; min-width: 0; align-items: center; }
.breadcrumbs li { display: flex; min-width: 0; align-items: center; gap: 9px; }
.breadcrumbs li + li::before { color: #b0b8c5; content: "/"; }
.breadcrumbs a { color: #576276; transition: color 160ms ease; }
.breadcrumbs a:hover { color: var(--eam-primary-strong); }
.breadcrumbs li[aria-current="page"] span, .breadcrumbs .breadcrumb_last { overflow: hidden; color: #8d96a5; text-overflow: ellipsis; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 225, 234, .88);
  background: rgba(248, 249, 252, .9);
  box-shadow: 0 8px 24px rgba(19, 27, 44, .035);
  backdrop-filter: blur(18px) saturate(125%);
}
.admin-bar .site-header { top: 32px; }
.header-row { display: flex; min-height: 72px; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; flex: 0 0 auto; height: 48px; align-items: center; gap: 10px; }
.site-brand img { width: 35px; height: 35px; object-fit: contain; }
.brand-wordmark { color: #22293a; font-size: 18px; font-weight: 900; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.brand-wordmark > span { color: var(--eam-primary-strong); }
.primary-nav { display: flex; min-width: 0; flex: 1; justify-content: center; }
.primary-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { position: relative; display: block; color: #3f485a; font-size: 14px; font-weight: 800; transition: color 180ms var(--eam-ease); }
.primary-menu a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--eam-primary); content: ""; opacity: 0; transform: scaleX(.55); transition: opacity 180ms ease, transform 180ms ease; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { color: var(--eam-text); }
.primary-menu a:hover::after, .primary-menu .current-menu-item > a::after, .primary-menu .current_page_item > a::after { opacity: 1; transform: scaleX(1); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.language-switcher { position: relative; }
.language-switcher summary { display: flex; min-height: 42px; align-items: center; gap: 9px; border: 1px solid var(--eam-line-strong); border-radius: 999px; background: var(--eam-surface); padding: 0 15px; color: #3b4557; cursor: pointer; font-size: 13px; font-weight: 760; list-style: none; white-space: nowrap; box-shadow: inset 0 1px rgba(255,255,255,.82); transition: border-color 200ms var(--eam-ease), box-shadow 200ms var(--eam-ease), background-color 200ms var(--eam-ease); }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: translateY(-2px) rotate(45deg); transition: transform 160ms ease; }
.language-switcher[open] summary::after { transform: translateY(2px) rotate(225deg); }
.language-switcher summary:hover { border-color: #aeb8c8; box-shadow: var(--eam-shadow-control), inset 0 1px rgba(255,255,255,.86); }
.language-switcher ul { position: absolute; top: calc(100% + 9px); right: 0; z-index: 70; width: max-content; min-width: 168px; margin: 0; border: 1px solid var(--eam-line); border-radius: 8px; background: var(--eam-surface); padding: 7px; list-style: none; box-shadow: 0 18px 44px rgba(19,27,44,.12), inset 0 1px rgba(255,255,255,.9); }
.language-switcher a { display: block; border-radius: 7px; padding: 9px 11px; color: var(--eam-muted); font-size: 13px; font-weight: 700; }
.language-switcher a:hover, .language-switcher .current-lang a { background: var(--eam-surface-soft); color: var(--eam-primary-strong); }
.header-home-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border-radius: 999px; background: var(--eam-primary); padding: 0 19px; color: #fff; font-size: 13px; font-weight: 850; white-space: nowrap; box-shadow: 0 10px 26px rgba(244,95,120,.24), inset 0 1px rgba(255,255,255,.22); transition: background-color 200ms var(--eam-ease), box-shadow 200ms var(--eam-ease), transform 200ms var(--eam-ease); }
.header-home-link:hover { background: var(--eam-primary-strong); box-shadow: 0 13px 30px rgba(244,95,120,.3), inset 0 1px rgba(255,255,255,.18); transform: translateY(-2px); }
.header-home-link:active { box-shadow: 0 6px 16px rgba(244,95,120,.2), inset 0 1px rgba(255,255,255,.16); transform: translateY(0) scale(.985); }
.menu-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--eam-line); border-radius: 999px; background: var(--eam-surface); color: var(--eam-text); }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before, .menu-toggle-lines::after { position: absolute; left: 0; content: ""; }
.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

.home-intro { padding: 72px 0 48px; }
.home-intro-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); align-items: end; gap: 60px; }
.home-intro-grid > * { min-width: 0; }
.home-kicker { margin: 0 0 14px; color: var(--eam-primary-strong); font-size: 14px; font-weight: 820; }
.home-intro h1 { max-width: 820px; margin: 0; font-size: clamp(40px, 6.2vw, 74px); font-weight: 850; letter-spacing: -.055em; line-height: 1.04; }
.home-intro-copy { margin: 0 0 7px; color: var(--eam-muted); font-size: 17px; line-height: 1.65; }
.home-intro-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.text-link { color: var(--eam-text); font-size: 14px; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(244,95,120,.45); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--eam-primary-strong); }

.featured-wrap { padding-bottom: 76px; }
.featured-post { display: grid; overflow: hidden; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); border: 1px solid var(--eam-line); border-radius: var(--eam-radius); background: var(--eam-surface); box-shadow: var(--eam-shadow-card), inset 0 1px rgba(255,255,255,.84); transition: border-color 260ms var(--eam-ease), box-shadow 320ms var(--eam-ease), transform 320ms var(--eam-ease); }
.featured-media { min-height: 470px; background: var(--eam-surface-soft); }
.featured-media a, .featured-media img { width: 100%; height: 100%; }
.featured-media img { object-fit: cover; transition: transform 520ms var(--eam-ease); }
.featured-post:hover { border-color: var(--eam-line-strong); box-shadow: 0 22px 52px rgba(19,27,44,.11), inset 0 1px rgba(255,255,255,.9); transform: translateY(-3px); }
.featured-post:hover .featured-media img { transform: scale(1.018); }
.featured-fallback { position: relative; display: grid; height: 100%; min-height: 470px; place-items: center; overflow: hidden; background: linear-gradient(135deg, #ff7d71 0%, #f45f78 43%, #5578ef 100%); }
.featured-fallback::after { width: 42%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.45); border-radius: 34%; content: ""; transform: rotate(18deg); }
.featured-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 70px); }
.post-category { width: fit-content; margin-bottom: 20px; color: var(--eam-primary-strong); font-size: 13px; font-weight: 820; }
.featured-body h2 { margin: 0; font-size: clamp(30px, 3.7vw, 48px); font-weight: 830; letter-spacing: -.04em; line-height: 1.13; }
.featured-body h2 a:hover { color: var(--eam-primary-strong); }
.post-excerpt { margin: 20px 0 0; color: var(--eam-muted); font-size: 16px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 25px; color: #7a8496; font-size: 13px; font-weight: 650; }
.post-meta > * + *::before { margin-right: 14px; color: var(--eam-line-strong); content: "/"; }

.posts-section { border-top: 1px solid var(--eam-line); padding: 68px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading h2, .archive-header h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.12; }
.section-heading p { max-width: 500px; margin: 0; color: var(--eam-muted); }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 54px; }
.content-with-sidebar .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 26px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
.post-card { min-width: 0; }
.post-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--eam-line); border-radius: var(--eam-radius); background: var(--eam-surface-soft); box-shadow: 0 1px 2px rgba(19,27,44,.025); transition: border-color 220ms var(--eam-ease), box-shadow 220ms var(--eam-ease), transform 220ms var(--eam-ease); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--eam-ease); }
.post-card:hover .post-card-media { border-color: var(--eam-line-strong); box-shadow: var(--eam-shadow-card); transform: translateY(-3px); }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, #fff1f4, #edf2ff); }
.post-card-content { padding: 22px 4px 0; }
.post-card .post-category { margin-bottom: 10px; }
.post-card h2 { margin: 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 790; letter-spacing: -.03em; line-height: 1.25; }
.post-card h2 a { transition: color 200ms var(--eam-ease); }
.post-card h2 a:hover, .post-card:hover h2 a { color: var(--eam-primary-strong); }
.post-card .post-excerpt { display: -webkit-box; margin-top: 12px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.post-card .post-meta { margin-top: 16px; }

.archive-header { padding: 70px 0 44px; }
.archive-header p { max-width: 720px; margin: 14px 0 0; color: var(--eam-muted); font-size: 17px; }
.archive-content { padding-bottom: 90px; }

.pagination { margin-top: 58px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; border: 1px solid var(--eam-line); border-radius: 8px; background: var(--eam-surface); padding: 0 12px; color: var(--eam-muted); font-size: 14px; font-weight: 750; box-shadow: 0 1px 2px rgba(19,27,44,.035); transition: border-color 180ms var(--eam-ease), color 180ms var(--eam-ease), background-color 180ms var(--eam-ease), box-shadow 180ms var(--eam-ease), transform 180ms var(--eam-ease); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { border-color: rgba(244,95,120,.48); color: var(--eam-primary-strong); box-shadow: var(--eam-shadow-control); transform: translateY(-1px); }
.pagination .page-numbers.current { background: #fff2f5; }

.article-shell { padding: 70px 0 96px; }
.article-header { width: min(880px, 100%); margin: 0 auto 42px; text-align: center; }
.article-header .post-category { margin: 0 auto 16px; }
.article-header h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); font-weight: 850; letter-spacing: -.052em; line-height: 1.07; }
.article-header .post-meta { justify-content: center; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; align-items: start; justify-content: center; gap: 64px; }
.article-main { min-width: 0; }
.article-content { width: 100%; margin: 0 auto; color: #2b3445; font-size: 18px; line-height: 1.82; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--eam-text); line-height: 1.25; letter-spacing: -.025em; }
.article-content h2 { margin: 2.3em 0 .7em; font-size: 32px; }
.article-content h3 { margin: 1.9em 0 .65em; font-size: 25px; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 1.45em; }
.article-content a { color: var(--eam-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content a:hover { color: var(--eam-primary-strong); }
.article-content img { border: 1px solid var(--eam-line); border-radius: var(--eam-radius); box-shadow: 0 12px 30px rgba(19,27,44,.055); }
.article-content figure { margin: 2.2em 0; }
.article-content figcaption { margin-top: 10px; color: var(--eam-muted); font-size: 13px; text-align: center; }
.article-content blockquote { margin: 2em 0; border: 1px solid rgba(244,95,120,.16); border-left: 1px solid rgba(244,95,120,.34); border-radius: var(--eam-radius); background: #fff4f6; padding: 24px 28px; color: #3d4657; font-size: 20px; box-shadow: inset 0 1px rgba(255,255,255,.78); }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content pre { overflow-x: auto; border-radius: 10px; background: #111827; padding: 22px; color: #e5e7eb; font-size: 14px; line-height: 1.65; }
.article-content code { border-radius: 4px; background: #edf1f6; padding: .15em .35em; font-size: .9em; }
.article-content pre code { background: none; padding: 0; }
.article-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 15px; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.article-content th, .article-content td { border-bottom: 1px solid var(--eam-line); padding: 12px; text-align: left; }
.article-content iframe, .article-content video, .article-content embed, .article-content object { max-width: 100%; }
.article-footer { width: 100%; margin: 54px auto 0; border-top: 1px solid var(--eam-line); padding-top: 26px; }
.article-taxonomy { display: flex; flex-wrap: wrap; gap: 8px; }
.article-taxonomy a { border: 1px solid var(--eam-line); border-radius: 999px; background: var(--eam-surface); padding: 7px 12px; color: var(--eam-muted); font-size: 13px; font-weight: 700; }
.article-taxonomy a:hover { border-color: var(--eam-primary); color: var(--eam-primary-strong); }
.post-navigation { width: 100%; margin: 58px 0 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.post-navigation a { display: block; height: 100%; border: 1px solid var(--eam-line); border-radius: var(--eam-radius); background: var(--eam-surface); padding: 22px; box-shadow: 0 1px 2px rgba(19,27,44,.03), inset 0 1px rgba(255,255,255,.82); transition: border-color 220ms var(--eam-ease), box-shadow 220ms var(--eam-ease), transform 220ms var(--eam-ease); }
.post-navigation a:hover { border-color: rgba(244,95,120,.42); box-shadow: var(--eam-shadow-card); transform: translateY(-2px); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-subtitle { display: block; margin-bottom: 7px; color: var(--eam-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.post-navigation .nav-title { font-weight: 760; line-height: 1.4; }

.page-shell { padding: 72px 0 96px; }
.page-header { width: min(760px, 100%); margin: 0 auto 42px; }
.page-header h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.045em; line-height: 1.08; }
.empty-state { max-width: 640px; margin: 30px auto 90px; border: 1px solid var(--eam-line); border-radius: var(--eam-radius); background: var(--eam-surface); padding: 42px; text-align: center; }
.empty-state h1, .empty-state h2 { margin-top: 0; }
.empty-state p { color: var(--eam-muted); }
.search-form { display: flex; gap: 8px; margin-top: 24px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; border: 1px solid var(--eam-line-strong); border-radius: 999px; background: var(--eam-surface); padding: 0 17px; color: var(--eam-text); box-shadow: inset 0 1px 2px rgba(19,27,44,.035); transition: border-color 180ms var(--eam-ease), box-shadow 180ms var(--eam-ease); }
.search-field:hover { border-color: #aeb8c8; }
.search-field:focus { border-color: rgba(244,95,120,.64); outline: 0; box-shadow: 0 0 0 4px rgba(244,95,120,.11), inset 0 1px 2px rgba(19,27,44,.03); }
.search-submit { min-height: 46px; border: 0; border-radius: 999px; background: var(--eam-primary); padding: 0 20px; color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(244,95,120,.2), inset 0 1px rgba(255,255,255,.2); transition: background-color 180ms var(--eam-ease), box-shadow 180ms var(--eam-ease), transform 180ms var(--eam-ease); }
.search-submit:hover { background: var(--eam-primary-strong); box-shadow: 0 11px 24px rgba(244,95,120,.26), inset 0 1px rgba(255,255,255,.18); transform: translateY(-1px); }
.search-submit:active { transform: translateY(0) scale(.985); }

.content-sidebar { position: sticky; top: 100px; display: grid; gap: 18px; min-width: 0; }
.admin-bar .content-sidebar { top: 132px; }
.sidebar-block { border: 1px solid var(--eam-line); border-radius: var(--eam-radius); background: var(--eam-surface); padding: 22px; box-shadow: 0 1px 2px rgba(19,27,44,.025), inset 0 1px rgba(255,255,255,.8); transition: border-color 220ms var(--eam-ease), box-shadow 220ms var(--eam-ease); }
.sidebar-block:hover { border-color: var(--eam-line-strong); box-shadow: 0 10px 26px rgba(19,27,44,.055), inset 0 1px rgba(255,255,255,.88); }
.sidebar-block h2 { margin: 0 0 17px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.sidebar-search { background: var(--eam-surface-soft); }
.sidebar-search .search-form { display: grid; grid-template-columns: 1fr; margin-top: 0; }
.sidebar-search .search-submit { width: 100%; }
.category-list { margin: 0; padding: 0; list-style: none; }
.category-list li { display: flex; align-items: center; border-bottom: 1px solid var(--eam-line); color: #98a1b0; font-size: 12px; font-weight: 750; }
.category-list li:last-child { border-bottom: 0; }
.category-list a { flex: 1; padding: 10px 0; color: #3d4759; font-size: 14px; font-weight: 720; }
.category-list a:hover { color: var(--eam-primary-strong); }
.recommended-list { margin: 0; padding: 0; list-style: none; counter-reset: recommendation; }
.recommended-list li { position: relative; border-bottom: 1px solid var(--eam-line); padding: 0 0 14px 34px; margin-bottom: 14px; counter-increment: recommendation; }
.recommended-list li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.recommended-list li::before { position: absolute; top: 1px; left: 0; color: var(--eam-primary-strong); content: counter(recommendation, decimal-leading-zero); font-size: 12px; font-weight: 850; }
.recommended-list a { display: block; font-size: 14px; font-weight: 740; line-height: 1.45; }
.recommended-list a:hover { color: var(--eam-primary-strong); }
.recommended-list time { display: block; margin-top: 5px; color: #8c96a6; font-size: 11px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list a { border: 1px solid var(--eam-line); border-radius: 999px; background: var(--eam-bg); padding: 6px 10px; color: var(--eam-muted); font-size: 12px; font-weight: 700; }
.tag-list a:hover { border-color: rgba(244,95,120,.55); color: var(--eam-primary-strong); }

.search-hero { border-bottom: 1px solid var(--eam-line); background: var(--eam-surface-soft); padding: 68px 0 58px; }
.search-hero-inner { max-width: 780px; }
.search-hero-inner > p { margin: 0 0 10px; color: var(--eam-primary-strong); font-size: 14px; font-weight: 800; }
.search-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.045em; line-height: 1.1; }
.search-hero .search-form { max-width: 660px; margin-top: 28px; }
.search-hero + .archive-content { padding-top: 70px; }
.recovery-posts { margin-top: 52px; }
.recovery-posts > h2 { margin: 0 0 28px; font-size: 30px; letter-spacing: -.035em; }

.not-found-hero { padding: 78px 0 80px; }
.not-found-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 70px; }
.not-found-code { color: var(--eam-primary); font-size: clamp(130px, 20vw, 250px); font-weight: 880; letter-spacing: -.1em; line-height: .8; }
.not-found-copy { max-width: 620px; }
.not-found-copy h1 { margin: 0; font-size: clamp(42px, 6vw, 70px); letter-spacing: -.055em; line-height: 1.05; }
.not-found-copy > p { margin: 18px 0 0; color: var(--eam-muted); font-size: 18px; }
.not-found-copy .search-form { margin: 30px 0 24px; }
.not-found-latest { border-top: 1px solid var(--eam-line); background: var(--eam-surface); padding: 68px 0 90px; }

.article-share { margin-top: 54px; border: 1px solid var(--eam-line); border-radius: var(--eam-radius); background: var(--eam-surface); padding: 24px; box-shadow: 0 8px 24px rgba(19,27,44,.04), inset 0 1px rgba(255,255,255,.82); }
.article-share h2 { margin: 0 0 16px; font-size: 17px; letter-spacing: -.02em; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions a, .share-actions button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; border: 1px solid var(--eam-line); border-radius: 999px; background: var(--eam-bg); padding: 0 13px; color: #475267; font-size: 12px; font-weight: 760; box-shadow: 0 1px 2px rgba(19,27,44,.025); transition: border-color 180ms var(--eam-ease), color 180ms var(--eam-ease), background-color 180ms var(--eam-ease), box-shadow 180ms var(--eam-ease), transform 180ms var(--eam-ease); }
.share-actions button { cursor: pointer; }
.share-actions a:hover, .share-actions button:hover { border-color: rgba(244,95,120,.48); background: #fff4f6; color: var(--eam-primary-strong); box-shadow: var(--eam-shadow-control); transform: translateY(-1px); }
.share-actions a:active, .share-actions button:active { transform: translateY(0) scale(.98); }

.comments-area { width: 100%; margin: 60px 0 0; }
.comments-title { font-size: 25px; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin-bottom: 16px; border: 1px solid var(--eam-line); border-radius: var(--eam-radius-small); background: var(--eam-surface); padding: 20px; }
.comment-meta { font-size: 13px; }
.comment-content { margin-top: 14px; }
.comment-respond { margin-top: 44px; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 700; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid var(--eam-line-strong); border-radius: var(--eam-radius-small); background: var(--eam-surface); padding: 11px 13px; }
.comment-form .submit { border: 0; border-radius: 999px; background: var(--eam-primary); padding: 12px 20px; color: #fff; font-weight: 800; }

.site-footer { border-top: 1px solid rgba(255,255,255,.05); background: #111827; }
.footer-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 38px 0; }
.footer-meta { color: #8d98aa; font-size: 12px; }
.footer-meta strong { color: #d8dee9; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; color: #aeb8c9; font-size: 13px; font-weight: 700; }
.footer-links a { transition: color 180ms var(--eam-ease); }
.footer-links a:hover { color: #fff; }
.footer-menu { display: contents; margin: 0; padding: 0; list-style: none; }

@media (hover: none) {
  .featured-post:hover, .post-card:hover .post-card-media, .post-navigation a:hover, .share-actions a:hover, .share-actions button:hover {
    box-shadow: initial;
    transform: none;
  }

  .featured-post:hover .featured-media img, .post-card:hover .post-card-media img {
    transform: none;
  }

  .featured-post:active, .post-card:active .post-card-media, .post-navigation a:active {
    border-color: var(--eam-line-strong);
    transform: scale(.992);
  }
}

.alignwide { width: min(980px, calc(100vw - 40px)); max-width: none; margin-right: 50%; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-right: 50%; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.sticky { display: block; }
.bypostauthor { display: block; }

@media (max-width: 980px) {
  .header-row { gap: 16px; }
  .primary-menu { gap: 18px; }
  .header-home-link { display: none; }
  .home-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .home-intro-copy { max-width: 680px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-media, .featured-fallback { min-height: 380px; }
  .content-with-sidebar, .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; }
  .content-with-sidebar .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header-row { min-height: 64px; }
  .header-home-link { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; width: 44px; height: 44px; }
  .primary-nav { position: fixed; top: 65px; right: 0; bottom: 0; left: 0; display: none; overflow-y: auto; overscroll-behavior: contain; background: rgba(248,249,252,.98); padding: 24px max(20px, env(safe-area-inset-right)) max(112px, calc(88px + env(safe-area-inset-bottom))) max(20px, env(safe-area-inset-left)); backdrop-filter: blur(18px) saturate(125%); }
  .admin-bar .primary-nav { top: 97px; }
  .primary-nav.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu li { border-bottom: 1px solid var(--eam-line); }
  .primary-menu a { min-height: 52px; padding: 14px 2px; font-size: 17px; }
  .primary-menu a::after { display: none; }
  .language-switcher { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); left: max(20px, env(safe-area-inset-left)); display: none; }
  body.nav-open .language-switcher { display: block; }
  .language-switcher summary { min-height: 46px; justify-content: space-between; box-shadow: var(--eam-shadow-control); }
  .language-switcher ul { right: 0; bottom: calc(100% + 9px); left: 0; top: auto; width: auto; }
  .content-with-sidebar, .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .content-with-sidebar .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-search { grid-column: 1 / -1; }
  .article-content { max-width: 100%; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .primary-nav { top: 111px; }
}

@media (max-width: 760px) {
  .eam-container { width: min(100% - 28px, var(--eam-content)); }
  .header-row { min-height: 64px; }
  .breadcrumbs ol, .breadcrumbs #breadcrumbs, .breadcrumbs .eam-container > span { overflow-x: auto; min-height: 50px; padding: 14px 0; font-size: 12px; scrollbar-width: none; }
  .breadcrumbs ol::-webkit-scrollbar, .breadcrumbs #breadcrumbs::-webkit-scrollbar, .breadcrumbs .eam-container > span::-webkit-scrollbar { display: none; }
  .site-brand { height: 42px; }
  .site-brand img { width: 34px; height: 34px; }
  .site-brand .brand-wordmark { font-size: 17px; }
  .menu-toggle { display: grid; }
  .home-intro { padding: 48px 0 36px; }
  .home-intro h1 { font-size: clamp(38px, 13vw, 58px); }
  .featured-wrap { padding-bottom: 58px; }
  .featured-post { border-radius: 16px; }
  .featured-media, .featured-fallback { min-height: 250px; }
  .featured-body { padding: 28px 24px 32px; }
  .featured-body h2 { font-size: 30px; }
  .posts-section { padding: 52px 0 70px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .post-grid { grid-template-columns: 1fr; gap: 38px; }
  .content-with-sidebar, .article-layout { gap: 46px; }
  .content-with-sidebar .post-grid { grid-template-columns: 1fr; gap: 38px; }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar-search { grid-column: auto; }
  .archive-header, .article-shell, .page-shell { padding-top: 48px; }
  .article-header { text-align: left; }
  .article-header .post-category { margin-left: 0; }
  .article-header .post-meta { justify-content: flex-start; }
  .article-header h1 { font-size: clamp(36px, 11vw, 52px); }
  .article-content { font-size: 17px; }
  .article-content h2 { font-size: 28px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .not-found-hero { padding: 52px 0 60px; }
  .not-found-grid { grid-template-columns: 1fr; gap: 28px; }
  .not-found-code { font-size: clamp(112px, 38vw, 170px); }
}

@media (max-width: 420px) {
  .eam-container { width: min(100% - 24px, var(--eam-content)); }
  .brand-wordmark { font-size: 16px; }
  .site-brand { gap: 8px; }
  .home-intro h1 { max-width: 100%; font-size: clamp(32px, 10.2vw, 42px); letter-spacing: -.04em; overflow-wrap: normal; word-break: normal; }
  .home-intro-copy { max-width: 100%; overflow-wrap: anywhere; }
  .article-header h1 { font-size: clamp(32px, 10.5vw, 44px); letter-spacing: -.042em; }
  .featured-body { padding-inline: 20px; }
  .empty-state { padding: 30px 20px; }
  .search-form { display: grid; grid-template-columns: 1fr; }
  .search-submit { width: 100%; min-height: 48px; }
  .share-actions a, .share-actions button { min-height: 44px; }
  .footer-links { gap: 14px; }
}

@media (pointer: coarse) {
  .language-switcher summary, .language-switcher a, .menu-toggle, .header-home-link, .pagination .page-numbers, .share-actions a, .share-actions button, .article-taxonomy a, .tag-list a { min-height: 44px; }
  .category-list a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .post-navigation, .comments-area { display: none; }
  body { background: #fff; color: #000; }
  .article-shell { padding: 0; }
}
