/*!
Theme Name: 商旺聊
Theme URI: https://www.shangwangliao.com
Author: ShangWangLiao
Author URI: https://www.shangwangliao.com
Description: 商旺聊 - AI 智能企业聊天官网主题，面向企业销售、客服与私域运营团队。AI 科技风格，玻璃拟态，16px 圆角，全端响应式。
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wangwangliao
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, wide-blocks

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

_s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Design Tokens (CSS Variables)
# Generic (Normalize, Box sizing)
# Base (Typography, Elements, Links, Forms)
# Layouts
# Components
  - Header & Navigation
  - Hero
  - Features (AI Modules)
  - Visual Effects (Data Flow / Glass)
  - Profile / Customer Portrait
  - Team Collaboration
  - Download (Mobile)
  - Footer
  - Posts & Pages
  - Widgets
  - Media
# Utilities

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Design Tokens (driven by Customizer via head inline style)
--------------------------------------------------------------*/
:root {
  /* Brand */
  --color-primary: #00B96B;
  --color-primary-600: #00A35F;
  --color-primary-100: rgba(0, 185, 107, 0.12);
  --color-secondary: #1E293B;
  --color-accent: #06B6D4;
  --color-gradient: linear-gradient(135deg, #00B96B 0%, #06B6D4 100%);
  --color-gradient-soft: linear-gradient(135deg, rgba(0, 185, 107, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);

  /* Surface */
  --color-bg: #0B1220;
  --color-bg-2: #0F172A;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-strong: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.10);
  --color-border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --color-text: #E5EAF2;
  --color-text-2: #B6BFCE;
  --color-muted: #8A93A6;
  --color-on-primary: #ffffff;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 24px rgba(2, 8, 23, 0.35);
  --shadow-glow: 0 10px 40px rgba(0, 185, 107, 0.25);
  --shadow-card: 0 8px 32px rgba(2, 8, 23, 0.45);

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 16px;

  /* Spacing scale (8px rhythm) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --container: 1200px;

  /* Typography */
  --font-sans: 'Inter', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-base: 16px;
  --fs-sm: 14px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;
  --fs-5xl: 64px;

  --lh-body: 1.65;
  --lh-tight: 1.2;

  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
}

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { box-sizing: border-box; }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  clear: both;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, var(--fs-5xl)); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, var(--fs-4xl)); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p { margin: 0 0 var(--space-2); color: var(--color-text-2); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--easing);
}
a:hover { color: var(--color-accent); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

ul, ol { margin: 0 0 var(--space-2) var(--space-3); padding: 0; }
li > ul, li > ol { margin-bottom: 0; }

hr {
  background-color: var(--color-border);
  border: 0;
  height: 1px;
  margin: var(--space-4) 0;
}

embed, iframe, object { max-width: 100%; }
figure { margin: 1em 0; }
table { margin: 0 0 1.5em; width: 100%; }

/*--------------------------------------------------------------
# Forms (base)
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  border: none;
  cursor: pointer;
  background: transparent;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--easing), background var(--dur-fast) var(--easing);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  background: var(--color-surface-strong);
  outline: none;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.wm-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.wm-section {
  padding-block: clamp(var(--space-5), 8vw, var(--space-7));
}

.wm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-100);
  border: 1px solid var(--color-border);
}

.wm-grad-text {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--easing), box-shadow var(--dur-base) var(--easing), background var(--dur-fast) var(--easing);
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid transparent;
}
.wm-btn--primary {
  background: var(--color-gradient);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-glow);
}
.wm-btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 48px rgba(0, 185, 107, 0.35); }
.wm-btn--ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.wm-btn--ghost:hover { background: var(--color-surface-strong); color: var(--color-text); }

.wm-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.wm-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 18px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.wm-skip-link:focus { left: 0; }

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.wm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: rgba(11, 18, 32, 0.6);
  border-bottom: 1px solid var(--color-border);
}
.wm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 14px;
}
.wm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.wm-logo__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-grid; place-items: center;
  background: var(--color-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.wm-logo__mark svg { width: 20px; height: 20px; }

.wm-nav {
  display: none;
  align-items: center;
  gap: var(--space-3);
}
.wm-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-3);
  margin: 0; padding: 0;
}
.wm-nav a {
  color: var(--color-text-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 4px;
  border-radius: 6px;
  transition: color var(--dur-fast) var(--easing);
}
.wm-nav a:hover { color: var(--color-text); }
.wm-nav__actions { display: flex; align-items: center; gap: 10px; }

.wm-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.wm-nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .wm-nav { display: flex; }
  .wm-nav-toggle { display: none; }
}

.wm-mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(var(--glass-blur));
}
.wm-mobile-nav.is-open { display: block; }
.wm-mobile-nav ul {
  list-style: none;
  margin: 0; padding: var(--space-2) 0;
  display: grid;
  gap: 4px;
}
.wm-mobile-nav a {
  display: block;
  padding: 12px var(--space-3);
  color: var(--color-text-2);
  border-radius: 10px;
}
.wm-mobile-nav a:hover { background: var(--color-surface); color: var(--color-text); }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.wm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(var(--space-6), 10vw, 120px);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(0, 185, 107, 0.20), transparent 60%),
    var(--color-bg);
}
.wm-hero__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .wm-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); }
}
.wm-hero__title {
  font-size: clamp(2.2rem, 4.2vw + 1rem, 3.6rem);
  margin-bottom: var(--space-3);
}
.wm-hero__lead {
  font-size: var(--fs-lg);
  color: var(--color-text-2);
  max-width: 56ch;
  margin-bottom: var(--space-4);
}
.wm-hero__cta {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.wm-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.wm-hero__stat-num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wm-hero__stat-label { color: var(--color-muted); font-size: var(--fs-sm); }

/* Hero visual: AI bot chat preview */
.wm-hero__visual {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  overflow: hidden;
}
.wm-hero__visual::before {
  content: "";
  position: absolute; inset: -2px;
  background: var(--color-gradient);
  filter: blur(60px);
  opacity: 0.25;
  z-index: -1;
}
.wm-bot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
  font-size: var(--fs-sm);
}
.wm-bot__dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,185,107,0.18);
  animation: wm-pulse 1.6s var(--easing) infinite;
}
.wm-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin: 6px 0;
}
.wm-msg--in { background: var(--color-surface-strong); border: 1px solid var(--color-border); color: var(--color-text); border-bottom-left-radius: 4px; }
.wm-msg--out { background: var(--color-gradient); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.wm-chat {
  display: flex; flex-direction: column; gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

@keyframes wm-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/*--------------------------------------------------------------
# Data flow background (decorative)
--------------------------------------------------------------*/
.wm-dataflow {
  position: relative;
  isolation: isolate;
  padding-block: clamp(var(--space-5), 8vw, var(--space-6));
  background:
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-2) 100%);
  overflow: hidden;
}
.wm-dataflow::before,
.wm-dataflow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.wm-dataflow::before {
  width: 480px; height: 480px;
  background: rgba(0, 185, 107, 0.20);
  top: -120px; left: -120px;
}
.wm-dataflow::after {
  width: 520px; height: 520px;
  background: rgba(6, 182, 212, 0.18);
  bottom: -160px; right: -120px;
}

/*--------------------------------------------------------------
# Features (AI Modules)
--------------------------------------------------------------*/
.wm-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-5);
}
.wm-section__head h2 { margin-bottom: var(--space-2); }
.wm-section__head p { color: var(--color-text-2); font-size: var(--fs-lg); }

.wm-features {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .wm-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wm-features { grid-template-columns: repeat(3, 1fr); } }

.wm-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform var(--dur-base) var(--easing), border-color var(--dur-base) var(--easing), box-shadow var(--dur-base) var(--easing);
}
.wm-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}
.wm-card__icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-primary-100);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.wm-card__icon svg { width: 24px; height: 24px; }
.wm-card__title { font-size: var(--fs-xl); margin-bottom: 8px; }
.wm-card__desc { color: var(--color-text-2); font-size: 0.97rem; margin: 0; }

/*--------------------------------------------------------------
# Customer Portrait (Profile)
--------------------------------------------------------------*/
.wm-profile {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .wm-profile { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

.wm-profile__visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--color-gradient-soft);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.wm-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  border-radius: var(--radius-pill);
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  color: var(--color-text-2);
  margin: 4px 6px 0 0;
}
.wm-tag--accent { color: var(--color-primary); border-color: rgba(0,185,107,0.3); background: var(--color-primary-100); }
.wm-tag--cyan { color: var(--color-accent); border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.10); }

.wm-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.wm-stat {
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.wm-stat__num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  background: var(--color-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wm-stat__label { color: var(--color-muted); font-size: var(--fs-sm); }

/*--------------------------------------------------------------
# Team Collaboration
--------------------------------------------------------------*/
.wm-team {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .wm-team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wm-team { grid-template-columns: repeat(4, 1fr); } }

.wm-team__card {
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.wm-avatar {
  width: 64px; height: 64px;
  border-radius: 999px;
  display: inline-grid; place-items: center;
  margin-bottom: var(--space-2);
  background: var(--color-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
}
.wm-avatar--c1 { background: linear-gradient(135deg, #00B96B, #06B6D4); }
.wm-avatar--c2 { background: linear-gradient(135deg, #06B6D4, #6366F1); }
.wm-avatar--c3 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.wm-avatar--c4 { background: linear-gradient(135deg, #8B5CF6, #06B6D4); }

/*--------------------------------------------------------------
# Download (Mobile)
--------------------------------------------------------------*/
.wm-download {
  text-align: center;
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-4), 6vw, var(--space-6));
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(0,185,107,0.18), transparent 60%),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.wm-download__buttons {
  display: flex; flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-3);
}
.wm-store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: transform var(--dur-fast) var(--easing);
}
.wm-store-btn:hover { transform: translateY(-1px); color: #fff; }
.wm-store-btn svg { width: 22px; height: 22px; }
.wm-store-btn small { display: block; font-size: 11px; opacity: 0.8; }
.wm-store-btn strong { display: block; font-size: 0.95rem; line-height: 1.1; }

.wm-qr {
  width: 120px; height: 120px;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 8px;
  margin: var(--space-2) auto 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.wm-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-5);
  background: var(--color-bg-2);
}
.wm-footer__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .wm-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.wm-footer h4 { font-size: 1rem; margin-bottom: var(--space-2); color: var(--color-text); }
.wm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wm-footer a { color: var(--color-text-2); font-size: 0.95rem; }
.wm-footer a:hover { color: var(--color-text); }
.wm-footer__bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/*--------------------------------------------------------------
# Posts & Pages
--------------------------------------------------------------*/
.wm-page {
  padding-block: var(--space-5);
}
.wm-article {
  max-width: 760px;
  margin-inline: auto;
}
.wm-article h1 { margin-bottom: var(--space-3); }
.wm-article .entry-meta { color: var(--color-muted); margin-bottom: var(--space-3); font-size: var(--fs-sm); }

.post, .page { margin: 0 0 var(--space-4); }
.updated:not(.published) { display: none; }
.page-content, .entry-content, .entry-summary { margin: var(--space-3) 0 0; }

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget { margin: 0 0 var(--space-3); padding: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.widget select { max-width: 100%; }
.widget-title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }

/*--------------------------------------------------------------
# Media / Captions / Galleries
--------------------------------------------------------------*/
.wp-smiley { border: none; margin: 0; padding: 0; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 40px; width: auto; }

.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption-text { text-align: center; color: var(--color-muted); font-size: var(--fs-sm); }

.gallery { display: grid; grid-gap: 1.5em; margin-bottom: 1.5em; }
.gallery-item { display: inline-block; text-align: center; width: 100%; }
@media (min-width: 768px) { .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); } .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); } .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); } }

/*--------------------------------------------------------------
# Accessibility & Motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

#primary[tabindex="-1"]:focus { outline: 0; }
