/*
Theme Name: Omid Editorial Standalone
Description: پوستهٔ مستقل، راست‌چین و خودکفای وردپرس برای وبلاگ و مقاله.
Author: Manus AI
Version: 2.5.0
Text Domain: omid-editorial-standalone
Tags: blog, news, rtl-language-support, custom-logo, custom-menu, featured-images
*/

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: "PeydaFaNumWeb";
  src: local("PeydaFaNumWeb"),
       url("assets/font/PeydaFaNumWeb-Regular.woff2") format("woff2"),
       url("assets/font/PeydaFaNumWeb-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  /* Brand */
  --oe-brand: #1D4533;
  --oe-brand-deep: #17372A;
  --oe-brand-soft: rgba(29, 69, 51, 0.09);
  --oe-cream: #F7EAE0;

  /* Text */
  --oe-ink: #17372A;
  --oe-text: #314A42;
  --oe-muted: #64748B;

  /* Surfaces */
  --oe-paper: #FFFFFF;
  --oe-surface: #FBFCFB;

  /* Lines */
  --oe-line: rgba(29, 69, 51, 0.12);
  --oe-line-strong: rgba(29, 69, 51, 0.24);

  /* Radius */
  --oe-radius: 16px;
  --oe-radius-sm: 11px;
  --oe-radius-lg: 20px;

  /* Effects */
  --oe-shadow: 0 10px 30px rgba(23, 55, 42, 0.075);
  --oe-shadow-hover: 0 14px 30px rgba(23, 55, 42, 0.11);
  --oe-shadow-strong: 0 12px 36px rgba(23, 55, 42, 0.11);

  /* Layout */
  --oe-shell: 1280px;
  --oe-gutter: clamp(14px, 3vw, 32px);
  --oe-admin-offset: 0px;
  --oe-sticky-top: 104px;
}

body.admin-bar { --oe-admin-offset: 32px; }
@media (max-width: 782px) {
  body.admin-bar { --oe-admin-offset: 46px; }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  direction: rtl;
  color: var(--oe-ink);
  background: var(--oe-surface);
  font-family: "PeydaFaNumWeb", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Focus */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid rgba(29, 69, 51, 0.45);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Accessibility */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Selection */
::selection {
  background: var(--oe-brand);
  color: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
.oe-header {
  position: sticky;
  top: var(--oe-admin-offset);
  z-index: 1000;
  padding: 16px var(--oe-gutter) 0;
  pointer-events: none;
}

.oe-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "action navigation brand";
  align-items: center;
  gap: 18px;
  width: min(var(--oe-shell), 100%);
  min-height: 68px;
  padding: 10px 14px 10px 18px;
  margin: 0 auto;
  direction: ltr;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(247, 234, 224, 0.9);
  border-radius: var(--oe-radius-lg);
  box-shadow: var(--oe-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

@supports (backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px)) {
  .oe-header__inner {
    background: rgba(255, 255, 255, 0.76);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }
}

.oe-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  direction: rtl;
}

.oe-brand__logo .custom-logo-link { display: block; line-height: 0; }
.oe-brand__logo .custom-logo {
  display: block;
  width: auto;
  max-width: 152px;
  max-height: 44px;
  object-fit: contain;
}

.oe-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--oe-brand);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Navigation */
.oe-nav {
  grid-area: navigation;
  min-width: 0;
  direction: rtl;
}

.oe-menu,
.oe-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.oe-menu > li { position: relative; margin: 0; }

.oe-menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  color: #294642;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 9px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.oe-menu > li.current-menu-item > a,
.oe-menu > li.current_page_item > a,
.oe-menu > li > a:hover,
.oe-menu > li > a:focus-visible {
  color: var(--oe-brand);
  background: var(--oe-brand-soft);
}

.oe-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  display: none;
  width: max-content;
  min-width: 190px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--oe-line);
  border-radius: 13px;
  box-shadow: var(--oe-shadow);
}

@supports (backdrop-filter: blur(14px)) {
  .oe-menu .sub-menu {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.oe-menu li:hover > .sub-menu,
.oe-menu li:focus-within > .sub-menu { display: block; }

.oe-menu .sub-menu a {
  display: block;
  padding: 9px 11px;
  color: #35504B;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
}

.oe-menu .sub-menu a:hover,
.oe-menu .sub-menu a:focus-visible {
  color: var(--oe-brand);
  background: #F0F8F6;
}

/* CTA Button */
.oe-header__cta,
.oe-support-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFFFFF;
  font-weight: 600;
  background: var(--oe-brand);
  border-radius: var(--oe-radius-sm);
  text-decoration: none;
}

.oe-header__cta {
  grid-area: action;
  justify-self: start;
  flex: 0 0 auto;
  min-width: 112px;
  padding: 11px 15px;
  font-size: 13px;
  direction: rtl;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 17px rgba(29, 69, 51, 0.23);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.oe-header__cta:hover,
.oe-header__cta:focus-visible {
  color: #FFFFFF;
  background: var(--oe-brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(29, 69, 51, 0.29);
}

/* Menu Toggle */
.oe-menu-toggle {
  display: none;
  grid-area: action;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--oe-line);
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.oe-menu-toggle:hover { background: rgba(255, 255, 255, 0.95); }

.oe-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--oe-brand);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.oe-menu-toggle.is-open span:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.oe-menu-toggle.is-open span:nth-of-type(2) { opacity: 0; }
.oe-menu-toggle.is-open span:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.oe-site-main {
  width: min(var(--oe-shell), 100%);
  min-height: 50vh;
  padding: 34px var(--oe-gutter) 54px;
  margin: 0 auto;
}

/* Breadcrumbs */
.oe-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  margin: 0 0 18px;
  color: var(--oe-muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--oe-line);
  border-right: 4px solid var(--oe-brand);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(23, 55, 42, 0.035);
}

.oe-breadcrumbs a {
  color: var(--oe-brand);
  font-weight: 600;
  transition: color 0.2s ease;
}
.oe-breadcrumbs a:hover { text-decoration: underline; }
.oe-breadcrumbs__sep { opacity: 0.5; direction: ltr; }

/* Section Head */
.oe-section-head {
  padding: 0 4px;
  margin: 0 0 20px;
}

.oe-section-head h1 {
  position: relative;
  padding-right: 14px;
  margin: 0 0 7px;
  color: var(--oe-brand);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.oe-section-head h1::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 4px;
  background: var(--oe-brand);
  border-radius: 4px;
}

.oe-section-head p {
  margin: 0;
  color: var(--oe-muted);
  font-size: 14px;
}

/* ============================================================
   ARCHIVE
   ============================================================ */
.oe-archive-grid {
  display: grid;
  grid-template-areas: "aside main";
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  direction: ltr;
}

.oe-archive-main { grid-area: main; direction: rtl; min-width: 0; }
.oe-archive-aside {
  grid-area: aside;
  position: sticky;
  top: var(--oe-sticky-top);
  direction: rtl;
}

.oe-post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.oe-post-card {
  display: grid;
  grid-template-areas: "body thumb";
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 14px;
  direction: ltr;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .oe-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--oe-shadow-hover);
  }
  .oe-post-card:hover .oe-post-card__thumb img { transform: scale(1.035); }
}

.oe-post-card--no-thumb {
  grid-template-areas: "body";
  grid-template-columns: minmax(0, 1fr);
  padding: 20px;
}

.oe-post-card__thumb {
  display: block;
  grid-area: thumb;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--oe-cream);
  border-radius: 12px;
}

.oe-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.oe-post-card__body {
  display: flex;
  grid-area: body;
  flex-direction: column;
  min-width: 0;
  direction: rtl;
  text-align: right;
}

.oe-post-card__title {
  margin: 4px 0 9px;
  font-size: clamp(16px, 1.65vw, 18px);
  font-weight: 700;
  line-height: 1.65;
}

.oe-post-card__title a {
  color: var(--oe-ink);
  transition: color 0.2s ease;
}
.oe-post-card__title a:hover { color: var(--oe-brand); }

/* Meta */
.oe-meta,
.oe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--oe-muted);
  line-height: 1.6;
}

.oe-meta { margin: 0 0 10px; font-size: 12px; }

.oe-meta-bar {
  padding: 8px 13px;
  margin: 0 0 12px;
  font-size: 11.5px;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: 9px;
}

.oe-meta span,
.oe-meta a,
.oe-meta-bar span,
.oe-meta-bar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
}

.oe-meta a,
.oe-meta-bar a {
  color: var(--oe-brand);
  font-weight: 600;
}

.oe-meta svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.8; }
.oe-meta-bar svg { width: 12px; height: 12px; fill: currentColor; }

.oe-meta__label {
  color: var(--oe-brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.oe-post-card__excerpt {
  max-width: 70ch;
  margin: 0 0 12px;
  color: #475569;
  font-size: 13.5px;
  line-height: 2;
  word-break: break-word;
  overflow-wrap: break-word;
}

.oe-read-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 8px 15px;
  margin-top: auto;
  color: var(--oe-brand);
  font-size: 13px;
  font-weight: 700;
  background: rgba(29, 69, 51, 0.06);
  border: 1px solid rgba(29, 69, 51, 0.15);
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.oe-read-more:hover,
.oe-read-more:focus-visible {
  color: #FFFFFF;
  background: var(--oe-brand);
  border-color: var(--oe-brand);
}

.oe-read-more svg { width: 14px; height: 14px; fill: currentColor; }

/* Pagination */
.oe-pagination,
.oe-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.oe-pagination ul.page-numbers li,
.oe-pagination ul.page-numbers li .page-numbers,
.oe-pagination > .page-numbers {
  margin: 0;
  list-style: none;
}

.oe-pagination ul.page-numbers li .page-numbers,
.oe-pagination > .page-numbers {
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  place-items: center;
  color: var(--oe-ink);
  font-weight: 600;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.oe-pagination .current,
.oe-pagination a:hover {
  color: #FFFFFF;
  background: var(--oe-brand);
  border-color: var(--oe-brand);
}

.oe-pagination .dots {
  min-width: auto !important;
  color: var(--oe-muted) !important;
  background: transparent !important;
  border: 0 !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.oe-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.oe-widget {
  padding: 16px;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-shadow);
}

.oe-widget__head,
.oe-related__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--oe-line);
}

.oe-widget__head svg,
.oe-related__head svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: var(--oe-brand);
}

.oe-widget__head h2,
.oe-widget__head h3,
.oe-related__head h2 {
  margin: 0;
  color: var(--oe-brand);
  font-size: 15px;
  font-weight: 700;
}

/* Support Card */
.oe-support-card {
  overflow: hidden;
  background: var(--oe-cream);
  border-color: rgba(29, 69, 51, 0.14);
}

.oe-support-card__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--oe-brand);
  font-size: 12px;
  font-weight: 700;
}

.oe-support-card h2 {
  margin: 0 0 8px;
  color: var(--oe-brand);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
}

.oe-support-card p {
  margin: 0 0 16px;
  color: var(--oe-text);
  font-size: 13px;
  line-height: 1.9;
}

.oe-support-card__cta {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

.oe-support-card__cta:hover {
  color: #FFFFFF;
  background: var(--oe-brand-deep);
}

.oe-support-card__cta svg { width: 16px; height: 16px; fill: currentColor; }

.oe-phone-number {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.oe-widget ul { padding: 0; margin: 0; list-style: none; }

/* Mini List */
.oe-mini-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oe-mini-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  direction: rtl;
}

.oe-mini-item--no-thumb { grid-template-columns: minmax(0, 1fr); }

.oe-mini-item__image {
  width: 68px;
  height: 68px;
  overflow: hidden;
  background: var(--oe-cream);
  border-radius: 10px;
}

.oe-mini-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oe-mini-item__title {
  display: -webkit-box;
  display: box;
  overflow: hidden;
  color: var(--oe-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  transition: color 0.2s ease;
}

.oe-mini-item__title:hover { color: var(--oe-brand); }

.oe-mini-item__date {
  display: block;
  margin-top: 4px;
  color: var(--oe-muted);
  font-size: 11px;
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.oe-article-title {
  padding: 14px 18px;
  margin: 0 0 14px;
  color: var(--oe-brand);
  font-size: clamp(22px, 2.15vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--oe-line);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(23, 55, 42, 0.04);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.oe-single-grid {
  display: grid;
  grid-template-areas: "aside main share";
  grid-template-columns: 300px minmax(0, 1fr) 46px;
  gap: 16px;
  align-items: start;
  direction: ltr;
}

.oe-single-main {
  grid-area: main;
  min-width: 0;
  direction: rtl;
}

.oe-single-aside {
  grid-area: aside;
  position: sticky;
  top: var(--oe-sticky-top);
  direction: rtl;
}

.oe-share {
  grid-area: share;
  position: sticky;
  top: var(--oe-sticky-top);
  direction: rtl;
}

.oe-featured {
  padding: 9px;
  margin: 0 0 12px;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: var(--oe-radius);
  box-shadow: 0 8px 24px rgba(23, 55, 42, 0.04);
}

.oe-featured figure {
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--oe-cream);
  border: 1px solid rgba(29, 69, 51, 0.08);
  border-radius: 12px;
}

.oe-featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  background: var(--oe-paper);
}

.oe-featured figcaption {
  padding: 8px 4px 0;
  color: var(--oe-muted);
  font-size: 12px;
  text-align: center;
}

/* Content */
.oe-content {
  padding: clamp(18px, 3vw, 30px);
  color: var(--oe-ink);
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-shadow);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.oe-content > :first-child { margin-top: 0; }
.oe-content > :last-child { margin-bottom: 0; }

.oe-content p,
.oe-content li {
  color: #253D46;
  font-size: 15.5px;
  line-height: 2.1;
}

.oe-content h2,
.oe-content h3,
.oe-content h4,
.oe-content h5,
.oe-content h6 {
  margin: 1.7em 0 0.65em;
  color: var(--oe-brand);
  font-weight: 700;
  line-height: 1.55;
}

.oe-content h2 { font-size: clamp(19px, 2.1vw, 24px); }
.oe-content h3 { font-size: clamp(17px, 1.8vw, 21px); }
.oe-content h4 { font-size: 16px; }

.oe-content a {
  color: var(--oe-brand);
  font-weight: 600;
  border-bottom: 1px dashed rgba(29, 69, 51, 0.35);
  transition: border-color 0.2s ease;
}

.oe-content a:hover { border-bottom-style: solid; }

.oe-content img {
  border: 1px solid var(--oe-line);
  border-radius: 10px;
}

.oe-content blockquote {
  padding: 18px 20px;
  margin: 1.7em 0;
  color: var(--oe-brand);
  background: var(--oe-cream);
  border-right: 4px solid var(--oe-brand);
  border-radius: 11px;
  font-style: italic;
}

.oe-content ul,
.oe-content ol {
  padding-right: 22px;
  margin: 1em 0;
}

.oe-content pre {
  padding: 16px;
  overflow-x: auto;
  background: #f4f7f5;
  border: 1px solid var(--oe-line);
  border-radius: 10px;
  direction: ltr;
  font-size: 13px;
  line-height: 1.6;
}

.oe-content code {
  padding: 2px 6px;
  background: #f4f7f5;
  border-radius: 4px;
  font-size: 0.9em;
  direction: ltr;
  unicode-bidi: bidi-override;
}

.oe-content pre code {
  padding: 0;
  background: transparent;
}

.oe-content table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  margin: 1em 0;
}

.oe-content table th,
.oe-content table td {
  padding: 10px 12px;
  border: 1px solid var(--oe-line);
  text-align: right;
}

.oe-content table th {
  background: var(--oe-brand-soft);
  color: var(--oe-brand);
  font-weight: 700;
}

/* Tags */
.oe-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  margin-top: 22px;
  border-top: 1px dashed var(--oe-line);
}

.oe-tags__label {
  margin-left: 3px;
  color: var(--oe-brand);
  font-size: 13px;
  font-weight: 700;
}

.oe-tags a {
  display: inline-flex;
  padding: 4px 10px;
  color: var(--oe-brand);
  font-size: 12px;
  background: rgba(29, 69, 51, 0.05);
  border: 1px solid var(--oe-line);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.oe-tags a:hover {
  color: #FFFFFF;
  background: var(--oe-brand);
}

/* Share */
.oe-share__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 7px 5px;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(23, 55, 42, 0.04);
}

.oe-share__box a,
.oe-share__box button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: var(--oe-brand);
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.oe-share__box a:hover,
.oe-share__box button:hover,
.oe-share__box .is-copied {
  color: #FFFFFF;
  background: var(--oe-brand);
  border-color: var(--oe-brand);
}

@media (hover: hover) {
  .oe-share__box a:hover,
  .oe-share__box button:hover { transform: translateY(-2px); }
}

.oe-share__box svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Related & Comments */
.oe-related,
.oe-comments {
  padding: clamp(18px, 3vw, 26px);
  margin-top: 18px;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-shadow);
}

.oe-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.oe-related-card {
  overflow: hidden;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line);
  border-radius: 11px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .oe-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(23, 55, 42, 0.08);
  }
  .oe-related-card:hover .oe-related-card__title { color: var(--oe-brand); }
}

.oe-related-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--oe-cream);
}

.oe-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oe-related-card__body {
  display: block;
  padding: 10px;
}

.oe-related-card__title {
  display: -webkit-box;
  display: box;
  overflow: hidden;
  margin: 0 0 4px;
  color: var(--oe-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  transition: color 0.2s ease;
}

.oe-related-card__date {
  color: var(--oe-muted);
  font-size: 11px;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.oe-comments .comment-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.oe-comments .comment-body {
  padding: 16px;
  margin: 0 0 14px;
  background: #F8FBFA;
  border: 1px solid var(--oe-line);
  border-radius: 11px;
}

.oe-comments .comment-meta {
  margin-bottom: 8px;
  color: var(--oe-muted);
  font-size: 12px;
}

.oe-comments .comment-respond { margin-top: 18px; }

.oe-comments label {
  display: block;
  margin: 12px 0 5px;
  color: var(--oe-brand);
  font-size: 13px;
  font-weight: 600;
}

.oe-comments input[type="text"],
.oe-comments input[type="email"],
.oe-comments input[type="url"],
.oe-comments textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--oe-ink);
  font: inherit;
  background: var(--oe-paper);
  border: 1px solid var(--oe-line-strong);
  border-radius: 9px;
  transition: border-color 0.2s ease;
}

.oe-comments input:focus,
.oe-comments textarea:focus { border-color: var(--oe-brand); }

.oe-comments textarea {
  min-height: 140px;
  resize: vertical;
}

.oe-comments input[type="submit"] {
  padding: 10px 17px;
  margin-top: 12px;
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  background: var(--oe-brand);
  border: 0;
  border-radius: 9px;
  transition: background-color 0.2s ease;
}

.oe-comments input[type="submit"]:hover { background: var(--oe-brand-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.oe-footer { padding: 0 var(--oe-gutter) 26px; }

.oe-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  width: min(var(--oe-shell), 100%);
  padding: 20px 22px;
  margin: 0 auto;
  color: #59706B;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
}

.oe-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.oe-footer__nav a {
  transition: color 0.2s ease;
}

.oe-footer__nav a:hover { color: var(--oe-brand); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet Landscape (≤ 1024px) */
@media (max-width: 1024px) {
  :root {
    --oe-sticky-top: 92px;
  }
  .oe-archive-grid {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 20px;
  }
  .oe-single-grid {
    grid-template-columns: 280px minmax(0, 1fr) 44px;
    gap: 14px;
  }
}

/* Tablet (≤ 980px) */
@media (max-width: 980px) {
  .oe-header__inner { gap: 10px; }
  .oe-menu > li > a { padding: 9px 8px; font-size: 12px; }
  .oe-post-card {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 14px;
  }
  .oe-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile Landscape / Small Tablet (≤ 860px) */
@media (max-width: 860px) {
  .oe-header { padding: 12px 16px 0; }
  .oe-header__inner {
    grid-template-areas: "action brand";
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding: 9px 11px;
    border-radius: 16px;
  }
  .oe-brand__logo .custom-logo { max-width: 120px; max-height: 36px; }
  .oe-brand__text { font-size: 17px; }
  .oe-menu-toggle { display: block; }
  .oe-header__cta { display: none; }

  .oe-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--oe-line);
    border-radius: 15px;
    box-shadow: var(--oe-shadow);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  @supports (backdrop-filter: blur(14px)) {
    .oe-nav {
      background: rgba(255, 255, 255, 0.96);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
    }
  }

  .oe-nav.is-open { display: block; }
  .oe-menu,
  .oe-menu ul { display: block; }
  .oe-menu > li > a { display: block; padding: 12px 11px; }
  .oe-menu .sub-menu {
    position: static;
    display: block;
    width: auto;
    padding: 3px;
    margin: 0 9px 6px;
    background: #F2F8F6;
    box-shadow: none;
  }

  .oe-site-main { padding-top: 26px; }
  .oe-archive-grid {
    grid-template-areas: "main" "aside";
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .oe-archive-aside,
  .oe-single-aside,
  .oe-share { position: static; }

  .oe-single-grid {
    grid-template-areas: "main" "share" "aside";
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .oe-share__box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .oe-related-grid { grid-template-columns: repeat(2, 1fr); }
  .oe-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  .oe-header { padding-right: 10px; padding-left: 10px; }
  .oe-nav { right: 10px; left: 10px; }
  .oe-site-main {
    padding-top: 22px;
    padding-right: 12px;
    padding-left: 12px;
  }
  .oe-section-head { margin-bottom: 16px; }
  .oe-section-head h1 { font-size: 19px; }
  .oe-article-title {
    padding: 13px 14px;
    font-size: 20px;
    line-height: 1.6;
  }
  .oe-post-card {
    grid-template-areas: "thumb" "body";
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 11px;
  }
  .oe-post-card--no-thumb {
    grid-template-areas: "body";
    padding: 15px;
  }
  .oe-post-card__thumb { aspect-ratio: 16 / 9; }
  .oe-post-card__excerpt { font-size: 13px; }
  .oe-content { padding: 16px; }
  .oe-content p,
  .oe-content li {
    font-size: 14.5px;
    line-height: 2;
  }
  .oe-meta,
  .oe-meta-bar {
    gap: 6px 10px;
    font-size: 11px;
  }
  .oe-meta__label { font-size: 10px; }
  .oe-pagination ul.page-numbers li .page-numbers,
  .oe-pagination > .page-numbers {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .oe-related-grid { grid-template-columns: 1fr; }
  .oe-footer { padding-right: 12px; padding-left: 12px; }
  .oe-footer__inner { padding: 16px 18px; }
}

/* Small Mobile (≤ 400px) */
@media (max-width: 400px) {
  :root {
    --oe-gutter: 12px;
    --oe-radius: 14px;
    --oe-radius-sm: 10px;
  }
  .oe-header { padding-right: 8px; padding-left: 8px; }
  .oe-nav { right: 8px; left: 8px; }
  .oe-brand__logo .custom-logo { max-width: 100px; max-height: 32px; }
  .oe-brand__text { font-size: 15px; }
  .oe-menu-toggle { width: 38px; height: 38px; }
  .oe-site-main {
    padding-right: 10px;
    padding-left: 10px;
  }
  .oe-section-head h1 { font-size: 17px; }
  .oe-article-title {
    padding: 12px;
    font-size: 18px;
  }
  .oe-content { padding: 14px; }
  .oe-content p,
  .oe-content li { font-size: 14px; }
  .oe-post-card { padding: 10px; }
  .oe-widget { padding: 14px; }
  .oe-support-card h2 { font-size: 17px; }
  .oe-mini-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .oe-mini-item__image {
    width: 56px;
    height: 56px;
  }
  .oe-mini-item__title { font-size: 12.5px; }
  .oe-share__box { padding: 6px 4px; }
  .oe-share__box a,
  .oe-share__box button {
    width: 34px;
    height: 34px;
  }
}

/* Very Small Mobile (≤ 340px) */
@media (max-width: 340px) {
  body { font-size: 15px; }
  .oe-brand__text { font-size: 14px; }
  .oe-menu-toggle { width: 36px; height: 36px; }
  .oe-content { padding: 12px; }
  .oe-content p,
  .oe-content li { font-size: 13.5px; line-height: 1.9; }
  .oe-article-title { font-size: 17px; }
  .oe-pagination {
    gap: 4px;
  }
  .oe-pagination ul.page-numbers li .page-numbers,
  .oe-pagination > .page-numbers {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* ============================================================
   ACCESSIBILITY & MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* High Contrast */
@media (prefers-contrast: more) {
  :root {
    --oe-line: rgba(29, 69, 51, 0.4);
    --oe-line-strong: rgba(29, 69, 51, 0.6);
    --oe-muted: #4a5966;
  }
}

/* ============================================================
   PR INT
   ============================================================ */
@media print {
  .oe-header,
  .oe-footer,
  .oe-share,
  .oe-archive-aside,
  .oe-single-aside,
  .oe-related,
  .oe-comments,
  .oe-menu-toggle,
  .oe-pagination {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }
  .oe-site-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .oe-single-grid {
    display: block !important;
    grid-template-columns: none !important;
  }
  .oe-content,
  .oe-article-title,
  .oe-featured {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  .oe-content a { color: #000 !important; text-decoration: underline; }
  .oe-content h2,
  .oe-content h3,
  .oe-content h4 { page-break-after: avoid; }
}