@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* kaisenzamurai design refresh start */
:root {
  --ks-ink: #24313a;
  --ks-muted: #64727d;
  --ks-navy: #143447;
  --ks-teal: #0b6e69;
  --ks-deep: #1d3557;
  --ks-gold: #f6c85f;
  --ks-red: #7b2d26;
  --ks-bg: #f5f7f4;
  --ks-line: rgba(20, 52, 71, .12);
  --ks-shadow: 0 16px 42px rgba(20, 52, 71, .12);
}

body.public-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(246, 200, 95, .18), transparent 28rem),
    radial-gradient(circle at 100% 8%, rgba(11, 110, 105, .13), transparent 34rem),
    var(--ks-bg);
  color: var(--ks-ink);
}

#header {
  position: relative;
  overflow: hidden;
  padding: 30px 0 36px;
  background:
    linear-gradient(135deg, rgba(20, 52, 71, .96), rgba(11, 110, 105, .92) 56%, rgba(123, 45, 38, .88));
  color: #fff;
}

#header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(255,255,255,.08) 44% 46%, transparent 46% 100%),
    radial-gradient(circle at 82% 18%, rgba(246, 200, 95, .26), transparent 13rem);
  pointer-events: none;
}

#header-in {
  position: relative;
  z-index: 1;
}

.logo-text .site-name-text,
.site-name-text {
  color: #fff;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .18);
}

.tagline {
  color: rgba(255,255,255,.88);
  font-weight: 700;
  letter-spacing: .03em;
}

#navi,
.navi {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--ks-line);
  box-shadow: 0 10px 28px rgba(20, 52, 71, .08);
  backdrop-filter: blur(10px);
}

#navi .navi-in > ul > li > a,
.navi-in a {
  color: var(--ks-navy);
  font-weight: 800;
}

#content-in {
  padding-top: 30px;
}

.main,
.sidebar .widget,
.widget-sidebar {
  border-radius: 18px;
}

.entry-card-wrap.a-wrap {
  display: block;
  position: relative;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--ks-line);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(20, 52, 71, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.entry-card-wrap.a-wrap:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 110, 105, .34);
  box-shadow: var(--ks-shadow);
}

.entry-card-thumb,
.card-thumb,
.entry-card-thumb-image {
  border-radius: 15px;
  overflow: hidden;
}

.entry-card-thumb-image,
.card-thumb-image,
.wp-post-image {
  transition: transform .3s ease, filter .3s ease;
}

.entry-card-wrap:hover .entry-card-thumb-image {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.04);
}

.entry-card-title,
.related-entry-card-title,
.entry-title {
  color: var(--ks-navy);
  font-weight: 900;
  letter-spacing: 0;
}

.entry-card-snippet,
.related-entry-card-snippet,
.entry-card-meta {
  color: var(--ks-muted);
  line-height: 1.8;
}

.cat-label,
.cat-link,
.entry-category a {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--ks-gold), #ffe39b) !important;
  color: #17313b !important;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(246, 200, 95, .28);
}

.article,
.single .main,
.page .main {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--ks-line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(20, 52, 71, .08);
}

.article h1.entry-title,
.entry-title {
  line-height: 1.35;
}

.eye-catch img,
.article .wp-post-image {
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(20, 52, 71, .16);
}

.entry-content {
  line-height: 1.95;
}

.entry-content h2 {
  position: relative;
  margin-top: 2.2em;
  padding: .75em .95em .75em 1.05em;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,110,105,.11), rgba(246,200,95,.18));
  color: var(--ks-navy);
  font-weight: 900;
}

.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  bottom: .7em;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ks-teal), var(--ks-gold));
}

.entry-content h3 {
  padding-left: .75em;
  border-left: 4px solid var(--ks-gold);
  color: var(--ks-deep);
}

.entry-content .wp-block-group {
  margin: 28px 0;
  padding: 24px 26px;
  border: 1px solid rgba(11,110,105,.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,200,95,.10)),
    #fff;
  box-shadow: 0 14px 34px rgba(20,52,71,.10);
}

.entry-content .wp-block-group h2:first-child {
  margin-top: 0;
  background: transparent;
  padding-top: 0;
  padding-left: 0;
}

.entry-content .wp-block-group h2:first-child::before {
  display: none;
}

.entry-content .wp-block-group ul {
  padding-left: 1.2em;
}

.entry-content .wp-block-group li::marker {
  color: var(--ks-teal);
}

.wp-block-table {
  overflow: auto;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20,52,71,.08);
}

.wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.wp-block-table th {
  background: var(--ks-navy);
  color: #fff;
  font-weight: 900;
}

.wp-block-table td,
.wp-block-table th {
  border-color: rgba(20,52,71,.12) !important;
  padding: 12px 14px;
}

.toc,
.sidebar .widget,
.widget-sidebar {
  border: 1px solid var(--ks-line);
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 30px rgba(20,52,71,.08);
}

.toc-title,
.widget-title {
  color: var(--ks-navy);
  font-weight: 900;
}

.author-box,
.related-entries,
.comment-area {
  border-radius: 18px;
}

#footer,
.footer {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--ks-navy), #0b6e69);
  color: rgba(255,255,255,.9);
}

#footer a,
.footer a {
  color: #fff;
}

@media screen and (max-width: 834px) {
  #header { padding: 24px 0 28px; }
  .entry-card-wrap.a-wrap { padding: 10px; border-radius: 16px; }
  .entry-content .wp-block-group { padding: 18px; border-radius: 16px; }
  .entry-content h2 { font-size: 1.18em; }
}
/* kaisenzamurai design refresh end */


/* kaisenzamurai mascot start */
#header::after {
  content: "";
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2 + 20px));
  bottom: -18px;
  width: clamp(132px, 17vw, 230px);
  aspect-ratio: 1;
  background: url("https://kaisenzamurai.jp/wp-content/uploads/2026/05/kaisen-samurai-mascot.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.22));
  opacity: .96;
  z-index: 1;
  pointer-events: none;
}

#header-in {
  padding-right: clamp(120px, 19vw, 240px);
}

.entry-content .wp-block-group {
  position: relative;
  overflow: hidden;
}

.entry-content .wp-block-group::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -24px;
  width: 118px;
  height: 118px;
  background: url("https://kaisenzamurai.jp/wp-content/uploads/2026/05/kaisen-samurai-mascot.png") center / contain no-repeat;
  opacity: .13;
  pointer-events: none;
}

.entry-content .wp-block-group::before {
  content: none;
}

.entry-content .wp-block-group:has(h2:first-child)::before {
  content: none;
}

.entry-content .wp-block-group:has(h2:first-child)::after {
  opacity: .10;
}

.entry-content .wp-block-group:has(h2:first-child):has(a[href*="kaisen-erabikata-shindan"])::before {
  content: "回線侍くんのメモ";
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(246, 200, 95, .24);
  color: var(--ks-navy);
  font-size: .82em;
  font-weight: 900;
}

.entry-content .wp-block-group:has(h2:first-child):has(a[href*="kaisen-erabikata-shindan"])::after {
  opacity: .18;
}

.entry-content .wp-block-group h2:first-child {
  margin-top: 0;
}

@media screen and (max-width: 834px) {
  #header::after {
    right: 8px;
    bottom: -10px;
    width: 118px;
    opacity: .75;
  }
  #header-in {
    padding-right: 96px;
  }
  .entry-content .wp-block-group::after {
    width: 86px;
    height: 86px;
    opacity: .10;
  }
}
/* kaisenzamurai mascot end */

/* kaisenzamurai mascot focus tweak start */
.entry-content .wp-block-group::after {
  content: none;
  background: none;
}

.entry-content .wp-block-group:has(h2:first-child):has(a[href*="kaisen-erabikata-shindan"])::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -24px;
  width: 118px;
  height: 118px;
  background: url("https://kaisenzamurai.jp/wp-content/uploads/2026/05/kaisen-samurai-mascot.png") center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}

@media screen and (max-width: 834px) {
  .entry-content .wp-block-group::after {
    content: none;
    background: none;
  }
  .entry-content .wp-block-group:has(h2:first-child):has(a[href*="kaisen-erabikata-shindan"])::after {
    content: "";
    width: 86px;
    height: 86px;
    opacity: .12;
  }
}
/* kaisenzamurai mascot focus tweak end */

/* kaisenzamurai originality modules start */
.ks-samurai-judge,
.ks-judge-manifesto {
  position: relative;
  overflow: hidden;
  margin: 34px 0;
  padding: 24px 24px 22px;
  border: 2px solid rgba(14, 43, 64, .12);
  border-left: 7px solid var(--ks-gold);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(246,250,252,.92)),
    radial-gradient(circle at 100% 0%, rgba(246,200,95,.22), transparent 36%);
  box-shadow: 0 16px 34px rgba(14, 43, 64, .10);
}

.ks-samurai-judge::before {
  content: "回線侍くんの判定";
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 43, 64, .92);
  color: #fff;
  font-size: .8em;
  font-weight: 900;
  letter-spacing: 0;
}

.ks-samurai-judge .ks-judge-eyebrow,
.ks-judge-manifesto .ks-judge-eyebrow {
  margin: 0 0 6px;
  color: #b17a00;
  font-size: .86em;
  font-weight: 900;
}

.ks-samurai-judge h2,
.ks-judge-manifesto h2 {
  margin-top: 0;
  padding-left: 0;
  background: none;
  color: var(--ks-navy);
}

.ks-samurai-judge h2::before,
.ks-judge-manifesto h2::before {
  content: none;
}

.ks-judge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
}

.ks-judge-grid > div {
  min-height: 116px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(14,43,64,.12);
}

.ks-judge-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ks-navy);
  font-size: .98em;
}

.ks-judge-grid span {
  display: block;
  color: #31485a;
  line-height: 1.72;
}

.ks-judge-link {
  margin-bottom: 0;
  font-weight: 800;
}

.ks-samurai-judge::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -20px;
  width: 108px;
  height: 108px;
  background: url("https://kaisenzamurai.jp/wp-content/uploads/2026/05/kaisen-samurai-mascot.png") center / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}

@media screen and (max-width: 834px) {
  .ks-samurai-judge,
  .ks-judge-manifesto {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .ks-judge-grid {
    grid-template-columns: 1fr;
  }
  .ks-judge-grid > div {
    min-height: auto;
  }
  .ks-samurai-judge::after {
    width: 84px;
    height: 84px;
    opacity: .10;
  }
}
/* kaisenzamurai originality modules end */

/* kaisenzamurai originality specificity fix start */
.entry-content .wp-block-group.ks-samurai-judge,
.entry-content .wp-block-group.ks-judge-manifesto {
  margin: 34px 0;
  padding: 24px 24px 22px;
  border: 2px solid rgba(14, 43, 64, .12);
  border-left: 7px solid var(--ks-gold);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,250,252,.92)),
    radial-gradient(circle at 100% 0%, rgba(246,200,95,.24), transparent 36%);
  box-shadow: 0 16px 34px rgba(14, 43, 64, .10);
}

.entry-content .wp-block-group.ks-samurai-judge::before {
  content: "回線侍くんの判定";
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 43, 64, .92);
  color: #fff;
  font-size: .8em;
  font-weight: 900;
}

.entry-content .wp-block-group.ks-samurai-judge::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -20px;
  width: 108px;
  height: 108px;
  background: url("https://kaisenzamurai.jp/wp-content/uploads/2026/05/kaisen-samurai-mascot.png") center / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}

.entry-content .wp-block-group.ks-samurai-judge h2,
.entry-content .wp-block-group.ks-judge-manifesto h2 {
  margin-top: 0;
  padding-left: 0;
  background: none;
  color: var(--ks-navy);
}

.entry-content .wp-block-group.ks-samurai-judge h2::before,
.entry-content .wp-block-group.ks-judge-manifesto h2::before {
  content: none;
}

.entry-content .wp-block-group.ks-samurai-judge .ks-judge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
}

@media screen and (max-width: 834px) {
  .entry-content .wp-block-group.ks-samurai-judge,
  .entry-content .wp-block-group.ks-judge-manifesto {
    padding: 20px 16px;
  }
  .entry-content .wp-block-group.ks-samurai-judge .ks-judge-grid {
    grid-template-columns: 1fr;
  }
  .entry-content .wp-block-group.ks-samurai-judge::after {
    width: 84px;
    height: 84px;
    opacity: .10;
  }
}
/* kaisenzamurai originality specificity fix end */

/* kaisenzamurai admin view cleanup start */
#admin-panel {
  display: none !important;
}

body.admin-bar #go-to-top {
  bottom: 18px;
}
/* kaisenzamurai admin view cleanup end */

/* kaisenzamurai original tool start */
.ks-tool {
  position: relative;
  overflow: hidden;
  margin: 34px 0;
  padding: 26px;
  border-radius: 18px;
  border: 2px solid rgba(14,43,64,.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(242,248,247,.94)),
    radial-gradient(circle at 100% 0%, rgba(246,200,95,.24), transparent 38%);
  box-shadow: 0 18px 40px rgba(14,43,64,.11);
}

.ks-tool::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 118px;
  height: 118px;
  background: url("https://kaisenzamurai.jp/wp-content/uploads/2026/05/kaisen-samurai-mascot.png") center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}

.ks-tool-head {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.ks-tool-label,
.ks-result-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14,43,64,.92);
  color: #fff;
  font-size: .82em;
  font-weight: 900;
}

.ks-tool-head h2 {
  margin-top: 0;
  padding-left: 0;
  background: none;
  color: var(--ks-navy);
}

.ks-tool-head h2::before {
  content: none;
}

.ks-tool-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 18px;
}

.ks-tool-grid label {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(14,43,64,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  color: var(--ks-navy);
  font-weight: 900;
}

.ks-tool-grid select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(14,43,64,.18);
  border-radius: 10px;
  background: #fff;
  color: #22384a;
  font-weight: 600;
}

.ks-tool-button {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ks-navy), #0b6e69);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(14,43,64,.18);
}

.ks-tool-result {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.ks-result-placeholder,
.ks-result-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(14,43,64,.12);
}

.ks-result-card h3 {
  margin: 6px 0;
  color: var(--ks-navy);
  font-size: 1.45em;
}

.ks-risk {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246,200,95,.18);
}

.ks-risk span { font-weight: 900; color: var(--ks-navy); }
.ks-risk strong { color: #b17a00; font-size: 1.2em; }
.ks-risk em { margin-left: auto; font-style: normal; font-weight: 900; color: #31485a; }

.ks-result-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ks-result-columns > div {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(14,43,64,.12);
  background: rgba(255,255,255,.9);
}

.ks-result-columns strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ks-navy);
}

.ks-result-columns ul {
  margin-bottom: 0;
  padding-left: 1.25em;
}

.ks-result-note {
  margin: 16px 0 0;
  color: #4c6170;
  font-size: .92em;
}

.ks-tool-cta {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(14,43,64,.12);
  border-left: 6px solid var(--ks-gold);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,250,252,.92));
  box-shadow: 0 12px 28px rgba(14,43,64,.08);
}

.ks-tool-cta strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ks-navy);
  font-size: 1.08em;
}

.ks-tool-cta p { margin-bottom: 8px; }
.ks-tool-cta a { font-weight: 900; }

@media screen and (max-width: 834px) {
  .ks-tool { padding: 20px 16px; }
  .ks-tool::after { width: 84px; height: 84px; opacity: .10; }
  .ks-tool-grid,
  .ks-result-columns { grid-template-columns: 1fr; }
  .ks-risk em { margin-left: 0; }
}
/* kaisenzamurai original tool end */

/* kaisenzamurai manga blocks start */
.entry-content .wp-block-group.ks-manga-block {
  position: relative;
  margin: 30px 0;
  padding: 22px;
  border-radius: 18px;
  border: 2px solid rgba(14,43,64,.12);
  border-left: 7px solid #0b6e69;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(246,250,252,.94));
  box-shadow: 0 16px 34px rgba(14,43,64,.10);
  overflow: hidden;
}

.entry-content .wp-block-group.ks-manga-block::before {
  content: "回線侍くんの4コマ";
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14,43,64,.92);
  color: #fff;
  font-size: .82em;
  font-weight: 900;
}

.entry-content .wp-block-group.ks-manga-block::after {
  content: none;
}

.entry-content .wp-block-group.ks-manga-block h2 {
  margin-top: 0;
  padding-left: 0;
  background: none;
  color: var(--ks-navy);
}

.entry-content .wp-block-group.ks-manga-block h2::before {
  content: none;
}

.entry-content .wp-block-group.ks-manga-block figure {
  margin: 14px 0 10px;
}

.entry-content .wp-block-group.ks-manga-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(14,43,64,.14);
  box-shadow: 0 12px 28px rgba(14,43,64,.10);
}

.entry-content .wp-block-group.ks-manga-block p:last-child {
  margin-bottom: 0;
  color: #4c6170;
  font-weight: 700;
}

@media screen and (max-width: 834px) {
  .entry-content .wp-block-group.ks-manga-block {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .entry-content .wp-block-group.ks-manga-block img {
    border-radius: 12px;
  }
}
/* kaisenzamurai manga blocks end */

/* kaisenzamurai manga strips start */
.ks-manga-strip {
  position: relative;
  overflow: hidden;
  margin: 30px 0;
  padding: 22px;
  border-radius: 18px;
  border: 2px solid rgba(14,43,64,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,250,236,.92));
  box-shadow: 0 16px 34px rgba(14,43,64,.10);
}

.ks-manga-label {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14,43,64,.92);
  color: #fff;
  font-size: .82em;
  font-weight: 900;
}

.entry-content .wp-block-group.ks-manga-strip h2,
.ks-manga-strip h2 {
  margin-top: 0;
  padding-left: 0;
  background: none;
  color: var(--ks-navy);
}

.entry-content .wp-block-group.ks-manga-strip h2::before,
.ks-manga-strip h2::before {
  content: none;
}

.ks-manga-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ks-manga-panel {
  position: relative;
  min-height: 238px;
  padding: 12px;
  border: 2px solid rgba(14,43,64,.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

.ks-manga-panel::before {
  content: attr(data-koma);
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ks-gold);
  color: var(--ks-navy);
  font-weight: 900;
  font-size: .86em;
}

.ks-manga-scene {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 82px;
  margin: 20px 0 10px;
  gap: 8px;
}

.ks-manga-reader {
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #f7d7a7, #efb875);
  border: 3px solid var(--ks-navy);
  position: relative;
}

.ks-manga-reader::before,
.ks-manga-reader::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ks-navy);
}

.ks-manga-reader::before { left: 15px; }
.ks-manga-reader::after { right: 15px; }

.ks-manga-mascot {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(14,43,64,.14));
}

.ks-manga-bubble {
  position: relative;
  min-height: 96px;
  padding: 12px;
  border-radius: 14px;
  background: #f7fbfb;
  border: 1px solid rgba(14,43,64,.14);
  color: #22384a;
  line-height: 1.58;
}

.ks-manga-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ks-navy);
}

.ks-manga-note {
  margin: 12px 0 0;
  color: #4c6170;
  font-size: .9em;
}

@media screen and (max-width: 1100px) {
  .ks-manga-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 640px) {
  .ks-manga-strip { padding: 18px 14px; }
  .ks-manga-panels { grid-template-columns: 1fr; }
  .ks-manga-panel { min-height: auto; }
  .ks-manga-scene { min-height: 68px; }
}
/* kaisenzamurai manga strips end */

/* kaisenzamurai manga readability fix start */
.entry-content .wp-block-group.ks-manga-strip .ks-manga-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-content .wp-block-group.ks-manga-strip .ks-manga-panel {
  min-height: 210px;
}

.entry-content .wp-block-group.ks-manga-strip .ks-manga-bubble {
  min-height: 78px;
}

@media screen and (max-width: 640px) {
  .entry-content .wp-block-group.ks-manga-strip .ks-manga-panels {
    grid-template-columns: 1fr;
  }
}
/* kaisenzamurai manga readability fix end */

/* Codex readable article table design start */
.entry-content .article-table-scroll,
.article .article-table-scroll,
.wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 81, 50, 0.08);
}

.entry-content table,
.article table,
.article-table-scroll table,
.wp-block-table table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  font-size: 0.95em;
  line-height: 1.7;
  background: #ffffff;
}

.entry-content table th,
.entry-content table td,
.article table th,
.article table td,
.article-table-scroll th,
.article-table-scroll td,
.wp-block-table th,
.wp-block-table td {
  padding: 0.9em 1em !important;
  border: 0 !important;
  border-top: 1px solid #d8e5dd !important;
  border-right: 1px solid #d8e5dd !important;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content table tr > :last-child,
.article table tr > :last-child,
.article-table-scroll tr > :last-child,
.wp-block-table tr > :last-child {
  border-right: 0 !important;
}

.entry-content table thead th,
.article table thead th,
.article-table-scroll thead th,
.wp-block-table thead th {
  background: #0f5132 !important;
  color: #ffffff !important;
  font-weight: 700;
  text-align: left;
  border-top: 0 !important;
}

.entry-content table tbody th,
.article table tbody th,
.article-table-scroll tbody th,
.wp-block-table tbody th {
  background: #f2f8f4 !important;
  color: #173b29 !important;
  font-weight: 700;
  text-align: left;
}

.entry-content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) th,
.article table tbody tr:nth-child(even) td,
.article table tbody tr:nth-child(even) th,
.article-table-scroll tbody tr:nth-child(even) td,
.article-table-scroll tbody tr:nth-child(even) th,
.wp-block-table tbody tr:nth-child(even) td,
.wp-block-table tbody tr:nth-child(even) th {
  background: #f8fbf8 !important;
}

.entry-content table caption,
.article table caption,
.article-table-scroll caption,
.wp-block-table caption {
  caption-side: bottom;
  padding: 0.7em 0.9em;
  color: #5b665f;
  font-size: 0.92em;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 640px) {
  .entry-content .article-table-scroll,
  .article .article-table-scroll,
  .wp-block-table {
    margin-right: -0.4em;
    margin-left: -0.4em;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .entry-content table,
  .article table,
  .article-table-scroll table,
  .wp-block-table table {
    min-width: 620px;
    font-size: 0.9em;
  }

  .entry-content table th,
  .entry-content table td,
  .article table th,
  .article table td,
  .article-table-scroll th,
  .article-table-scroll td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 0.72em 0.8em !important;
  }
}
/* Codex readable article table design end */

/* Codex readable article table design start */
.entry-content .article-table-scroll,
.article .article-table-scroll,
.wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 81, 50, 0.08);
}

.entry-content table,
.article table,
.article-table-scroll table,
.wp-block-table table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  font-size: 0.95em;
  line-height: 1.7;
  background: #ffffff;
}

.entry-content table th,
.entry-content table td,
.article table th,
.article table td,
.article-table-scroll th,
.article-table-scroll td,
.wp-block-table th,
.wp-block-table td {
  padding: 0.9em 1em !important;
  border: 0 !important;
  border-top: 1px solid #d8e5dd !important;
  border-right: 1px solid #d8e5dd !important;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content table tr > :last-child,
.article table tr > :last-child,
.article-table-scroll tr > :last-child,
.wp-block-table tr > :last-child {
  border-right: 0 !important;
}

.entry-content table thead th,
.article table thead th,
.article-table-scroll thead th,
.wp-block-table thead th {
  background: #0f5132 !important;
  color: #ffffff !important;
  font-weight: 700;
  text-align: left;
  border-top: 0 !important;
}

.entry-content table tbody th,
.article table tbody th,
.article-table-scroll tbody th,
.wp-block-table tbody th {
  background: #f2f8f4 !important;
  color: #173b29 !important;
  font-weight: 700;
  text-align: left;
}

.entry-content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) th,
.article table tbody tr:nth-child(even) td,
.article table tbody tr:nth-child(even) th,
.article-table-scroll tbody tr:nth-child(even) td,
.article-table-scroll tbody tr:nth-child(even) th,
.wp-block-table tbody tr:nth-child(even) td,
.wp-block-table tbody tr:nth-child(even) th {
  background: #f8fbf8 !important;
}

.entry-content table caption,
.article table caption,
.article-table-scroll caption,
.wp-block-table caption {
  caption-side: bottom;
  padding: 0.7em 0.9em;
  color: #5b665f;
  font-size: 0.92em;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 640px) {
  .entry-content .article-table-scroll,
  .article .article-table-scroll,
  .wp-block-table {
    margin-right: -0.4em;
    margin-left: -0.4em;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .entry-content table,
  .article table,
  .article-table-scroll table,
  .wp-block-table table {
    min-width: 620px;
    font-size: 0.9em;
  }

  .entry-content table th,
  .entry-content table td,
  .article table th,
  .article table td,
  .article-table-scroll th,
  .article-table-scroll td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 0.72em 0.8em !important;
  }
}
/* Codex readable article table design end */

/* Codex readable article table design start */
.entry-content .article-table-scroll,
.article .article-table-scroll,
.wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 81, 50, 0.08);
}

.entry-content table,
.article table,
.article-table-scroll table,
.wp-block-table table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  font-size: 0.95em;
  line-height: 1.7;
  background: #ffffff;
}

.entry-content table th,
.entry-content table td,
.article table th,
.article table td,
.article-table-scroll th,
.article-table-scroll td,
.wp-block-table th,
.wp-block-table td {
  padding: 0.9em 1em !important;
  border: 0 !important;
  border-top: 1px solid #d8e5dd !important;
  border-right: 1px solid #d8e5dd !important;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content table tr > :last-child,
.article table tr > :last-child,
.article-table-scroll tr > :last-child,
.wp-block-table tr > :last-child {
  border-right: 0 !important;
}

.entry-content table thead th,
.article table thead th,
.article-table-scroll thead th,
.wp-block-table thead th {
  background: #0f5132 !important;
  color: #ffffff !important;
  font-weight: 700;
  text-align: left;
  border-top: 0 !important;
}

.entry-content table tbody th,
.article table tbody th,
.article-table-scroll tbody th,
.wp-block-table tbody th {
  background: #f2f8f4 !important;
  color: #173b29 !important;
  font-weight: 700;
  text-align: left;
}

.entry-content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) th,
.article table tbody tr:nth-child(even) td,
.article table tbody tr:nth-child(even) th,
.article-table-scroll tbody tr:nth-child(even) td,
.article-table-scroll tbody tr:nth-child(even) th,
.wp-block-table tbody tr:nth-child(even) td,
.wp-block-table tbody tr:nth-child(even) th {
  background: #f8fbf8 !important;
}

.entry-content table caption,
.article table caption,
.article-table-scroll caption,
.wp-block-table caption {
  caption-side: bottom;
  padding: 0.7em 0.9em;
  color: #5b665f;
  font-size: 0.92em;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 640px) {
  .entry-content .article-table-scroll,
  .article .article-table-scroll,
  .wp-block-table {
    margin-right: -0.4em;
    margin-left: -0.4em;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .entry-content table,
  .article table,
  .article-table-scroll table,
  .wp-block-table table {
    min-width: 620px;
    font-size: 0.9em;
  }

  .entry-content table th,
  .entry-content table td,
  .article table th,
  .article table td,
  .article-table-scroll th,
  .article-table-scroll td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 0.72em 0.8em !important;
  }
}
/* Codex readable article table design end */

/* Codex readable article table design start */
.entry-content .article-table-scroll,
.article .article-table-scroll,
.wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 81, 50, 0.08);
}

.entry-content table,
.article table,
.article-table-scroll table,
.wp-block-table table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  font-size: 0.95em;
  line-height: 1.7;
  background: #ffffff;
}

.entry-content table th,
.entry-content table td,
.article table th,
.article table td,
.article-table-scroll th,
.article-table-scroll td,
.wp-block-table th,
.wp-block-table td {
  padding: 0.9em 1em !important;
  border: 0 !important;
  border-top: 1px solid #d8e5dd !important;
  border-right: 1px solid #d8e5dd !important;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content table tr > :last-child,
.article table tr > :last-child,
.article-table-scroll tr > :last-child,
.wp-block-table tr > :last-child {
  border-right: 0 !important;
}

.entry-content table thead th,
.article table thead th,
.article-table-scroll thead th,
.wp-block-table thead th {
  background: #0f5132 !important;
  color: #ffffff !important;
  font-weight: 700;
  text-align: left;
  border-top: 0 !important;
}

.entry-content table tbody th,
.article table tbody th,
.article-table-scroll tbody th,
.wp-block-table tbody th {
  background: #f2f8f4 !important;
  color: #173b29 !important;
  font-weight: 700;
  text-align: left;
}

.entry-content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) th,
.article table tbody tr:nth-child(even) td,
.article table tbody tr:nth-child(even) th,
.article-table-scroll tbody tr:nth-child(even) td,
.article-table-scroll tbody tr:nth-child(even) th,
.wp-block-table tbody tr:nth-child(even) td,
.wp-block-table tbody tr:nth-child(even) th {
  background: #f8fbf8 !important;
}

.entry-content table caption,
.article table caption,
.article-table-scroll caption,
.wp-block-table caption {
  caption-side: bottom;
  padding: 0.7em 0.9em;
  color: #5b665f;
  font-size: 0.92em;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 640px) {
  .entry-content .article-table-scroll,
  .article .article-table-scroll,
  .wp-block-table {
    margin-right: -0.4em;
    margin-left: -0.4em;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .entry-content table,
  .article table,
  .article-table-scroll table,
  .wp-block-table table {
    min-width: 620px;
    font-size: 0.9em;
  }

  .entry-content table th,
  .entry-content table td,
  .article table th,
  .article table td,
  .article-table-scroll th,
  .article-table-scroll td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 0.72em 0.8em !important;
  }
}
/* Codex readable article table design end */

/* Codex reader-matched Amazon ad design start */
.entry-content .codex-amazon-ad,
.article .codex-amazon-ad {
  margin: 1.8em 0;
  border: 1px solid #dde7e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(31, 41, 55, 0.08);
  overflow: hidden;
}

.entry-content .codex-amazon-ad *,
.article .codex-amazon-ad * {
  box-sizing: border-box;
}

.entry-content .codex-amazon-ad__body,
.article .codex-amazon-ad__body {
  padding: 1.05em;
}

.entry-content .codex-amazon-ad__eyebrow,
.article .codex-amazon-ad__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: auto;
  max-width: max-content;
  min-height: 1.7em;
  margin: 0 0 0.55em;
  padding: 0.16em 0.58em;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.35;
}

.entry-content .codex-amazon-ad__title,
.article .codex-amazon-ad__title {
  margin: 0 0 0.85em;
  color: #111827;
  font-size: 1.02em;
  font-weight: 700;
  line-height: 1.55;
}

.entry-content .codex-amazon-ad__text,
.article .codex-amazon-ad__text {
  margin: 0 0 0.95em;
  color: #374151;
  line-height: 1.75;
}

.entry-content .codex-amazon-ad__grid,
.article .codex-amazon-ad__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0.9em;
  align-items: stretch;
}

.entry-content .codex-amazon-ad__item,
.article .codex-amazon-ad__item {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  max-width: 100%;
  padding: 0.85em;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  background: #fafafa;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.entry-content .codex-amazon-ad__item:hover,
.article .codex-amazon-ad__item:hover,
.entry-content .codex-amazon-ad__item:focus-visible,
.article .codex-amazon-ad__item:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.entry-content .codex-amazon-ad__image,
.article .codex-amazon-ad__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.7em;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
}

.entry-content .codex-amazon-ad__image img,
.article .codex-amazon-ad__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.entry-content .codex-amazon-ad__item-title,
.article .codex-amazon-ad__item-title {
  display: -webkit-box;
  min-height: 3.3em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #111827;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.entry-content .codex-amazon-ad__item-feature,
.article .codex-amazon-ad__item-feature {
  display: -webkit-box;
  min-height: 3.2em;
  margin-top: 0.45em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #4b5563;
  font-size: 0.84em;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.entry-content .codex-amazon-ad__button,
.article .codex-amazon-ad__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7em;
  margin-top: 0.8em;
  padding: 0.48em 0.85em;
  border-radius: 6px;
  color: #ffffff !important;
  background: #2563eb;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.entry-content .codex-amazon-ad__note,
.article .codex-amazon-ad__note {
  margin: 0.85em 0 0;
  color: #6b7280;
  font-size: 0.82em;
  line-height: 1.65;
}

.entry-content .codex-amazon-ad--fallback .codex-amazon-ad__body,
.article .codex-amazon-ad--fallback .codex-amazon-ad__body {
  display: grid;
  gap: 0.35em;
}

.entry-content .codex-amazon-ad--image-fallback .codex-amazon-ad__body,
.article .codex-amazon-ad--image-fallback .codex-amazon-ad__body {
  display: block;
}

.entry-content .codex-amazon-ad--fallback .codex-amazon-ad__button,
.article .codex-amazon-ad--fallback .codex-amazon-ad__button {
  justify-self: start;
}

.entry-content .codex-amazon-ad--image-fallback .codex-amazon-ad__button,
.article .codex-amazon-ad--image-fallback .codex-amazon-ad__button {
  width: 100%;
  justify-self: stretch;
}

#sidebar .codex-amazon-ad--sidebar {
  margin: 0 0 1.2em;
  border: 1px solid #dde7e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(31, 41, 55, 0.08);
  overflow: hidden;
}

#sidebar .codex-amazon-ad--sidebar *,
.sidebar .codex-amazon-ad--sidebar * {
  box-sizing: border-box;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__body {
  padding: 0.85em;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  min-height: 1.55em;
  margin: 0 0 0.45em;
  padding: 0.12em 0.5em;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.74em;
  font-weight: 700;
  line-height: 1.3;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__title {
  margin: 0 0 0.7em;
  color: #111827;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.5;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65em;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 0.7em;
  min-width: 0;
  padding: 0.65em;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  background: #fafafa;
  text-decoration: none !important;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__image {
  display: flex;
  grid-row: 1 / 4;
  align-items: center;
  justify-content: center;
  width: 74px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__item-title {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #111827;
  font-size: 0.84em;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__item-feature {
  display: -webkit-box;
  margin-top: 0.18em;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: #4b5563;
  font-size: 0.76em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 2.15em;
  margin-top: 0.35em;
  padding: 0.36em 0.68em;
  border-radius: 6px;
  color: #ffffff !important;
  background: #2563eb;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

#sidebar .codex-amazon-ad--sidebar .codex-amazon-ad__note {
  margin: 0.7em 0 0;
  color: #6b7280;
  font-size: 0.74em;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .entry-content .codex-amazon-ad__grid,
  .article .codex-amazon-ad__grid {
    grid-template-columns: 1fr;
  }

  .entry-content .codex-amazon-ad__item,
  .article .codex-amazon-ad__item {
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 0.85em;
    padding: 0.75em;
  }

  .entry-content .codex-amazon-ad__image,
  .article .codex-amazon-ad__image {
    grid-row: 1 / 4;
    margin: 0;
    aspect-ratio: 1 / 1;
  }

  .entry-content .codex-amazon-ad__item-title,
  .article .codex-amazon-ad__item-title {
    min-height: 0;
    font-size: 0.9em;
    line-height: 1.55;
  }

  .entry-content .codex-amazon-ad__item-feature,
  .article .codex-amazon-ad__item-feature {
    min-height: 0;
    margin-top: 0.25em;
    font-size: 0.8em;
  }

  .entry-content .codex-amazon-ad__button,
  .article .codex-amazon-ad__button {
    justify-self: start;
    min-height: 2.45em;
    margin-top: 0.55em;
  }

  .entry-content .codex-amazon-ad--image-fallback .codex-amazon-ad__button,
  .article .codex-amazon-ad--image-fallback .codex-amazon-ad__button {
    width: auto;
    min-width: 9em;
    justify-self: start;
  }
}
/* Codex reader-matched Amazon ad design end */

/* Codex readable article table design start */
.entry-content .article-table-scroll,
.article .article-table-scroll,
.wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 81, 50, 0.08);
}

.entry-content table,
.article table,
.article-table-scroll table,
.wp-block-table table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  font-size: 0.95em;
  line-height: 1.7;
  background: #ffffff;
}

.entry-content table th,
.entry-content table td,
.article table th,
.article table td,
.article-table-scroll th,
.article-table-scroll td,
.wp-block-table th,
.wp-block-table td {
  padding: 0.9em 1em !important;
  border: 0 !important;
  border-top: 1px solid #d8e5dd !important;
  border-right: 1px solid #d8e5dd !important;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content table tr > :last-child,
.article table tr > :last-child,
.article-table-scroll tr > :last-child,
.wp-block-table tr > :last-child {
  border-right: 0 !important;
}

.entry-content table thead th,
.article table thead th,
.article-table-scroll thead th,
.wp-block-table thead th {
  background: #0f5132 !important;
  color: #ffffff !important;
  font-weight: 700;
  text-align: left;
  border-top: 0 !important;
}

.entry-content table tbody th,
.article table tbody th,
.article-table-scroll tbody th,
.wp-block-table tbody th {
  background: #f2f8f4 !important;
  color: #173b29 !important;
  font-weight: 700;
  text-align: left;
}

.entry-content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) th,
.article table tbody tr:nth-child(even) td,
.article table tbody tr:nth-child(even) th,
.article-table-scroll tbody tr:nth-child(even) td,
.article-table-scroll tbody tr:nth-child(even) th,
.wp-block-table tbody tr:nth-child(even) td,
.wp-block-table tbody tr:nth-child(even) th {
  background: #f8fbf8 !important;
}

.entry-content table caption,
.article table caption,
.article-table-scroll caption,
.wp-block-table caption {
  caption-side: bottom;
  padding: 0.7em 0.9em;
  color: #5b665f;
  font-size: 0.92em;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 640px) {
  .entry-content .article-table-scroll,
  .article .article-table-scroll,
  .wp-block-table {
    margin-right: -0.4em;
    margin-left: -0.4em;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .entry-content table,
  .article table,
  .article-table-scroll table,
  .wp-block-table table {
    min-width: 620px;
    font-size: 0.9em;
  }

  .entry-content table th,
  .entry-content table td,
  .article table th,
  .article table td,
  .article-table-scroll th,
  .article-table-scroll td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 0.72em 0.8em !important;
  }
}
/* Codex readable article table design end */

/* Codex article comic summary start */
.entry-content .codex-article-comic,
.article .codex-article-comic {
  margin: 1.45em 0 1.7em;
  padding: 1em;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(31, 41, 55, 0.08);
}

.entry-content .codex-article-comic *,
.article .codex-article-comic * {
  box-sizing: border-box;
}

.entry-content .codex-article-comic__caption,
.article .codex-article-comic__caption {
  margin: 0 0 0.8em;
  color: #111827;
  font-size: 1.02em;
  font-weight: 700;
  line-height: 1.55;
}

.entry-content .codex-article-comic--generated img,
.article .codex-article-comic--generated img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.entry-content .codex-article-comic__grid,
.article .codex-article-comic__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8em;
}

.entry-content .codex-article-comic__panel,
.article .codex-article-comic__panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.entry-content .codex-article-comic__scene,
.article .codex-article-comic__scene {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 132px;
  padding: 0.7em 0.65em 0;
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.55), rgba(255, 255, 255, 0.2) 58%),
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.16) 0 1px, transparent 1px 10px);
}

.entry-content .codex-article-comic__character,
.article .codex-article-comic__character {
  display: block;
  width: min(112px, 78%);
  height: auto;
}

.entry-content .codex-article-comic__bubble,
.article .codex-article-comic__bubble {
  position: relative;
  margin: 0.75em;
  padding: 0.82em 0.9em;
  border: 2px solid #111827;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.65;
  word-break: break-word;
}

.entry-content .codex-article-comic__bubble::before,
.article .codex-article-comic__bubble::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 16px;
  height: 16px;
  border-top: 2px solid #111827;
  border-left: 2px solid #111827;
  background: #ffffff;
  transform: rotate(45deg);
}

.entry-content .codex-article-comic__mouth,
.article .codex-article-comic__mouth {
  display: none;
}

.entry-content .codex-article-comic__panel--mouth-a .codex-article-comic__mouth--a,
.article .codex-article-comic__panel--mouth-a .codex-article-comic__mouth--a,
.entry-content .codex-article-comic__panel--mouth-i .codex-article-comic__mouth--i,
.article .codex-article-comic__panel--mouth-i .codex-article-comic__mouth--i,
.entry-content .codex-article-comic__panel--mouth-u .codex-article-comic__mouth--u,
.article .codex-article-comic__panel--mouth-u .codex-article-comic__mouth--u,
.entry-content .codex-article-comic__panel--mouth-e .codex-article-comic__mouth--e,
.article .codex-article-comic__panel--mouth-e .codex-article-comic__mouth--e,
.entry-content .codex-article-comic__panel--mouth-o .codex-article-comic__mouth--o,
.article .codex-article-comic__panel--mouth-o .codex-article-comic__mouth--o {
  display: block;
}

@media (max-width: 720px) {
  .entry-content .codex-article-comic,
  .article .codex-article-comic {
    padding: 0.8em;
  }

  .entry-content .codex-article-comic__grid,
  .article .codex-article-comic__grid {
    grid-template-columns: 1fr;
  }

  .entry-content .codex-article-comic__panel,
  .article .codex-article-comic__panel {
    grid-template-columns: 118px 1fr;
    grid-template-rows: auto;
    align-items: stretch;
  }

  .entry-content .codex-article-comic__scene,
  .article .codex-article-comic__scene {
    min-height: 116px;
    padding: 0.6em 0.4em 0;
  }

  .entry-content .codex-article-comic__character,
  .article .codex-article-comic__character {
    width: min(96px, 88%);
  }

  .entry-content .codex-article-comic__bubble,
  .article .codex-article-comic__bubble {
    margin: 0.65em;
    align-self: center;
    font-size: 0.9em;
  }

  .entry-content .codex-article-comic__bubble::before,
  .article .codex-article-comic__bubble::before {
    top: 50%;
    left: -10px;
    transform: translateY(-50%) rotate(-45deg);
  }
}
/* Codex article comic summary end */
