/* BloxFruits guide_unified.css
   Light normalization layer for guide and official-event pages.
   Loaded after page styles so older templates keep their content but share the same frame. */

.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(12px, 2.4vw, 24px) 44px;
  min-width: 0;
}

.site-main,
.site-main * {
  box-sizing: border-box;
}

.site-main > .container,
.site-main .guide-page,
.site-main .guide-container {
  width: 100%;
  max-width: 1180px !important;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-main > .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-main > * {
  min-width: 0;
}

.site-main .guide-subnav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-main .guide-subnav-label {
  flex: 0 0 auto;
  color: #334155;
  font-weight: 800;
}

.site-main .guide-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 999px;
  background: #f8fafc;
  color: #1e3a5f;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
}

.site-main .guide-subnav a:hover,
.site-main .guide-subnav a.active {
  background: #0f4f96;
  border-color: #0f4f96;
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 79, 150, .18);
}

.site-main .card-section,
.site-main .guide-block,
.site-main .guide-theme-entry {
  margin: 18px 0;
}

.site-main .guide-detail-card,
.site-main .guide-block-header,
.site-main .page-subtitle,
.site-main .page-header,
.site-main .seo-hero,
.site-main .hero,
.site-main .fs-hero,
.site-main .guides-hero,
.site-main .skin-fruit-card,
.site-main .guide-note-box {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

.site-main .guide-detail-card {
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: 20px;
}

.site-main .page-header,
.site-main .seo-hero,
.site-main .hero,
.site-main .fs-hero {
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  padding: clamp(18px, 2.6vw, 30px);
}

.site-main .guide-content,
.site-main .seo-section,
.site-main .ranking-section,
.site-main .value-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-main .guide-detail-card h1,
.site-main .page-title,
.site-main .seo-hero h1,
.site-main .hero h1,
.site-main .fs-hero h1,
.site-main .guides-hero h1 {
  color: #102a56;
  line-height: 1.25;
  letter-spacing: 0;
}

.site-main .fs-hero-title,
.site-main .fs-hero h1.fs-hero-title {
  margin: 0;
  color: #102a56;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.site-main .fs-hero-subtitle,
.site-main .fs-hero-desc,
.site-main .fs-hero-sub {
  margin-top: 6px;
  color: #475569;
  line-height: 1.62;
}

.site-main .guide-detail-card h2,
.site-main .guide-block-title,
.site-main .seo-section-title,
.site-main .category-title {
  color: #102a56;
  line-height: 1.32;
  letter-spacing: 0;
}

.site-main p,
.site-main li,
.site-main td,
.site-main th {
  line-height: 1.72;
}

.site-main p,
.site-main li,
.site-main td,
.site-main th,
.site-main a,
.site-main span,
.site-main strong {
  overflow-wrap: anywhere;
}

.site-main .highlight-box,
.site-main .highlight-blue,
.site-main .highlight-warning,
.site-main .skins-note,
.site-main .note,
.site-main .mini-note,
.site-main .note-box {
  border-radius: 10px;
}

.site-main .highlight-box,
.site-main .highlight-blue,
.site-main .highlight-warning,
.site-main .skins-note,
.site-main .note,
.site-main .mini-note,
.site-main .note-box,
.site-main .guide-note-box {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-main .guide-faq-list,
.site-main .guide-source-list {
  display: grid;
  gap: 12px;
}

.site-main .guide-faq-item {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 12px;
  background: #f8fafc;
}

.site-main .guide-faq-item h3 {
  margin: 0 0 6px;
  color: #102a56;
  font-size: 1.02rem;
  line-height: 1.38;
}

.site-main .guide-faq-item p {
  margin: 0;
}

.site-main .guide-source-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.site-main .guide-source-list li {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  background: rgba(248, 250, 252, .9);
}

.site-main .table-responsive {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
}

.site-main table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
}

.site-main .skill-table,
.site-main .compare-table,
.site-main .level-table,
.site-main .info-table,
.site-main .dl-table,
.site-main .table-mini,
.site-main .mini-table,
.site-main .tbl {
  width: 100% !important;
  max-width: 100% !important;
}

.site-main th {
  background: #f1f5f9;
  color: #102a56;
  font-weight: 850;
}

.site-main td,
.site-main th {
  border-color: rgba(148, 163, 184, .34);
  vertical-align: top;
}

.site-main .guide-buttons-grid,
.site-main .guide-menu-grid,
.site-main .seo-card-grid,
.site-main .seo-link-grid,
.site-main .pay-grid,
.site-main .guide-grid {
  display: grid;
  gap: 14px;
}

.site-main .guide-buttons-grid,
.site-main .guide-menu-grid,
.site-main .seo-card-grid,
.site-main .seo-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.site-main .rank-list {
  display: grid;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.site-main .guide-button,
.site-main .guide-card,
.site-main .pay-card,
.site-main .seo-card,
.site-main .seo-link-card,
.site-main .rank-row,
.site-main .card,
.site-main .fruit-rec-card,
.site-main .term-card,
.site-main .update-row,
.site-main .summary-card,
.site-main .lazypack-item,
.site-main .npc-item,
.site-main .item-row {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
  min-width: 0;
}

.site-main .guide-button,
.site-main .guide-card,
.site-main .seo-card,
.site-main .seo-link-card,
.site-main .rank-row,
.site-main .card {
  color: #102a43;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-main .guide-button:hover,
.site-main .guide-card:hover,
.site-main .seo-card:hover,
.site-main .seo-link-card:hover,
.site-main .pay-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .1);
}

.site-main .seo-card,
.site-main .seo-link-card,
.site-main .rank-row,
.site-main .card {
  background: rgba(255, 255, 255, .96);
  padding: clamp(14px, 2vw, 20px);
}

.site-main .rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-main .rank-row > * {
  min-width: 0;
}

.site-main .button-title,
.site-main .guide-title,
.site-main .seo-card-title,
.site-main .fruit-name {
  color: #102a56;
  line-height: 1.35;
}

.site-main .button-desc,
.site-main .guide-desc,
.site-main .seo-card-desc,
.site-main .fruit-sub,
.site-main .page-subtitle,
.site-main .guide-block-desc,
.site-main .section-desc,
.site-main .muted,
.site-main .hero-subtitle {
  color: #475569;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.site-main img {
  max-width: 100%;
  height: auto;
}

.site-main h1,
.site-main h2,
.site-main h3 {
  overflow-wrap: anywhere;
}

.site-main h1 > span {
  color: #64748b !important;
  font-size: .66em !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

.site-main code,
.site-main kbd,
.site-main samp {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-main .guide-flow-card,
.site-main .guide-flow-steps,
.site-main .guide-flow-step {
  max-width: 100%;
  min-width: 0;
}

.site-main .guide-flow-step .label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-main .fs-hero,
.site-main .fs-hero__content,
.site-main .hero-header,
.site-main .hero-wrap,
.site-main .item-hero {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.site-main .fs-hero-text,
.site-main .fs-hero__content,
.site-main .hero-title,
.site-main .hero-wrap,
.site-main .item-hero-text,
.site-main .summary-text-wrap,
.site-main .item-name-group,
.site-main .npc-info {
  min-width: 0;
  max-width: 100%;
}

.site-main .fs-hero-icon,
.site-main .hero-img,
.site-main .fruit-icon,
.site-main .item-icon,
.site-main .skin-icon img {
  flex: 0 0 auto;
}

.site-main .tag,
.site-main .chip,
.site-main .rarity-tag,
.site-main .badge,
.site-main .tag-v1,
.site-main .tag-v2,
.site-main .tag-type,
.site-main .tag-rare,
.site-main .tag-common,
.site-main .tag-uncommon,
.site-main .tag-legendary,
.site-main .tag-mythical,
.site-main .tag-beast {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-main .guide-detail-card > a:first-child[href*="guide_"],
.site-main a.back-link,
.site-main a[href*="guide_"][style*="display:inline-block"]:not(.guide-button):not(.guide-card),
.site-main a[href*="guide_"][style*="display: inline-block"]:not(.guide-button):not(.guide-card) {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  margin: 0 0 14px !important;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  background: #f8fafc;
  color: #1e3a5f !important;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.site-main .guide-detail-card > a:first-child[href*="guide_"]:hover,
.site-main a.back-link:hover,
.site-main a[href*="guide_"][style*="display:inline-block"]:not(.guide-button):not(.guide-card):hover,
.site-main a[href*="guide_"][style*="display: inline-block"]:not(.guide-button):not(.guide-card):hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0f4f96 !important;
}

.site-main .google-auto-placed,
.site-main ins.adsbygoogle {
  max-width: 100% !important;
  overflow: hidden;
}

/* Fruit guide and shared guide layout refinements */
.site-main .guide-detail-card h2 {
  gap: 10px;
  flex-wrap: wrap;
}

.site-main .guide-detail-card h2 .h2-emoji {
  flex: 0 0 auto;
}

.site-main .guide-button,
.site-main .fruit-rec-card,
.site-main .lazypack-item,
.site-main .fruit-type-card,
.site-main .guide-note-box {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.site-main .fruit-rec-grid,
.site-main .fruit-type-grid,
.site-main .lazypack {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-main .fruit-rec-card,
.site-main .fruit-type-card,
.site-main .lazypack-item {
  min-height: 0;
  overflow-wrap: anywhere;
}

.site-main .fruit-table {
  table-layout: fixed;
}

.site-main .fruit-table td,
.site-main .fruit-table th {
  padding: 12px 14px;
}

.site-main .fruit-row {
  min-width: 0;
}

.site-main .fruit-row > div {
  min-width: 0;
}

.site-main.guide-fruits-page {
  --fruit-blue: #0f4f96;
  --fruit-ink: #102a56;
  --fruit-soft: #f8fafc;
}

.site-main.guide-fruits-page .guide-fruits-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255, 255, 255, .96));
}

.site-main.guide-fruits-page .guide-fruits-hero > * {
  min-width: 0;
}

.site-main.guide-fruits-page .guide-fruits-eyebrow {
  margin: 0 0 8px;
  color: #0f4f96;
  font-weight: 900;
  letter-spacing: 0;
}

.site-main.guide-fruits-page .guide-fruits-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

.site-main.guide-fruits-page .guide-fruits-hero-desc {
  margin: 12px 0 0;
  color: #334155;
  font-size: 1.03rem;
}

.site-main.guide-fruits-page .guide-fruits-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-main.guide-fruits-page .guide-fruits-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(15, 79, 150, .25);
  background: #fff;
  color: #0f4f96;
  font-weight: 900;
  text-decoration: none;
}

.site-main.guide-fruits-page .guide-fruits-actions a:hover {
  background: #0f4f96;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 79, 150, .18);
}

.site-main.guide-fruits-page .guide-fruits-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.site-main.guide-fruits-page .guide-fruits-stat {
  padding: 14px 10px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  text-align: center;
}

.site-main.guide-fruits-page .guide-fruits-stat b {
  display: block;
  color: #0f4f96;
  font-size: 1.65rem;
  line-height: 1;
}

.site-main.guide-fruits-page .guide-fruits-stat span {
  display: block;
  margin-top: 6px;
  color: #475569;
  font-weight: 850;
}

.site-main.guide-fruits-page .guide-fruits-updates {
  padding-top: 22px;
}

.site-main.guide-fruits-page .guide-fruits-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.site-main.guide-fruits-page .guide-fruits-section-head h2 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  font-size: clamp(1.28rem, 2.6vw, 1.7rem);
}

.site-main.guide-fruits-page .guide-fruits-section-head p {
  margin: 0;
  color: #475569;
}

.site-main.guide-fruits-page .guide-fruits-update-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.site-main.guide-fruits-page .guide-fruits-update-card {
  display: grid;
  gap: 7px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: #f8fafc;
  color: #102a43;
  text-decoration: none;
}

.site-main.guide-fruits-page .guide-fruits-update-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 79, 150, .35);
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.site-main.guide-fruits-page .guide-fruits-update-card .update-kicker {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 79, 150, .1);
  color: #0f4f96;
  font-size: .78rem;
  font-weight: 900;
}

.site-main.guide-fruits-page .guide-fruits-update-card strong {
  color: #102a56;
  font-size: 1.02rem;
  line-height: 1.35;
}

.site-main.guide-fruits-page .guide-fruits-update-card span:last-child {
  color: #475569;
  line-height: 1.55;
}

.site-main.guide-fruits-page .guide-fruits-update-card.is-blue {
  background: #eef6ff;
}

.site-main.guide-fruits-page .guide-fruits-update-card.is-orange {
  background: #fff7ed;
}

.site-main.guide-fruits-page .guide-fruits-update-card.is-green {
  background: #f0fdf4;
}

.site-main.guide-fruits-page .fruit-picker-section .highlight-box {
  margin-top: 14px;
}

.site-main.guide-fruits-page .fruit-rec-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) !important;
}

.site-main.guide-fruits-page .fruit-rec-card {
  min-height: 112px;
}

.site-main.guide-fruits-page .lazypack {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 12px;
}

.site-main.guide-fruits-page .lazypack-item {
  text-align: left;
}

.site-main.guide-fruits-page .rarity-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
}

.site-main.guide-fruits-page .rarity-legend-item {
  align-items: flex-start;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  background: #f8fafc;
}

@media (max-width: 700px) {
  .site-main {
    padding: 16px 10px 34px;
  }

  .site-main .guide-subnav {
    margin-bottom: 14px;
    padding: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-x: visible;
    white-space: normal;
  }

  .site-main .guide-subnav-label {
    width: 100%;
  }

  .site-main .guide-subnav a {
    white-space: normal;
    max-width: 100%;
  }

  .site-main .guide-flow-steps {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-main .guide-flow-step {
    width: 100%;
    align-items: flex-start;
    border-radius: 12px;
  }

  .site-main .guide-flow-step .label {
    white-space: normal;
  }

  .site-main .guide-flow-arrow {
    display: none;
  }

  .site-main table.skill-table,
  .site-main table,
  .site-main table.compare-table,
  .site-main table.level-table,
  .site-main table.info-table,
  .site-main table.dl-table,
  .site-main table.table-mini,
  .site-main table.tbl,
  .site-main table.mini-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto;
    table-layout: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-main table.skill-table th,
  .site-main table.skill-table td,
  .site-main table.compare-table th,
  .site-main table.compare-table td,
  .site-main table.level-table th,
  .site-main table.level-table td,
  .site-main table.info-table th,
  .site-main table.info-table td,
  .site-main table.dl-table th,
  .site-main table.dl-table td,
  .site-main table.table-mini th,
  .site-main table.table-mini td,
  .site-main table.tbl th,
  .site-main table.tbl td,
  .site-main table.mini-table th,
  .site-main table.mini-table td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .site-main table.tbl,
  .site-main table.tbl tbody,
  .site-main table.tbl thead,
  .site-main table.tbl tr,
  .site-main table.tbl th,
  .site-main table.tbl td {
    display: block;
    width: 100% !important;
  }

  .site-main table.tbl tr {
    border-bottom: 1px solid rgba(148, 163, 184, .28);
  }

  .site-main table.tbl tr:last-child {
    border-bottom: 0;
  }

  .site-main table.tbl th,
  .site-main table.tbl td {
    border-bottom: 0;
  }

  .site-main .guide-detail-card,
  .site-main .guide-block-header {
    padding: 16px;
  }

  .site-main.guide-fruits-page .guide-fruits-hero {
    grid-template-columns: 1fr;
  }

  .site-main.guide-fruits-page .guide-fruits-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-main.guide-fruits-page .guide-fruits-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .site-main.guide-fruits-page .guide-fruits-hero-desc {
    font-size: .96rem;
  }

  .site-main.guide-fruits-page .guide-fruits-actions a {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-main.guide-fruits-page .fruit-table {
    min-width: 0 !important;
  }

  .site-main.guide-fruits-page .fruit-table,
  .site-main.guide-fruits-page .fruit-table thead,
  .site-main.guide-fruits-page .fruit-table tbody,
  .site-main.guide-fruits-page .fruit-table tr,
  .site-main.guide-fruits-page .fruit-table td {
    display: block;
    width: 100% !important;
  }

  .site-main.guide-fruits-page .fruit-table thead {
    display: none;
  }

  .site-main.guide-fruits-page .fruit-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }

  .site-main.guide-fruits-page .fruit-table td {
    border: 0;
    padding: 12px;
  }

  .site-main.guide-fruits-page .fruit-table td + td {
    border-top: 1px solid rgba(148, 163, 184, .22);
    color: #334155;
  }

  .site-main .guide-detail-card h1,
  .site-main .page-title,
  .site-main .guides-hero h1 {
    font-size: 1.55rem;
  }

  .site-main .guide-detail-card h2,
  .site-main .guide-block-title,
  .site-main .category-title {
    font-size: 1.25rem;
  }

  .site-main .guide-button,
  .site-main .guide-card,
  .site-main .seo-card,
  .site-main .seo-link-card,
  .site-main .rank-row,
  .site-main .card,
  .site-main .pay-card {
    padding: 14px;
  }

  .site-main .fs-hero,
  .site-main .fs-hero__content,
  .site-main .hero-header,
  .site-main .hero-wrap,
  .site-main .item-hero {
    align-items: flex-start;
  }

  .site-main .rank-row {
    align-items: flex-start;
  }

  .site-main .fs-hero-icon,
  .site-main .hero-img,
  .site-main .fruit-icon,
  .site-main .item-icon,
  .site-main .item-hero-icon {
    width: min(88px, 28vw) !important;
    height: auto !important;
  }

  .site-main .guide-detail-card > a:first-child[href*="guide_"],
  .site-main a.back-link,
  .site-main a[href*="guide_"][style*="display:inline-block"]:not(.guide-button):not(.guide-card),
  .site-main a[href*="guide_"][style*="display: inline-block"]:not(.guide-button):not(.guide-card) {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-main.guide-fruits-page .guide-fruits-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-main.guide-fruits-page .guide-fruits-actions a {
    width: 100%;
  }
}

/* Clarity pass for large guide hub pages: reduce visual noise and make long lists scannable. */
.site-main .guide-detail-card > h1 + p,
.site-main .guide-detail-card > h2 + p,
.site-main .section-desc {
  max-width: 78ch;
  color: #334155;
}

.site-main .quick-index,
.site-main .filter-controls {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: rgba(248, 250, 252, .92);
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.site-main .quick-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-main .index-pill,
.site-main .filter-btn,
.site-main .npc-quick-btn {
  min-height: 34px;
  border-radius: 999px;
  line-height: 1.25;
}

.site-main .item-table,
.site-main .sword-table,
.site-main .data-table {
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.site-main .item-table th,
.site-main .sword-table th,
.site-main .data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.site-main .item-table td,
.site-main .sword-table td,
.site-main .data-table td,
.site-main .item-table th,
.site-main .sword-table th,
.site-main .data-table th {
  padding: 11px 12px;
}

.site-main .item-table tbody tr,
.site-main .sword-table tbody tr,
.site-main .data-table tbody tr {
  transition: background-color .15s ease, box-shadow .15s ease;
}

.site-main .item-table tbody tr:hover,
.site-main .sword-table tbody tr:hover,
.site-main .data-table tbody tr:hover {
  background: #f8fbff;
}

.site-main .npc-item {
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.site-main .npc-title {
  line-height: 1.35;
}

.site-main .npc-info p {
  margin: 6px 0;
}

.site-main .npc-links {
  margin-top: 10px;
  padding-top: 10px;
}

.site-main .item-row {
  border: 0;
  box-shadow: none;
  background: transparent;
}

@media (max-width: 700px) {
  .site-main .item-table,
  .site-main .item-table thead,
  .site-main .item-table tbody,
  .site-main .item-table tr,
  .site-main .item-table td,
  .site-main .sword-table,
  .site-main .sword-table thead,
  .site-main .sword-table tbody,
  .site-main .sword-table tr,
  .site-main .sword-table td,
  .site-main .data-table,
  .site-main .data-table thead,
  .site-main .data-table tbody,
  .site-main .data-table tr,
  .site-main .data-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .site-main .item-table,
  .site-main .sword-table,
  .site-main .data-table {
    border-spacing: 0;
  }

  .site-main .item-table thead,
  .site-main .sword-table thead,
  .site-main .data-table thead {
    display: none;
  }

  .site-main .item-table tr,
  .site-main .sword-table tr,
  .site-main .data-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
  }

  .site-main .item-table td,
  .site-main .sword-table td,
  .site-main .data-table td {
    border: 0;
    padding: 12px;
  }

  .site-main .item-table td + td,
  .site-main .sword-table td + td,
  .site-main .data-table td + td {
    border-top: 1px solid rgba(148, 163, 184, .22);
  }

  .site-main .quick-index,
  .site-main .filter-controls {
    padding: 12px;
  }

  .site-main .index-pill,
  .site-main .filter-btn,
  .site-main .npc-quick-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
