/*
Theme Name: PLAPAVO
Theme URI: https://asobinia.com
Author: PLAPAVO Team
Author URI: https://asobinia.com
Description: PLAPAVO｜ボードゲーム・カードゲーム・デジタルゲームの総合情報メディア。洗練されたグラスモーフィズムデザインとSEO最適化を両立したテーマ。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asobinia
Tags: game, media, japanese, glassmorphism, light
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  /* Brand */
  --c-primary: #0abab5;
  --c-primary-strong: #089d99;   /* hover */
  --c-primary-deep: #067471;     /* AA text on light bg */
  --c-primary-ink: #04524f;
  --grad-primary: linear-gradient(135deg, #0abab5 0%, #22a8d8 100%);
  --grad-text: linear-gradient(120deg, #067471 0%, #0abab5 45%, #1d8fc9 100%);

  /* Ink */
  --c-ink: #17343c;
  --c-ink-2: #4a656d;
  --c-ink-3: #566d76;

  /* Surfaces */
  --c-bg: #edf5f6;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-soft: rgba(255, 255, 255, 0.38);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(23, 52, 60, 0.08);
  --glass-blur: 18px;
  --shadow-glass: 0 8px 32px rgba(15, 65, 75, 0.1), 0 1.5px 4px rgba(15, 65, 75, 0.05);
  --shadow-glass-lg: 0 20px 48px rgba(15, 65, 75, 0.14), 0 4px 10px rgba(15, 65, 75, 0.06);
  --shadow-primary: 0 8px 24px rgba(10, 186, 181, 0.32);

  /* Category accents */
  --cat-board: #0e9f6e;
  --cat-board-deep: #046c4e;
  --cat-board-soft: rgba(14, 159, 110, 0.13);
  --cat-card: #d97706;
  --cat-card-deep: #92500a;
  --cat-card-soft: rgba(217, 119, 6, 0.13);
  --cat-digital: #2f6fed;
  --cat-digital-deep: #1d4fc4;
  --cat-digital-soft: rgba(47, 111, 237, 0.12);

  /* Radii */
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Type */
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Outfit", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  /* Layout */
  --w-container: 1140px;
  --w-narrow: 780px;
  --header-h: 64px;
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(165deg, #f2fafa 0%, #e9f3f6 45%, #edeff9 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient aurora backdrop --------------------------------------------- */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.bg-aurora__blob--1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(10, 186, 181, 0.35), transparent 65%);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}

.bg-aurora__blob--2 {
  width: 640px;
  height: 640px;
  top: 15%;
  right: -220px;
  background: radial-gradient(circle at 60% 40%, rgba(60, 140, 231, 0.24), transparent 65%);
  animation: aurora-drift 32s ease-in-out infinite alternate-reverse;
}

.bg-aurora__blob--3 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(122, 111, 235, 0.16), transparent 65%);
  animation: aurora-drift 38s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* Typography ----------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

p {
  overflow-wrap: anywhere;
}

.sp-only {
  display: none;
}

/* Inline icon defaults */

.icon {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

/* Layout --------------------------------------------------------------- */

.container {
  width: min(100% - 40px, var(--w-container));
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--w-narrow);
}

/* Accessibility --------------------------------------------------------- */

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--c-primary-deep);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 12px;
}

.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;
}

:focus-visible {
  outline: 2px solid var(--c-primary-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(10, 186, 181, 0.25);
}

/* ==========================================================================
   Glass Utility
   ========================================================================== */

.glass,
.site-header .header__top,
.header__catnav,
.mobile-drawer__panel,
.article-card,
.about-teaser,
.hero__panel,
.toc,
.author-box,
.review-box,
.editorial-note,
.archive-header,
.search-header,
.author-profile,
.author-detail-card,
.eeat-card,
.no-results,
.error-404__content,
.widget,
.page-header,
.about-section,
.post-navigation a,
.sp-bottom-nav,
.home-col {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .site-header .header__top,
  .header__catnav,
  .mobile-drawer__panel,
  .article-card,
  .about-teaser,
  .hero__panel,
  .toc,
  .author-box,
  .review-box,
  .editorial-note,
  .archive-header,
  .search-header,
  .author-profile,
  .author-detail-card,
  .eeat-card,
  .no-results,
  .error-404__content,
  .widget,
  .page-header,
  .about-section,
  .post-navigation a,
  .sp-bottom-nav,
  .home-col {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}

.header__top {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid var(--glass-line);
  background: var(--glass-strong);
}

.site-header.is-scrolled .header__top {
  box-shadow: 0 4px 24px rgba(15, 65, 75, 0.1);
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

/* Logo */

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 186, 181, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-primary-deep); /* fallback */
}

/* Header actions */

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header__action-btn {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.header__action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(10, 186, 181, 0.42);
}

/* Header search */

.header__search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-pill);
  padding: 3px 4px 3px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header__search:focus-within {
  background: #fff;
  border-color: rgba(10, 186, 181, 0.5);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.15);
}

.header__search-input {
  border: none;
  background: transparent;
  width: 170px;
  font-size: 0.85rem;
  color: var(--c-ink);
}

.header__search-input:focus {
  outline: none;
}

.header__search-input::placeholder {
  color: var(--c-ink-3);
}

.header__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--c-primary-deep);
  transition: background 0.2s ease;
}

.header__search-btn:hover {
  background: rgba(10, 186, 181, 0.12);
}

/* Category nav (tier 2) */

.header__catnav {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid var(--glass-line);
  background: var(--glass-soft);
  box-shadow: none;
}

.header__catnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 46px;
}

.header__catnav-inner::-webkit-scrollbar {
  display: none;
}

.header__catnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--c-ink-2);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.header__catnav-link .icon {
  color: var(--c-primary-deep);
}

.header__catnav-link:hover,
.header__catnav-inner .current-menu-item > a {
  color: var(--c-primary-ink);
  background: rgba(10, 186, 181, 0.12);
}

.header__catnav-link:focus-visible {
  outline-offset: -2px;
}

.header__catnav-link--home {
  font-weight: 700;
}

.header__catnav-divider {
  width: 1px;
  height: 18px;
  background: var(--glass-line);
  margin-inline: 6px;
  flex-shrink: 0;
}

/* WP nav menu fallback inside catnav */

.header__catnav-inner > ul {
  display: contents;
}

.header__catnav-inner li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--c-ink-2);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.header__catnav-inner li a:hover {
  color: var(--c-primary-ink);
  background: rgba(10, 186, 181, 0.12);
}

/* Hamburger */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(10, 186, 181, 0.1);
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Mobile Drawer
   ========================================================================== */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}

.mobile-drawer.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 50, 58, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.is-open .mobile-drawer__overlay {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(84vw, 340px);
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.site-logo--drawer .site-logo__text {
  font-size: 1.1rem;
}

.mobile-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--c-ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-drawer__close:hover {
  background: rgba(10, 186, 181, 0.12);
  color: var(--c-primary-ink);
}

.mobile-drawer__search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  padding: 4px 4px 4px 14px;
  margin-bottom: 18px;
}

.mobile-drawer__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.9rem;
}

.mobile-drawer__search input:focus {
  outline: none;
}

.mobile-drawer__search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--grad-primary);
  color: #fff;
  flex-shrink: 0;
}

.mobile-drawer__list li {
  border-bottom: 1px solid var(--glass-line);
}

.mobile-drawer__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
  font-weight: 500;
  color: var(--c-ink);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-drawer__list a .icon {
  color: var(--c-primary-deep);
}

.mobile-drawer__list a:hover {
  color: var(--c-primary-ink);
  padding-left: 12px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--r-pill);
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(10, 186, 181, 0.45);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(10, 186, 181, 0.45);
  color: var(--c-primary-deep);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(10, 186, 181, 0.18);
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 13px;
  border-radius: var(--r-pill);
  background: rgba(10, 186, 181, 0.13);
  border: 1px solid rgba(10, 186, 181, 0.22);
  color: var(--c-primary-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}

a.badge:hover {
  filter: brightness(0.94);
}

.badge--game {
  background: var(--cat-board-soft);
  border-color: rgba(14, 159, 110, 0.25);
  color: var(--cat-board-deep);
}

.badge--card {
  background: var(--cat-card-soft);
  border-color: rgba(217, 119, 6, 0.25);
  color: var(--cat-card-deep);
}

.badge--event {
  background: var(--cat-digital-soft);
  border-color: rgba(47, 111, 237, 0.25);
  color: var(--cat-digital-deep);
}

.badge--review {
  background: rgba(139, 92, 246, 0.13);
  border-color: rgba(139, 92, 246, 0.25);
  color: #6d28d9;
}

.badge--news {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.25);
  color: #be123c;
}

.badge--specialty {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--glass-line);
  color: var(--c-ink-2);
}

/* Gradient text */

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-primary-deep); /* fallback */
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 56px 0 8px;
}

.hero__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 72px);
  border-radius: var(--r-xl);
  text-align: center;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 280px at 12% 0%, rgba(10, 186, 181, 0.14), transparent 70%),
    radial-gradient(520px 260px at 88% 100%, rgba(47, 111, 237, 0.1), transparent 70%);
}

.hero__panel > * {
  position: relative;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--c-primary-deep);
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 18px;
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.02rem);
  color: var(--c-ink-2);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: clamp(40px, 5vw, 60px) 0;
}

.section + .section {
  padding-top: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  font-weight: 800;
  margin-bottom: clamp(22px, 3vw, 30px);
}

.section-title::before {
  content: "";
  width: 6px;
  height: 1.5em;
  border-radius: 3px;
  background: var(--grad-primary);
  box-shadow: 0 2px 8px rgba(10, 186, 181, 0.4);
  flex-shrink: 0;
}

.section-title__count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-ink-3);
}

.section__more {
  margin-top: 34px;
  text-align: center;
}

.section__empty {
  padding: 40px 0;
  text-align: center;
  color: var(--c-ink-2);
}

/* ==========================================================================
   Article Grid & Cards
   ========================================================================== */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
}

.article-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass-lg);
  border-color: rgba(10, 186, 181, 0.45);
}

.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card reveal animation (added by main.js IntersectionObserver) */

@media (prefers-reduced-motion: no-preference) {
  .article-card {
    opacity: 0;
    transform: translateY(18px);
  }

  .article-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.5s ease,
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.3s ease,
      border-color 0.3s ease;
  }

  .article-card.is-visible:hover {
    transform: translateY(-5px);
  }
}

.article-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.1), rgba(47, 111, 237, 0.08));
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.05);
}

.article-card__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--c-primary);
  opacity: 0.75;
}

.article-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  padding: 20px 22px 22px;
}

.article-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.article-card:hover .article-card__title {
  color: var(--c-primary-deep);
}

.article-card__excerpt {
  font-size: 0.85rem;
  color: var(--c-ink-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.77rem;
  color: var(--c-ink-3);
}

.article-card__date,
.article-card__author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-card__meta .icon {
  color: var(--c-primary-deep);
  opacity: 0.85;
}

.article-card__author {
  font-weight: 600;
  color: var(--c-ink-2);
}

/* Category cards on the front page */

.article-card--category .article-card__thumb {
  aspect-ratio: 16 / 8;
}

.article-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  color: var(--c-primary-deep);
}

.article-card--category .article-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__thumb--game {
  background:
    radial-gradient(400px 200px at 20% 0%, rgba(14, 159, 110, 0.2), transparent 70%),
    linear-gradient(135deg, rgba(14, 159, 110, 0.1), rgba(10, 186, 181, 0.06));
}

.article-card__thumb--game .article-card__icon {
  color: var(--cat-board-deep);
}

.article-card__thumb--card {
  background:
    radial-gradient(400px 200px at 20% 0%, rgba(217, 119, 6, 0.18), transparent 70%),
    linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(244, 63, 94, 0.05));
}

.article-card__thumb--card .article-card__icon {
  color: var(--cat-card-deep);
}

.article-card__thumb--event {
  background:
    radial-gradient(400px 200px at 20% 0%, rgba(47, 111, 237, 0.18), transparent 70%),
    linear-gradient(135deg, rgba(47, 111, 237, 0.1), rgba(122, 111, 235, 0.07));
}

.article-card__thumb--event .article-card__icon {
  color: var(--cat-digital-deep);
}

.article-card--category .article-card__excerpt {
  -webkit-line-clamp: 3;
}

/* ==========================================================================
   About Teaser (front page)
   ========================================================================== */

.about-teaser {
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--r-xl);
  text-align: center;
}

.about-teaser__text {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--c-ink-2);
  font-size: 0.95rem;
}

.about-teaser__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.about-teaser__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 10px rgba(15, 65, 75, 0.06);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--c-ink-2);
}

.about-teaser__pill .icon {
  color: var(--c-primary-deep);
}

/* ==========================================================================
   Single Article
   ========================================================================== */

.single-article {
  padding: 36px 0 20px;
}

.article-header {
  margin-bottom: 26px;
}

.article-header .badge {
  margin-bottom: 14px;
}

.article-header__title {
  font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.82rem;
  color: var(--c-ink-3);
}

.article-header__date,
.article-header__updated,
.article-header__read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-header__meta .icon {
  color: var(--c-primary-deep);
}

.article-thumbnail {
  margin-bottom: 30px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--glass-border);
}

.article-thumbnail__img {
  width: 100%;
  height: auto;
}

/* Article body / entry content ----------------------------------------- */

.article-body {
  margin-bottom: 44px;
}

.entry-content > * + * {
  margin-top: 1.4em;
}

.article-body > h2,
.entry-content h2 {
  position: relative;
  margin-top: 2.4em;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glass-border);
  border-left: 5px solid var(--c-primary);
  box-shadow: 0 4px 16px rgba(15, 65, 75, 0.06);
  font-size: 1.3rem;
}

.entry-content h3 {
  margin-top: 2em;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(10, 186, 181, 0.35);
  font-size: 1.12rem;
}

.entry-content h4 {
  margin-top: 1.8em;
  padding-left: 12px;
  border-left: 3px solid var(--c-primary);
}

.entry-content a {
  color: var(--c-primary-deep);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(10, 186, 181, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:hover {
  color: var(--c-primary-strong);
  text-decoration-color: currentColor;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-top: 0.45em;
}

.entry-content li::marker {
  color: var(--c-primary-deep);
  font-weight: 700;
}

.entry-content img {
  border-radius: var(--r-md);
}

.entry-content hr {
  border: none;
  height: 1px;
  background: var(--glass-line);
  margin-block: 2.4em;
}

.wp-block-quote,
.entry-content blockquote {
  padding: 18px 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--c-primary);
  color: var(--c-ink-2);
  font-style: normal;
}

.wp-block-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--c-ink-3);
  font-style: normal;
}

.entry-content pre {
  padding: 20px;
  border-radius: var(--r-md);
  background: #10282e;
  color: #d9f2f0;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
}

.entry-content code {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(10, 186, 181, 0.12);
  color: var(--c-primary-ink);
  font-size: 0.88em;
}

.entry-content pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.wp-block-image figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--c-ink-3);
  text-align: center;
}

/* Tables */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.6);
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--glass-line);
  text-align: left;
  font-size: 0.92rem;
}

th {
  background: rgba(10, 186, 181, 0.1);
  color: var(--c-primary-ink);
  font-weight: 700;
  white-space: nowrap;
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(10, 186, 181, 0.05);
}

/* Alignment helpers */

.alignnone {
  margin: 8px 0;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignleft {
  float: left;
  margin: 6px 24px 12px 0;
}

.alignright {
  float: right;
  margin: 6px 0 12px 24px;
}

.alignwide {
  margin-inline: -40px;
  max-width: calc(100% + 80px);
}

.alignfull {
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.toc {
  margin-bottom: 36px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--glass-line);
  background: rgba(10, 186, 181, 0.08);
}

.toc__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--c-primary-ink);
}

.toc__toggle {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-primary-deep);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(10, 186, 181, 0.35);
  transition: background 0.2s ease;
}

.toc__toggle:hover {
  background: rgba(10, 186, 181, 0.12);
}

.toc.is-collapsed .toc__body {
  display: none;
}

.toc__body {
  padding: 18px 22px;
}

.toc__list {
  counter-reset: toc;
}

.toc__item {
  position: relative;
  padding-left: 34px;
  margin-bottom: 8px;
}

.toc__item::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-primary-deep);
}

.toc__item--h3 {
  padding-left: 52px;
  font-size: 0.9rem;
}

.toc__item--h3::before {
  counter-increment: none;
  content: "—";
  left: 30px;
  color: var(--c-ink-3);
}

.toc__link {
  color: var(--c-ink-2);
  transition: color 0.2s ease;
}

.toc__link:hover {
  color: var(--c-primary-deep);
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.share-buttons__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--c-ink-2);
}

.share-buttons__label .icon {
  color: var(--c-primary-deep);
}

.share-buttons__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-buttons__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-line);
  color: var(--c-ink-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.share-buttons__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 65, 75, 0.14);
}

.share-buttons__btn--x:hover { color: #000; border-color: #000; }
.share-buttons__btn--line:hover { color: #06c755; border-color: #06c755; }
.share-buttons__btn--hatena:hover { color: #00a4de; border-color: #00a4de; }
.share-buttons__btn--fb:hover { color: #1877f2; border-color: #1877f2; }
.share-buttons__btn--copy:hover { color: var(--c-primary-deep); border-color: var(--c-primary); }

.share-buttons__btn--copy.is-copied {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
}

.share-buttons__copied {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-buttons__btn--copy.is-copied .share-buttons__copied {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   Article Tags
   ========================================================================== */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.article-tags__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-ink-2);
}

.article-tags__label .icon {
  color: var(--c-primary-deep);
}

.article-tags__link {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-line);
  font-size: 0.8rem;
  color: var(--c-ink-2);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-tags__link:hover {
  color: var(--c-primary-deep);
  border-color: rgba(10, 186, 181, 0.45);
  background: rgba(10, 186, 181, 0.08);
}

/* ==========================================================================
   Author Box
   ========================================================================== */

.author-box {
  display: flex;
  gap: 22px;
  margin-bottom: 44px;
  padding: 26px;
  border-radius: var(--r-lg);
}

.author-box__avatar img {
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(15, 65, 75, 0.15);
}

.author-box__info {
  flex: 1;
  min-width: 0;
}

.author-box__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-primary-deep);
}

.author-box__name {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.author-box__name a {
  color: var(--c-ink);
  transition: color 0.2s ease;
}

.author-box__name a:hover {
  color: var(--c-primary-deep);
}

.author-box__role {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--c-ink-3);
  margin-bottom: 8px;
}

.author-box__bio {
  font-size: 0.88rem;
  color: var(--c-ink-2);
  margin-bottom: 12px;
}

.author-box__specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.author-box__social {
  display: flex;
  gap: 8px;
}

.author-box__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-line);
  color: var(--c-ink-2);
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.author-box__social-link:hover {
  color: var(--c-primary-deep);
  border-color: rgba(10, 186, 181, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   Related Articles / Post Navigation
   ========================================================================== */

.related-articles {
  margin-bottom: 44px;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.post-navigation a {
  display: block;
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-ink-2);
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.post-navigation a:hover {
  color: var(--c-primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass-lg);
}

.post-navigation__next {
  text-align: right;
}

.post-navigation__arrow {
  color: var(--c-primary-deep);
  font-weight: 700;
}

/* ==========================================================================
   Editorial Note
   ========================================================================== */

.editorial-note {
  margin-bottom: 24px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--c-primary);
}

.editorial-note__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.78rem;
  color: var(--c-ink-2);
}

.editorial-note__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.editorial-note__icon {
  display: inline-flex;
  color: var(--c-primary-deep);
}

.editorial-note__item--verified {
  color: var(--cat-board-deep);
  font-weight: 700;
}

.editorial-note__item--verified .editorial-note__icon {
  color: var(--cat-board-deep);
}

/* ==========================================================================
   Review Box
   ========================================================================== */

.review-box {
  margin-bottom: 36px;
  padding: 26px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.review-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 200px at 90% 0%, rgba(10, 186, 181, 0.12), transparent 70%);
}

.review-box > * {
  position: relative;
}

.review-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-box__badge {
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 10px rgba(10, 186, 181, 0.35);
}

.review-box__item {
  font-size: 1.15rem;
  font-weight: 800;
}

.review-box__score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.review-box__stars {
  display: inline-flex;
  gap: 2px;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(23, 52, 60, 0.18);
}

.review-box__star {
  position: relative;
}

.review-box__star.is-full {
  color: #f5b301;
  text-shadow: 0 2px 8px rgba(245, 179, 1, 0.35);
}

.review-box__star.is-half::before {
  content: "★";
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: #f5b301;
  text-shadow: 0 2px 8px rgba(245, 179, 1, 0.35);
}

.review-box__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--c-primary-ink);
}

.review-box__max {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-ink-3);
}

.review-box__verdict {
  margin-bottom: 18px;
  font-weight: 500;
  color: var(--c-ink-2);
}

.review-box__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.review-box__col {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-line);
}

.review-box__col--pros {
  border-top: 3px solid var(--cat-board);
}

.review-box__col--cons {
  border-top: 3px solid var(--cat-card);
}

.review-box__col-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.review-box__col--pros .review-box__col-title {
  color: var(--cat-board-deep);
}

.review-box__col--cons .review-box__col-title {
  color: var(--cat-card-deep);
}

.review-box__points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.87rem;
  color: var(--c-ink-2);
}

.review-box__col--pros .review-box__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-board);
}

.review-box__col--cons .review-box__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-card);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb-footer {
  padding: 20px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--c-ink-3);
}

.breadcrumb__item a {
  color: var(--c-ink-2);
  transition: color 0.2s ease;
}

.breadcrumb__item a:hover {
  color: var(--c-primary-deep);
}

.breadcrumb__separator {
  color: var(--c-ink-3);
  opacity: 0.6;
}

.breadcrumb__current {
  color: var(--c-ink-3);
  max-width: 32ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  margin-top: 40px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glass-line);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-ink-2);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pagination .page-numbers:hover {
  color: var(--c-primary-deep);
  border-color: rgba(10, 186, 181, 0.5);
  transform: translateY(-1px);
}

.pagination .page-numbers.current {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.pagination .page-numbers.dots {
  background: none;
  border: none;
}

/* ==========================================================================
   Archive / Search Headers
   ========================================================================== */

.archive-page,
.search-page,
.author-page,
.single-article + *,
.page-single,
.page-about {
  padding-top: 36px;
}

.archive-page,
.search-page {
  padding-bottom: 20px;
}

.archive-header,
.search-header {
  margin-bottom: 32px;
  padding: 30px 34px;
  border-radius: var(--r-lg);
}

.archive-header .badge {
  margin-bottom: 12px;
}

.archive-header__title,
.search-header__title {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem);
  margin-bottom: 8px;
}

.archive-header__description {
  color: var(--c-ink-2);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.archive-header__count,
.search-header__count {
  font-size: 0.85rem;
  color: var(--c-ink-3);
}

.archive-header__count strong,
.search-header__count strong {
  color: var(--c-primary-deep);
  font-size: 1.1em;
}

/* No results ------------------------------------------------------------ */

.no-results {
  max-width: 560px;
  margin: 30px auto;
  padding: 44px 30px;
  border-radius: var(--r-xl);
  text-align: center;
}

.no-results__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--c-primary);
  opacity: 0.7;
}

.no-results__icon .icon {
  display: block;
}

.no-results__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.no-results__text {
  font-size: 0.9rem;
  color: var(--c-ink-2);
  margin-bottom: 20px;
}

.no-results__search-form {
  max-width: 380px;
  margin: 0 auto 20px;
}

/* Default WP search form -------------------------------------------------- */

.search-form {
  display: flex;
  gap: 8px;
}

.search-form label {
  flex: 1;
}

.search-form .search-field {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form .search-field:focus {
  outline: none;
  border-color: rgba(10, 186, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.15);
  background: #fff;
}

.search-form .search-submit {
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-primary);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.search-form .search-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* ==========================================================================
   404
   ========================================================================== */

.error-404 {
  padding: 60px 0;
}

.error-404__content {
  padding: clamp(36px, 6vw, 60px) 30px;
  border-radius: var(--r-xl);
  text-align: center;
}

.error-404__illustration {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 10px;
  color: var(--c-primary);
}

.error-404__dice {
  display: inline-flex;
  animation: float-404 3.6s ease-in-out infinite;
}

.error-404__question {
  display: inline-flex;
  color: var(--c-ink-3);
  animation: float-404 3.6s ease-in-out 0.5s infinite;
}

@keyframes float-404 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.error-404__code {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2.5rem + 5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-primary-deep);
  margin-bottom: 6px;
}

.error-404__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.error-404__text {
  font-size: 0.92rem;
  color: var(--c-ink-2);
  margin-bottom: 26px;
}

.error-404__search-form {
  max-width: 400px;
  margin: 0 auto 24px;
}

/* ==========================================================================
   Author Page
   ========================================================================== */

.author-profile {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
  padding: 32px;
  border-radius: var(--r-xl);
}

.author-profile__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(15, 65, 75, 0.18);
  object-fit: cover;
}

.author-profile__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
}

.author-profile__name {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.author-profile__role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-primary-deep);
  margin-bottom: 12px;
}

.author-profile__bio {
  font-size: 0.92rem;
  color: var(--c-ink-2);
  margin-bottom: 14px;
}

.author-profile__specialties {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.author-profile__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-ink-2);
}

.author-profile__label .icon {
  color: var(--c-primary-deep);
}

.author-details {
  margin-bottom: 40px;
}

.author-details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.author-detail-card {
  padding: 22px;
  border-radius: var(--r-lg);
}

.author-detail-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  margin-bottom: 10px;
  color: var(--c-primary-ink);
}

.author-detail-card__title .icon {
  color: var(--c-primary-deep);
}

.author-detail-card__text {
  font-size: 0.88rem;
  color: var(--c-ink-2);
}

/* ==========================================================================
   Static Pages / About
   ========================================================================== */

.page-header {
  margin-bottom: 30px;
  padding: 30px 34px;
  border-radius: var(--r-lg);
}

.page-header__title {
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem);
}

.page-thumbnail {
  margin-bottom: 30px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.page-body {
  margin-bottom: 40px;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  font-size: 0.88rem;
}

.page-links__label {
  font-weight: 700;
  color: var(--c-ink-2);
}

.page-links a,
.page-links > span:not(.page-links__label) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glass-line);
  font-weight: 700;
}

.page-links > span:not(.page-links__label) {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}

.page-links a:hover {
  color: var(--c-primary-deep);
  border-color: rgba(10, 186, 181, 0.5);
}

/* About page */

.about-section {
  margin-bottom: 30px;
  padding: 30px 34px;
  border-radius: var(--r-lg);
}

.about-table-wrap {
  overflow-x: auto;
}

.about-table th {
  width: 180px;
}

.about-policy p {
  font-size: 0.9rem;
  color: var(--c-ink-2);
}

.about-policy__list {
  counter-reset: policy;
}

.about-policy__list > li {
  position: relative;
  padding: 0 0 18px 52px;
  margin-bottom: 4px;
}

.about-policy__list > li::before {
  counter-increment: policy;
  content: counter(policy, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(10, 186, 181, 0.3);
}

.about-policy__list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.eeat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.eeat-card {
  padding: 24px;
  border-radius: var(--r-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.eeat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glass-lg);
  border-color: rgba(10, 186, 181, 0.4);
}

.eeat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(10, 186, 181, 0.12);
  border: 1px solid rgba(10, 186, 181, 0.2);
  color: var(--c-primary-deep);
}

.eeat-card__title {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.eeat-card__en {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-primary-deep);
  text-transform: uppercase;
}

.eeat-card__text {
  font-size: 0.87rem;
  color: var(--c-ink-2);
}

/* ==========================================================================
   Widgets
   ========================================================================== */

.widget-area {
  display: grid;
  gap: 22px;
}

.widget {
  padding: 22px;
  border-radius: var(--r-lg);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 14px;
}

.widget-title::before {
  content: "";
  width: 4px;
  height: 1.2em;
  border-radius: 2px;
  background: var(--grad-primary);
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-line);
  font-size: 0.88rem;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--c-ink-2);
  transition: color 0.2s ease;
}

.widget a:hover {
  color: var(--c-primary-deep);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 56px;
  padding: 48px 0 90px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -8px 32px rgba(15, 65, 75, 0.06);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.site-footer__desc {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--c-ink-2);
}

.site-footer__heading {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--c-ink);
  margin-bottom: 14px;
}

.site-footer__list li {
  margin-bottom: 10px;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--c-ink-2);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__link .icon {
  color: var(--c-primary-deep);
}

.site-footer__link:hover {
  color: var(--c-primary-deep);
  transform: translateX(2px);
}

.site-footer__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--glass-line);
  text-align: center;
}

.site-footer__copyright {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-ink-3);
}

/* ==========================================================================
   Scroll-to-top / Mobile Bottom Nav
   ========================================================================== */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  color: var(--c-primary-deep);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  box-shadow: var(--shadow-glass-lg);
}

.sp-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 95;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  padding: 6px;
}

.sp-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--r-md);
  color: var(--c-ink-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.sp-bottom-nav__item:active,
.sp-bottom-nav__item:hover {
  color: var(--c-primary-ink);
  background: rgba(10, 186, 181, 0.1);
}

.sp-bottom-nav__icon {
  display: inline-flex;
}

.sp-bottom-nav__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-aurora__blob {
    animation: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  .sp-only {
    display: inline;
  }

  .menu-toggle {
    display: flex;
  }

  .header__actions {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .section {
    padding: 30px 0;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .author-box {
    flex-direction: column;
    gap: 14px;
  }

  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .author-profile__specialties {
    justify-content: center;
  }

  .review-box__grid {
    grid-template-columns: 1fr;
  }

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

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-navigation__next {
    text-align: left;
  }

  .site-footer {
    padding-bottom: 110px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sp-bottom-nav {
    display: grid;
  }

  .scroll-top {
    bottom: 84px;
  }

  .alignwide,
  .alignfull {
    margin-inline: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

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

  .hero__panel {
    padding: 36px 22px;
  }

  .archive-header,
  .search-header,
  .page-header,
  .about-section {
    padding: 22px;
  }

  .share-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .sp-bottom-nav,
  .scroll-top,
  .share-buttons,
  .mobile-drawer,
  .bg-aurora,
  .post-navigation,
  .related-articles {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-card,
  .toc,
  .author-box,
  .review-box {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
  }
}

/* ==========================================================================
   Front-page Hero Carousel ("Cloud" featured showcase)
   ========================================================================== */

.hero-featured {
  padding: clamp(28px, 3.5vw, 44px) 0 clamp(6px, 1.5vw, 12px);
}

.hero-featured__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 866;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass-lg);
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.14), rgba(47, 111, 237, 0.12));
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.8s;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.8s ease, transform 6s ease, visibility 0s;
  z-index: 1;
}

.hero-slide__media,
.hero-slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.hero-slide__media--gamepad { background: linear-gradient(135deg, #0e9f6e, #0abab5); }
.hero-slide__media--cards { background: linear-gradient(135deg, #d97706, #f43f5e); }
.hero-slide__media--calendar { background: linear-gradient(135deg, #2f6fed, #7a6feb); }

.hero-slide__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 34, 38, 0.88) 0%, rgba(4, 34, 38, 0.45) 38%, rgba(4, 34, 38, 0.05) 66%, rgba(4, 34, 38, 0) 100%),
    linear-gradient(to right, rgba(4, 34, 38, 0.4) 0%, rgba(4, 34, 38, 0) 55%);
  z-index: 1;
}

.hero-slide__panel {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(26px, 5vw, 58px);
  width: min(92%, 720px);
  padding: clamp(20px, 2.8vw, 34px) clamp(22px, 3.2vw, 40px);
  border-radius: var(--r-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform 0.6s 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s 0.25s ease;
}

.hero-slide.is-active .hero-slide__panel {
  transform: translate(-50%, 0);
  opacity: 1;
}

.hero-slide__badge {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero-slide__title {
  color: #fff;
  font-size: clamp(1.2rem, 0.85rem + 1.7vw, 2.05rem);
  font-weight: 800;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-slide__meta time,
.hero-slide__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-slide:hover .hero-slide__title {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 4px;
}

/* Prev / next arrows */

.hero-featured__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: var(--c-ink);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-featured__stage:hover .hero-featured__arrow,
.hero-featured__arrow:focus-visible {
  opacity: 1;
}

.hero-featured__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.hero-featured__arrow--prev { left: 16px; }
.hero-featured__arrow--next { right: 16px; }

.hero-featured__playpause {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: var(--c-ink);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-featured__playpause:hover {
  background: #fff;
  transform: scale(1.06);
}

.hero-featured__playpause .hero-featured__icon-play {
  display: none;
}

.hero-featured.is-paused .hero-featured__playpause .hero-featured__icon-pause {
  display: none;
}

.hero-featured.is-paused .hero-featured__playpause .hero-featured__icon-play {
  display: inline-flex;
}

/* Progress bar */

.hero-featured__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-featured__progress-bar {
  display: block;
  height: 100%;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Thumbnail cloud (indicators) */

.hero-featured__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 6px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.hero-featured__thumbs::-webkit-scrollbar {
  display: none;
}

.hero-thumb {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 232px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  text-align: left;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-thumb.is-active {
  opacity: 1;
  border-color: rgba(10, 186, 181, 0.55);
  box-shadow: 0 8px 24px rgba(10, 186, 181, 0.26);
}

.hero-thumb__img {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 42px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.2), rgba(47, 111, 237, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-deep);
}

.hero-thumb__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-thumb.is-active .hero-thumb__img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--c-primary);
  border-radius: 9px;
}

.hero-thumb__title {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-thumb.is-active .hero-thumb__title {
  color: var(--c-ink);
}

/* ==========================================================================
   Article Slider (horizontal carousel)
   ========================================================================== */

.article-slider-section {
  padding: clamp(40px, 5vw, 58px) 0 clamp(14px, 2.2vw, 22px);
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head-row .section-title {
  margin-bottom: 0;
}

.slider-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.slider-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  color: var(--c-primary-deep);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.slider-nav__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass-lg);
}

.slider-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.slider-nav__btn--playpause .slider-nav__icon-play {
  display: none;
}

.js-slider.is-paused .slider-nav__btn--playpause .slider-nav__icon-pause {
  display: none;
}

.js-slider.is-paused .slider-nav__btn--playpause .slider-nav__icon-play {
  display: inline-flex;
}

.article-slider__track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-left: 2px;
}

.article-slider__track::-webkit-scrollbar {
  display: none;
}

.article-slider__item {
  flex: 0 0 clamp(320px, 42vw, 468px);
  max-width: 468px;
  scroll-snap-align: start;
}

.article-slider__item .article-card__title {
  font-size: 1.12rem;
}

.article-slider__item .article-card__content {
  padding: 22px 26px 24px;
  gap: 12px;
}

.article-slider__item .article-card {
  height: 100%;
}

@media (max-width: 768px) {
  .article-slider__item {
    flex-basis: 82%;
    max-width: 82%;
  }
}

@media (max-width: 480px) {
  .article-slider__item {
    flex-basis: 88%;
    max-width: 88%;
  }
}

.section__more--tight {
  margin-top: clamp(18px, 2.5vw, 26px);
  padding-bottom: 0;
}

/* Hero responsive */

@media (max-width: 768px) {
  .hero-featured {
    padding-top: 20px;
  }

  .hero-featured__stage {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .hero-slide__panel {
    max-width: none;
  }

  .hero-featured__arrow {
    display: none;
  }

  .hero-thumb {
    width: 200px;
  }
}

/* Reduced motion: no auto-rotate animation, no zoom */

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active {
    transform: none;
    transition: opacity 0.3s ease, visibility 0s;
  }

  .hero-slide__panel {
    transition: none;
  }

  .hero-featured__progress {
    display: none;
  }

  .article-slider__track {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Front-page 3-Column Module (Ranking / Featured / Events)
   ========================================================================== */

.home-columns-section {
  padding: clamp(40px, 5vw, 60px) 0;
}

.home-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
}

.home-col {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 26px);
  border-radius: var(--r-lg);
}

.home-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-line);
}

.home-col__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
}

.home-col__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(10, 186, 181, 0.12);
  border: 1px solid rgba(10, 186, 181, 0.2);
  color: var(--c-primary-deep);
}

.home-col__empty {
  padding: 20px 4px;
  font-size: 0.86rem;
  color: var(--c-ink-3);
}

.rank-list,
.event-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feat-list {
  flex: 1 1 auto;
}

.home-col__foot {
  padding-top: 18px;
}

.home-col__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: rgba(10, 186, 181, 0.09);
  border: 1px solid rgba(10, 186, 181, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-primary-deep);
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-col__more:hover {
  background: rgba(10, 186, 181, 0.16);
  transform: translateX(2px);
}

.home-col__more .icon {
  color: var(--c-primary-deep);
}

/* --- Ranking list --- */

.rank-item + .rank-item {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-line);
}

.rank-item:first-child {
  padding-top: 4px;
}

.rank-item__link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-item__num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--c-ink-3);
  background: rgba(23, 52, 60, 0.06);
}

.rank-item__num--1 {
  color: #fff;
  background: linear-gradient(135deg, #f5b301, #e8890b);
  box-shadow: 0 4px 12px rgba(232, 137, 11, 0.4);
}

.rank-item__num--2 {
  color: #fff;
  background: linear-gradient(135deg, #9fb2bd, #6d8794);
  box-shadow: 0 4px 12px rgba(109, 135, 148, 0.35);
}

.rank-item__num--3 {
  color: #fff;
  background: linear-gradient(135deg, #d99a6c, #b06a3c);
  box-shadow: 0 4px 12px rgba(176, 106, 60, 0.35);
}

.rank-item__thumb {
  flex: 0 0 auto;
  position: relative;
  width: 60px;
  height: 44px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.16), rgba(47, 111, 237, 0.12));
}

.rank-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item__thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--c-primary-deep);
  opacity: 0.7;
}

.rank-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rank-item__body .badge {
  align-self: flex-start;
  padding: 2px 9px;
  font-size: 0.66rem;
}

.rank-item__title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.rank-item__link:hover .rank-item__title {
  color: var(--c-primary-deep);
}

/* --- Featured list (large image-forward cards) --- */

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feat-item + .feat-item {
  padding-top: 18px;
  border-top: 1px solid var(--glass-line);
}

.feat-item__link {
  display: flex;
  flex-direction: column;
}

.feat-item__thumb {
  position: relative;
  width: 100%;
  height: clamp(128px, 12vw, 158px);
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(10, 186, 181, 0.12));
}

.feat-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.feat-item__link:hover .feat-item__thumb img {
  transform: scale(1.05);
}

.feat-item__thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #7c3aed;
  opacity: 0.7;
}

.feat-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 12px;
}

.feat-item__body .badge {
  padding: 3px 11px;
  font-size: 0.7rem;
}

.feat-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.feat-item__link:hover .feat-item__title {
  color: var(--c-primary-deep);
}

.feat-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 0.77rem;
  color: var(--c-ink-3);
}

.feat-item__author,
.feat-item__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feat-item__author {
  font-weight: 600;
  color: var(--c-ink-2);
}

.feat-item__meta .icon {
  color: var(--c-primary-deep);
  opacity: 0.85;
}

/* --- Event list --- */

.event-item + .event-item {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-line);
}

.event-item__link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-item__date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 60px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 186, 181, 0.32);
  line-height: 1;
}

.event-item__month {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.95;
}

.event-item__month small {
  font-size: 0.62rem;
}

.event-item__day {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 1px;
}

.event-item__soon {
  font-size: 0.78rem;
  font-weight: 800;
}

.event-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-item__title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.event-item__link:hover .event-item__title {
  color: var(--c-primary-deep);
}

.event-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--c-ink-3);
}

.event-item__meta .icon {
  color: var(--c-primary-deep);
}

/* --- Responsive: 3 -> 2 -> 1 columns --- */

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

  .home-col--events {
    grid-column: 1 / -1;
  }

  .home-col--events .event-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 0;
    justify-content: initial;
  }

  /* Reset the single-column separators; add dividers per grid row instead. */
  .home-col--events .event-item + .event-item {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--glass-line);
  }

  /* First row (items 1 & 2) has no top divider. */
  .home-col--events .event-item:nth-child(1),
  .home-col--events .event-item:nth-child(2) {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .home-columns {
    grid-template-columns: 1fr;
  }

  .home-col--events .event-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  /* Back to single-column: restore divider on every item after the first. */
  .home-col--events .event-item:nth-child(2) {
    padding-top: 16px;
    border-top: 1px solid var(--glass-line);
  }
}

/* ==========================================================================
   Single Post — 3-Column Layout (PC) / stacked (mobile)
   ========================================================================== */

.container.single-wide {
  width: min(100% - 40px, 1320px);
}

.single-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  grid-template-areas: "rail main adcol";
  gap: 0 34px;
  align-items: start;
  padding-top: 12px;
}

.single-rail  { grid-area: rail; }
.single-main  { grid-area: main; min-width: 0; }
.single-adcol { grid-area: adcol; }

/* Sticky rails on PC (internally scrollable if taller than the viewport) */
.single-rail,
.single-adcol {
  position: sticky;
  top: 124px;
  align-self: start;
  max-height: calc(100vh - 144px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.single-rail::-webkit-scrollbar,
.single-adcol::-webkit-scrollbar {
  display: none;
}

.single-rail__inner,
.single-adcol__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.js-toc-rail:empty {
  display: none;
}

.single-toc {
  margin-bottom: 0;
}

/* Inline TOC mount (used on mobile only) */
.js-toc-inline:empty {
  display: none;
}

.js-toc-inline {
  margin-bottom: 28px;
}

/* ---- Left-rail: image-forward popular ranking cards ---- */
.rank-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-card {
  display: block;
}

.rank-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.18), rgba(47, 111, 237, 0.14));
}

.rank-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rank-card:hover .rank-card__thumb img {
  transform: scale(1.05);
}

.rank-card__thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--c-primary-deep);
  opacity: 0.7;
}

.rank-card__num {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: rgba(23, 52, 60, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.rank-card__num--1 { background: linear-gradient(135deg, #f5b301, #e8890b); }
.rank-card__num--2 { background: linear-gradient(135deg, #9fb2bd, #6d8794); }
.rank-card__num--3 { background: linear-gradient(135deg, #d99a6c, #b06a3c); }

.rank-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding-top: 10px;
}

.rank-card__body .badge {
  padding: 2px 10px;
  font-size: 0.66rem;
}

.rank-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.rank-card:hover .rank-card__title {
  color: var(--c-primary-deep);
}

/* Related inside the narrower main column: 2-up on PC */
@media (min-width: 1081px) {
  .single-main .article-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Right-rail ad slot ---- */
.ad-slot {
  border-radius: var(--r-md);
  border: 1px dashed rgba(23, 52, 60, 0.18);
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.ad-slot__label {
  display: block;
  padding: 4px 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-ink-3);
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(23, 52, 60, 0.14);
}

.ad-slot__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.ad-slot__placeholder {
  font-size: 0.8rem;
  color: var(--c-ink-3);
}

/* ---- Left rail widgets ---- */

.side-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-widget {
  padding: 18px 18px 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.side-widget__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-line);
}

.side-widget__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(10, 186, 181, 0.12);
  border: 1px solid rgba(10, 186, 181, 0.2);
  color: var(--c-primary-deep);
}

/* Compact ranking rows in the rail */
.rank-list--compact .rank-item__thumb {
  width: 52px;
  height: 38px;
}

.rank-list--compact .rank-item__title {
  font-size: 0.82rem;
  -webkit-line-clamp: 2;
}

.rank-list--compact .rank-item + .rank-item {
  padding-top: 12px;
}

.event-list--compact .event-item__date {
  width: 48px;
  height: 52px;
}

.event-list--compact .event-item__day {
  font-size: 1.15rem;
}

.event-list--compact .event-item__title {
  font-size: 0.82rem;
}

.event-list--compact .event-item + .event-item {
  padding-top: 12px;
}

/* Advertising invite box */
.ad-invite {
  text-align: center;
  background:
    radial-gradient(320px 160px at 80% 0%, rgba(10, 186, 181, 0.14), transparent 70%),
    var(--glass);
}

.ad-invite__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 15px;
  background: rgba(10, 186, 181, 0.12);
  border: 1px solid rgba(10, 186, 181, 0.22);
  color: var(--c-primary-deep);
}

.ad-invite__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.ad-invite__text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--c-ink-2);
  margin-bottom: 16px;
}

.ad-invite__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ad-invite__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: #fff;
}

/* ---- Single layout responsive ---- */

@media (max-width: 1080px) {
  .single-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "rail"
      "adcol";
    gap: 0;
  }

  /* Rails become normal stacked sections below the article */
  .single-rail,
  .single-adcol {
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: 36px;
  }

  .single-rail__inner,
  .single-adcol__inner {
    gap: 20px;
  }

  /* The relocated inline TOC sits after the eyecatch, before the body */
  .single-main .js-toc-inline .single-toc {
    margin-bottom: 0;
  }

  /* Ad slot is less dominant on mobile */
  .ad-slot__body {
    min-height: 120px;
  }
}

@media (min-width: 640px) and (max-width: 1080px) {
  /* Tablet: show the two rail widget groups side by side to save height */
  .single-rail__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    align-items: start;
  }
  .single-rail__inner > .js-toc-rail {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  margin-top: 48px;
  padding: 30px clamp(20px, 3vw, 34px) 34px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.comments-area__title {
  margin-bottom: 22px;
}

.comment-list {
  margin-bottom: 8px;
}

.comment-list ol.children {
  margin-top: 18px;
  margin-left: clamp(16px, 3vw, 40px);
  padding-left: clamp(14px, 2vw, 22px);
  border-left: 2px solid var(--glass-line);
}

.comment-list li.comment {
  margin-bottom: 18px;
}

.comment-body {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-line);
}

.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(15, 65, 75, 0.12);
}

.comment-author .fn {
  font-weight: 700;
  font-style: normal;
  color: var(--c-ink);
}

.comment-author .says {
  display: none;
}

.comment-metadata {
  margin-left: auto;
  font-size: 0.76rem;
  white-space: nowrap;
  color: var(--c-ink-3);
}

.comment-metadata a {
  color: var(--c-ink-3);
}

.comment-content {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--c-ink);
}

.comment-content p + p {
  margin-top: 0.8em;
}

.comment-awaiting-moderation {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--cat-card-deep);
}

.reply {
  margin-top: 10px;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(10, 186, 181, 0.1);
  border: 1px solid rgba(10, 186, 181, 0.22);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c-primary-deep);
  transition: background 0.2s ease;
}

.comment-reply-link:hover {
  background: rgba(10, 186, 181, 0.18);
}

.comment-respond {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--glass-line);
}

.comment-form__title {
  margin-bottom: 8px;
}

.comment-form__notes {
  font-size: 0.8rem;
  color: var(--c-ink-3);
  margin-bottom: 18px;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--c-ink-2);
}

.comment-form .required {
  color: #e0483a;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  color: var(--c-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(10, 186, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.15);
  background: #fff;
}

.comment-form-author,
.comment-form-email,
.comment-form-comment {
  margin-bottom: 16px;
}

@media (min-width: 620px) {
  .comment-form-author,
  .comment-form-email {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
  }
  .comment-form-author { margin-right: 14px; }
}

.comment-form__submit {
  border: none;
  cursor: pointer;
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--c-ink-2);
}

.comment-form .comment-form-cookies-consent input {
  width: auto;
  margin-top: 3px;
}

.comment-form .comment-form-cookies-consent label {
  margin-bottom: 0;
  font-weight: 500;
}

.comments-area__closed {
  font-size: 0.86rem;
  color: var(--c-ink-3);
  text-align: center;
  padding: 10px 0;
}

.no-comments {
  font-size: 0.88rem;
  color: var(--c-ink-3);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-intro {
  margin-bottom: 28px;
}

.contact-form-wrap {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-alert .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-alert--ok {
  background: rgba(14, 159, 110, 0.12);
  border: 1px solid rgba(14, 159, 110, 0.3);
  color: var(--cat-board-deep);
}

.contact-alert--error {
  background: rgba(224, 72, 58, 0.1);
  border: 1px solid rgba(224, 72, 58, 0.3);
  color: #b23328;
}

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

.contact-field {
  margin-bottom: 18px;
}

.contact-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-ink-2);
}

.contact-field .required {
  color: #e0483a;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  color: var(--c-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(10, 186, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.15);
  background: #fff;
}

.contact-field--consent > label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--c-ink-2);
}

.contact-field--consent input {
  width: auto;
  margin-top: 3px;
}

.contact-field--consent a {
  color: var(--c-primary-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-submit {
  margin-top: 24px;
  text-align: center;
}

.contact-submit .btn-primary {
  border: none;
  cursor: pointer;
  min-width: 220px;
}

/* ==========================================================================
   Writers List Page
   ========================================================================== */

.writers-intro {
  margin-bottom: 32px;
}

.writers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.writer-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.writer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glass-lg);
  border-color: rgba(10, 186, 181, 0.4);
}

.writer-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.writer-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(15, 65, 75, 0.15);
}

.writer-card__names {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.writer-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-ink);
  transition: color 0.2s ease;
}

.writer-card__head:hover .writer-card__name {
  color: var(--c-primary-deep);
}

.writer-card__role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-primary-deep);
}

.writer-card__count {
  font-size: 0.74rem;
  color: var(--c-ink-3);
}

.writer-card__bio {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--c-ink-2);
  margin-bottom: 14px;
}

.writer-card__specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.writer-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(10, 186, 181, 0.1);
  border: 1px solid rgba(10, 186, 181, 0.22);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-primary-deep);
  transition: background 0.2s ease, transform 0.2s ease;
}

.writer-card__link:hover {
  background: rgba(10, 186, 181, 0.18);
  transform: translateX(2px);
}

/* ==========================================================================
   Content Decorations (エディター装飾パーツ)
   Speech balloons, callout boxes, markers, buttons, steps, Q&A, link cards.
   Shared by the front-end (style.css) and the block editor (editor-style.css).
   ========================================================================== */

:where(.entry-content, .editor-styles-wrapper) .pl-balloon,
.pl-balloon {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 1.8em 0;
}

.pl-balloon--right {
  flex-direction: row-reverse;
}

.pl-balloon__avatar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 66px;
}

.pl-balloon__avatar img,
.pl-balloon__ph {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(15, 65, 75, 0.15);
}

.pl-balloon__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0abab5, #22a8d8);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}

.pl-balloon__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #566d76;
  text-align: center;
  line-height: 1.3;
}

.pl-balloon__bubble {
  position: relative;
  flex: 1;
  padding: 15px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(23, 52, 60, 0.1);
  box-shadow: 0 4px 14px rgba(15, 65, 75, 0.06);
}

.pl-balloon__bubble > :first-child { margin-top: 0; }
.pl-balloon__bubble > :last-child { margin-bottom: 0; }

.pl-balloon__bubble::before,
.pl-balloon__bubble::after {
  content: "";
  position: absolute;
  top: 22px;
  border: 9px solid transparent;
}

.pl-balloon--left .pl-balloon__bubble::before {
  left: -18px;
  border-right-color: rgba(23, 52, 60, 0.1);
}
.pl-balloon--left .pl-balloon__bubble::after {
  left: -16px;
  border-right-color: #ffffff;
}
.pl-balloon--right .pl-balloon__bubble::before {
  right: -18px;
  border-left-color: rgba(23, 52, 60, 0.1);
}
.pl-balloon--right .pl-balloon__bubble::after {
  right: -16px;
  border-left-color: #ffffff;
}

/* Tinted balloon on the teal side */
.pl-balloon--teal .pl-balloon__bubble {
  background: #ecfbfa;
  border-color: rgba(10, 186, 181, 0.28);
}
.pl-balloon--teal.pl-balloon--left .pl-balloon__bubble::after { border-right-color: #ecfbfa; }
.pl-balloon--teal.pl-balloon--right .pl-balloon__bubble::after { border-left-color: #ecfbfa; }

/* ---- Callout boxes ---- */

.pl-box,
.wp-block-group.is-style-plbox-point,
.wp-block-group.is-style-plbox-warn,
.wp-block-group.is-style-plbox-memo,
.wp-block-group.is-style-plbox-good,
.wp-block-group.is-style-plbox-bad {
  position: relative;
  margin: 1.8em 0;
  padding: 18px 20px 18px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(10, 186, 181, 0.35);
  background: #f4fdfc;
}

.pl-box__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #067471;
}

.pl-box__label .icon { color: currentColor; }
.pl-box__body > :first-child { margin-top: 0; }
.pl-box__body > :last-child { margin-bottom: 0; }

.pl-box--point { border-color: rgba(10, 186, 181, 0.4); background: #f0fbfa; }
.pl-box--point .pl-box__label { color: #067471; }

.pl-box--warn { border-color: rgba(217, 119, 6, 0.4); background: #fff7ed; }
.pl-box--warn .pl-box__label { color: #92500a; }

.pl-box--memo { border-color: rgba(23, 52, 60, 0.16); background: #f5f7f8; }
.pl-box--memo .pl-box__label { color: #4a656d; }

.pl-box--good { border-color: rgba(14, 159, 110, 0.4); background: #f0fdf6; }
.pl-box--good .pl-box__label { color: #046c4e; }

.pl-box--bad { border-color: rgba(224, 72, 58, 0.38); background: #fef2f1; }
.pl-box--bad .pl-box__label { color: #b23328; }

/* Block-style boxes get an auto label via ::before */
.wp-block-group.is-style-plbox-point,
.wp-block-group.is-style-plbox-warn,
.wp-block-group.is-style-plbox-memo,
.wp-block-group.is-style-plbox-good,
.wp-block-group.is-style-plbox-bad {
  padding-top: 40px;
}
.wp-block-group[class*="is-style-plbox-"]::before {
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 0.8rem;
  font-weight: 800;
}
.wp-block-group.is-style-plbox-point::before { content: "POINT"; color: #067471; }
.wp-block-group.is-style-plbox-warn::before  { content: "注意";   color: #92500a; }
.wp-block-group.is-style-plbox-memo::before  { content: "MEMO";  color: #4a656d; }
.wp-block-group.is-style-plbox-good::before  { content: "良い点"; color: #046c4e; }
.wp-block-group.is-style-plbox-bad::before   { content: "気になる点"; color: #b23328; }

/* ---- Markers (inline + paragraph block-styles) ---- */

.pl-marker,
.pl-marker--yellow {
  background: linear-gradient(transparent 62%, rgba(255, 221, 87, 0.75) 62%);
  padding: 0 2px;
  font-weight: 700;
}
.pl-marker--teal { background: linear-gradient(transparent 62%, rgba(10, 186, 181, 0.35) 62%); }
.pl-marker--pink { background: linear-gradient(transparent 62%, rgba(244, 114, 182, 0.4) 62%); }

.is-style-plmarker-yellow {
  background: linear-gradient(transparent 60%, rgba(255, 221, 87, 0.7) 60%);
  display: inline;
}
.is-style-plmarker-teal {
  background: linear-gradient(transparent 60%, rgba(10, 186, 181, 0.32) 60%);
  display: inline;
}
.is-style-plunderline {
  background-image: linear-gradient(rgba(10, 186, 181, 0.5), rgba(10, 186, 181, 0.5));
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 100% 2px;
}

/* ---- Inline / block button ---- */

.pl-btn,
.wp-block-button.is-style-plbtn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0abab5, #22a8d8);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(10, 186, 181, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.pl-btn { margin: 0.6em 0; }
.pl-btn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }
.pl-btn__arrow { font-weight: 700; }

.pl-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 186, 181, 0.45);
  color: #067471 !important;
  box-shadow: 0 4px 14px rgba(10, 186, 181, 0.15);
}

/* ---- Steps ---- */

.pl-steps {
  counter-reset: plstep;
  margin: 1.8em 0;
  padding-left: 0;
  list-style: none;
}

.pl-step {
  position: relative;
  padding: 0 0 20px 54px;
  margin: 0;
}

.pl-step::before {
  counter-increment: plstep;
  content: counter(plstep);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0abab5, #22a8d8);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(10, 186, 181, 0.3);
}

.pl-step::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: rgba(10, 186, 181, 0.25);
}

.pl-step:last-child::after { display: none; }

.pl-step__title {
  margin: 4px 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #17343c;
}

.pl-step__body > :first-child { margin-top: 0; }
.pl-step__body > :last-child { margin-bottom: 0; }

/* ---- Q&A ---- */

.pl-qa {
  margin: 1.8em 0;
  border-radius: 14px;
  border: 1px solid rgba(23, 52, 60, 0.1);
  overflow: hidden;
}

.pl-qa__q,
.pl-qa__a {
  position: relative;
  padding: 16px 20px 16px 54px;
}

.pl-qa__q {
  background: rgba(10, 186, 181, 0.09);
  font-weight: 700;
  color: #17343c;
}

.pl-qa__a {
  border-top: 1px solid rgba(23, 52, 60, 0.08);
}

.pl-qa__q::before,
.pl-qa__a::before {
  position: absolute;
  left: 18px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
}

.pl-qa__q::before { content: "Q"; background: #0abab5; color: #fff; }
.pl-qa__a::before { content: "A"; background: #fff; color: #067471; border: 1.5px solid #0abab5; }

.pl-qa__a > :first-child { margin-top: 0; }
.pl-qa__a > :last-child { margin-bottom: 0; }

/* ---- Internal link card ---- */

.pl-linkcard {
  display: flex;
  gap: 16px;
  margin: 1.8em 0;
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(23, 52, 60, 0.1);
  box-shadow: 0 4px 14px rgba(15, 65, 75, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.pl-linkcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 65, 75, 0.12);
  border-color: rgba(10, 186, 181, 0.4);
}

.pl-linkcard__thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.16), rgba(47, 111, 237, 0.12));
}

.pl-linkcard__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pl-linkcard__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.pl-linkcard__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #067471;
  margin-bottom: 3px;
}

.pl-linkcard__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: #17343c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pl-linkcard__desc {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #566d76;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Compare (good / bad, two columns) ---- */

.pl-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.8em 0;
}

@media (max-width: 560px) {
  .pl-compare { grid-template-columns: 1fr; }
}

/* ---- Check list (block style) ---- */

.wp-block-list.is-style-plcheck,
ul.is-style-plcheck,
.pl-checklist {
  list-style: none;
  padding-left: 0;
}

.wp-block-list.is-style-plcheck li,
ul.is-style-plcheck li,
.pl-checklist li {
  position: relative;
  padding-left: 30px;
  margin: 0.5em 0;
}

.wp-block-list.is-style-plcheck li::before,
ul.is-style-plcheck li::before,
.pl-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #0abab5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---- Decoration overrides (beat .entry-content list/link rules) ---- */
.entry-content ol.pl-steps,
.entry-content ul.pl-checklist,
.entry-content ul.is-style-plcheck,
.entry-content .wp-block-list.is-style-plcheck {
  list-style: none;
  padding-left: 0;
}

.entry-content ol.pl-steps > li.pl-step { margin-top: 0; }
.entry-content ol.pl-steps > li.pl-step::marker { content: none; }

.entry-content a.pl-linkcard,
.entry-content a.pl-linkcard:hover,
.entry-content a.pl-btn,
.entry-content a.pl-btn:hover {
  text-decoration: none;
}

/* ---- Image CLS / scaling safety ---- */
.entry-content img,
.entry-content video {
  height: auto;
  max-width: 100%;
}

.entry-content figure {
  margin-inline: 0;
}

.entry-content .wp-block-embed__wrapper {
  position: relative;
}
