/*
Theme Name: TipMingle
Description: Story reader theme — featured hero grid, 2-column news grid with Popular / Recently viewed sidebar, and multi-part story reader (Part table of contents, reader theme + font size, Next/Prev).
Version: 1.0
Text Domain: tipmingle
*/

:root {
  --red: #e10600;
  --red-dark: #c41e1e;
  --green: #5cb85c;
  --text: #151a2d;
  --muted: #6b7280;
  --bg: #f8f9fb;
  --card: #ffffff;
  --line: #eceef2;
  --radius: 14px;
  --max-width: 1400px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(16,24,40,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menu-toggle, .search-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
}
.site-logo {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.custom-logo { max-height: 48px; width: auto; }
.header-search-wrap { position: relative; }
.search-popover {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.25);
  padding: 8px;
  gap: 6px;
}
.search-popover.open { display: flex; }
.search-popover input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
}
.search-popover input:focus { outline: none; border-color: var(--red); }
.search-popover button {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 998;
}
.drawer-overlay[hidden] { display: none; }
.drawer-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
}
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 80%;
  max-width: 340px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
  visibility: hidden;
  z-index: 999;
  padding-top: 30px;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: translateX(0); visibility: visible; }
body.drawer-open .drawer-overlay { opacity: 1; }
.drawer-search { display: flex; margin: 0 16px 18px; }
.drawer-search input {
  flex: 1; min-width: 0;
  height: 44px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
}
.drawer-search input:focus { outline: none; border-color: var(--red); }
.drawer-search button {
  width: 46px; height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.drawer-menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.drawer-menu li { border-bottom: 1px solid var(--line); }
.drawer-menu a {
  display: block;
  padding: 0 18px;
  line-height: 56px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: #444;
}
.drawer-menu a:hover, .drawer-menu .current-menu-item > a { color: var(--red); }

/* ---------- Common ---------- */
.content-wrap { padding: 56px 0 90px; }
.home-section { margin-bottom: 44px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
}
.section-title::before {
  content: '';
  width: 8px;
  height: 28px;
  border-radius: 6px;
  background: var(--red);
  flex-shrink: 0;
}
.badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 5px;
  z-index: 2;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: start;
}
.empty-note { font-size: 17px; }
.empty-note a { color: var(--red); }

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 2.05fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 32px;
  height: 504px;
}
.hero-card { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(0,0,0,0.45); }
.hero-card.is-big { grid-row: span 2; }
.hero-card a { display: block; height: 100%; position: relative; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-card:hover img { transform: scale(1.03); }
.hero-card a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85));
}
.hero-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  color: #fff;
  z-index: 2;
}
.hero-card.is-big .hero-body { padding: 40px; }
.hero-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.hero-card.is-big .hero-title { font-size: 38px; line-height: 1.3; }
.hero-meta { display: block; margin-top: 18px; font-size: 14px; opacity: 0.85; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 24px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 26px 26px; }
.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3/2;
  border-radius: var(--radius);
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card-thumb img { transform: scale(1.04); }
.card-title {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.card-grid-3 .card-title { font-size: 18px; margin-top: 12px; }
.card-title a:hover { color: var(--red); }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.card-grid-3 .card-meta { font-size: 12.5px; margin-top: 6px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.more-wrap { text-align: center; margin-top: 44px; }
.btn-more {
  display: inline-block;
  background: var(--red-dark);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 14px 34px;
  border-radius: 12px;
  box-shadow: 0 8px 18px -8px rgba(196,30,30,0.6);
}
.btn-more:hover { background: #a91818; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border-radius: 10px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.page-numbers.current { background: var(--red); color: #fff; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.widget {
  background: var(--card);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.03);
}
.layout > section ~ .sidebar, .layout > .article ~ .sidebar { margin-top: 48px; }
.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.widget-title { margin: 0; font-size: 21px; font-weight: 500; }
.widget-more { color: #2563eb; font-size: 18px; }
.popular-list, .recent-list { list-style: none; margin: 0; padding: 0; }
.popular-list li {
  display: grid;
  grid-template-columns: 22px 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}
.popular-num { color: var(--muted); font-size: 17px; text-align: center; }
.popular-thumb { display: block; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; }
.popular-thumb img, .recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-title, .recent-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
}
.popular-title:hover, .recent-title:hover { color: var(--red); }
.popular-views, .recent-time { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.recent-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.recent-list li:last-child { border-bottom: none; }
.recent-thumb { display: block; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--line); }

/* Table of contents */
.widget.toc { padding: 0; overflow: hidden; }
.toc-head { padding: 22px 26px 14px; border-bottom: 1px solid #222; }
.toc-post {
  font-weight: 500;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-label {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.toc-list { list-style: none; margin: 0; padding: 0 0 10px; max-height: 560px; overflow-y: auto; }
.toc-list li { border-bottom: 1px solid var(--line); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  font-size: 16px;
  color: #444;
}
.toc-list a:hover { background: #f5f8ff; }
.toc-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #eef3ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.toc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-list .is-current a { background: #f5f8ff; color: #2563eb; font-weight: 600; }
.toc-list .is-current .toc-num { background: #2563eb; color: #fff; }

/* ---------- Single ---------- */
.article-cat {
  display: inline-block;
  padding: 4px 0 4px 14px;
  border-left: 5px solid var(--red);
  color: var(--red);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.article-thumb { margin-top: 10px; border-radius: 6px; overflow: hidden; }
.article-thumb img { width: 100%; height: auto; }
.article-title { margin: 22px 0 0; font-size: 42px; line-height: 1.25; font-weight: 600; }
.part-title { margin: 22px 0 0; font-size: 30px; font-weight: 600; }
.reader-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
  padding: 14px 18px;
  background: #f1f2f4;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.reader-group { display: flex; align-items: center; gap: 12px; }
.reader-label { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #555; }
.reader-themes, .reader-size {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.reader-themes button {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-weight: 600;
  cursor: pointer;
}
.reader-themes [data-theme="light"] { background: #fff; color: #111; }
.reader-themes [data-theme="sepia"] { background: #fbe7b4; color: #5b4636; border-color: #efce7b; }
.reader-themes [data-theme="dark"] { background: #1f2a3c; color: #fff; border-color: #1f2a3c; }
.reader-themes button.is-active { box-shadow: 0 0 0 2px var(--red); }
.reader-size button {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
}
.reader-size button:hover { background: #f3f4f6; }
.reader-size span { font-weight: 600; min-width: 46px; text-align: center; }

.reader-card {
  --reader-size: 20px;
  background: var(--card);
  border-radius: 18px;
  padding: 36px 32px;
  transition: background .2s ease, color .2s ease;
}
.post-content { font-size: var(--reader-size, 18px); line-height: 1.95; color: #1f2937; overflow-wrap: anywhere; }
.post-content p { margin: 0 0 0.35em; }
.post-content img { height: auto; border-radius: 10px; margin: 16px 0; }
.post-content a { color: #2563eb; text-decoration: underline; }
.post-content hr { border: none; border-top: 1px solid var(--line); margin: 1.2em 0; }
.post-content h2, .post-content h3, .post-content h4 { line-height: 1.3; margin: 1.4em 0 .5em; }
body.reader-sepia .reader-card { background: #f8eed7; }
body.reader-sepia .post-content { color: #4a3b2a; }
body.reader-dark .reader-card { background: #1b2433; }
body.reader-dark .post-content { color: #e5e7eb; }
body.reader-dark .post-content a { color: #93c5fd; }

.part-nav { display: flex; justify-content: center; gap: 14px; margin: 38px 0 28px; }
.btn-next, .btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 44px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-next { background: var(--green); color: #fff; box-shadow: 0 8px 18px -10px rgba(92,184,92,0.9); }
.btn-next:hover { background: #4cae4c; }
.btn-prev { background: #fff; color: #444; border: 1px solid #ddd; padding: 14px 30px; }
.btn-prev:hover { border-color: #bbb; }

.share-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.share-row a, .share-row button {
  height: 46px;
  border-radius: 6px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: filter .2s ease;
}
.share-row a:hover, .share-row button:hover { filter: brightness(1.1); }
.share-facebook { background: #1877f2; }
.share-x { background: #000; }
.share-whatsapp { background: #0fbe3c; }
.share-pinterest { background: #d0021b; }
.share-telegram { background: #2aa3df; }
.share-email, .share-copy { background: #d1d5db; }
.share-copy.copied { background: var(--green); }
.related { margin-top: 70px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 34px 0 30px;
  text-align: center;
}
.footer-logo { font-size: 26px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 14px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.footer-nav a { color: #374151; }
.footer-nav a:hover { color: var(--red); }
.footer-disclaimer { max-width: 900px; margin: 0 auto 10px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.footer-copyright { font-size: 13px; color: #9ca3af; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .hero-card.is-big .hero-title { font-size: 30px; }
  .card-title { font-size: 19px; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > section ~ .sidebar, .layout > .article ~ .sidebar { margin-top: 10px; }
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; gap: 16px; }
  .hero-card.is-big { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .hero-card:not(.is-big) { aspect-ratio: 4/3; }
  .article-title { font-size: 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { height: 60px; }
  .site-logo { font-size: 26px; }
  .search-popover { width: calc(100vw - 32px); right: -8px; }
  .content-wrap { padding: 26px 0 56px; }
  .section-title { font-size: 21px; }
  .section-title::before { height: 22px; width: 7px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card.is-big { grid-column: auto; }
  .hero-card.is-big .hero-body { padding: 20px; }
  .hero-card.is-big .hero-title { font-size: 22px; }
  .hero-card:not(.is-big) { aspect-ratio: 16/9; }
  .card-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .card-title { font-size: 18px; }
  .article-title { font-size: 26px; }
  .part-title { font-size: 22px; }
  .reader-bar { padding: 12px; }
  .reader-label { font-size: 12px; }
  .reader-card { padding: 22px 18px; }
  .btn-next { padding: 13px 34px; font-size: 17px; }
  .share-row { gap: 6px; }
  .share-row a, .share-row button { height: 42px; }
  .share-row svg { width: 18px; height: 18px; }
  .widget { padding: 20px; }
}

/* ---------- Mobile parts sheet ---------- */
.parts-fab, .parts-sheet, .parts-sheet-overlay { display: none; }

@media (max-width: 960px) {
  .parts-fab {
    position: fixed;
    right: 16px;
    top: 50%;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: #1d5cf5;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 24px -8px rgba(29,92,245,0.65);
    cursor: pointer;
  }
  .parts-fab:active { transform: scale(0.97); }

  .parts-sheet-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 996;
    background: rgba(17,24,39,0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
  }
  .parts-sheet-overlay[hidden] { display: none; }

  .parts-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 997;
    max-height: 82vh;
    background: #fff;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  body.parts-sheet-open { overflow: hidden; }
  body.parts-sheet-open .parts-sheet { transform: translateY(0); visibility: visible; }
  body.parts-sheet-open .parts-sheet-overlay { opacity: 1; }

  .sheet-handle { width: 48px; height: 6px; margin: 12px auto 4px; border-radius: 99px; background: #d1d5db; }
  .sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px 14px; }
  .sheet-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: #eef3ff;
    color: #1d5cf5;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .sheet-meta { flex: 1; min-width: 0; }
  .sheet-title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet-count { margin-top: 2px; font-size: 14px; color: var(--muted); }
  .sheet-close {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f2f4;
    color: #4b5563;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .sheet-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px 12px;
    padding: 0 14px;
    height: 48px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
  }
  .sheet-search input {
    flex: 1; min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--text);
  }
  .sheet-search input:focus { outline: none; }
  .sheet-list {
    list-style: none;
    margin: 0;
    padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line);
  }
  .sheet-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    color: #374151;
  }
  .sheet-list .toc-num { width: 34px; height: 34px; font-size: 14px; }
  .sheet-list .is-current a { background: #eff5ff; color: #1d5cf5; }
  .sheet-list .is-current .toc-num { background: #1d5cf5; color: #fff; }
  .sheet-empty { margin: 0; padding: 20px; text-align: center; color: var(--muted); }
}

/* Mau5: focused chapter reader */
.mau5-site{--green:#158b59;--orange:#ee780c;--text:#333941;--muted:#7d858d;--bg:#e4e4e4;--max-width:1200px;background:#e4e4e4;color:#30363d;font-family:Arial,Helvetica,sans-serif}
.mau5-site .m5-header{height:58px;background:#fff;border-bottom:1px solid #e6e6e6}.m5-header-inner{max-width:1020px;height:100%;margin:auto;padding:0 25px;display:flex;align-items:center;justify-content:space-between}.m5-home{font-size:16px;font-weight:700;color:#303438}.m5-header form{display:flex;height:35px}.m5-header input{width:210px;border:1px solid #e1e3e5;border-radius:5px 0 0 5px;padding:0 12px;font-size:12px;outline:0}.m5-header button{width:36px;background:#ed780c;border:0;border-radius:0 5px 5px 0;color:#fff;font-size:23px;cursor:pointer}
.mau5-site .m5-page{padding:30px 18px 0}.m5-paper{max-width:1020px;margin:0 auto;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.075);border-radius:5px;padding-bottom:48px}.m5-breadcrumb{height:42px;display:flex;align-items:center;gap:8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 40px;border-bottom:1px solid #e9e9e9;background:#fafafa;color:#7d838a;font-size:11px;font-weight:600}.m5-breadcrumb span:not(:last-child){flex-shrink:0}.m5-breadcrumb strong{color:#e86d06;font-weight:700}.m5-breadcrumb>a{color:#737b82;flex-shrink:0}.m5-breadcrumb span:nth-child(3){overflow:hidden;text-overflow:ellipsis}
.mau5-site.single .m5-paper>.layout{display:block;max-width:660px;margin:0 auto;padding:46px 0 0}.mau5-site.single .m5-paper .article{min-width:0;background:transparent}.m5-story-head{text-align:center}.mau5-site.single .article-title{color:#168e59;font-size:clamp(28px,3vw,38px);font-weight:800;line-height:1.22;letter-spacing:-.4px;margin:0 0 14px;text-align:center}.mau5-site.single .part-title{font-size:20px;color:#343b41;margin:0;font-weight:700;line-height:1.4}.m5-title-rule{width:44px;height:2px;background:#ef7910;margin:22px auto 20px}
.mau5-site.single .m5-part-nav{display:flex;align-items:center;justify-content:center;gap:6px;margin:18px auto 28px;padding:5px;background:#f5f7f6;border:1px solid #e2eee8;border-radius:13px;width:max-content;max-width:100%;box-shadow:0 5px 15px rgba(30,125,76,.08)}.m5-part-nav a,.m5-part-nav button,.m5-part-nav span{height:40px;min-width:130px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:7px;font-size:13px;font-weight:700;line-height:1;text-decoration:none}.m5-part-nav .m5-prev{background:#edf0ee;color:#68716d}.m5-part-nav .m5-next{background:#158b59;color:#fff}.m5-part-nav .m5-list-button{min-width:40px;width:40px;background:#fff;color:#158b59;border:1px solid #e1e9e4;font-size:19px;cursor:pointer}.m5-part-nav .is-disabled{opacity:.45;cursor:default}.m5-part-nav a:hover{filter:brightness(.95)}
.mau5-site.single .reader-card{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}.mau5-site.single .post-content{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.8;color:#333b42;overflow-wrap:anywhere}.mau5-site.single .post-content p{margin:0 0 1.45em}.mau5-site.single .post-content img{height:auto;max-width:100%}.mau5-site.single .post-content>figure,.mau5-site.single .post-content>p:has(img){margin:20px auto;text-align:center}.mau5-site.single .post-content h2,.mau5-site.single .post-content h3{font-weight:700;color:#30383c}.mau5-site.single .m5-bottom-nav{margin:40px auto 20px}.m5-comments,.m5-related{max-width:660px;margin:35px auto 0;border-top:1px solid #e5e7e8;padding-top:22px}.m5-comments h2,.m5-related h2{font-size:18px;font-weight:700;margin:0 0 15px;color:#343b40}.m5-comments p{font-size:13px;color:#747c82}.m5-comments .comment-list{padding-left:20px}.m5-comments textarea{width:100%;min-height:95px;border:1px solid #dedfe1;padding:12px;border-radius:5px}.m5-comments input[type=submit]{border:0;background:#ed780c;color:#fff;border-radius:4px;padding:10px 15px;cursor:pointer}.m5-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.m5-related-card{min-width:0;display:flex;align-items:center;gap:10px;border:1px solid #e7e8e8;border-radius:8px;overflow:hidden;color:#394148;font-size:13px;font-weight:700;line-height:1.4}.m5-related-card:hover{border-color:#158b59;color:#158b59}.m5-related-card img{width:85px;height:62px;object-fit:cover;flex:0 0 85px}.m5-related-card span{padding:6px 9px 6px 0}
.m5-footer{max-width:1020px;margin:0 auto;text-align:center;padding:30px 12px;color:#777;font-size:11px}.m5-footer a{color:#168b59}.m5-footer nav{display:flex;justify-content:center;gap:16px;margin-top:8px}.mau5-site.single .parts-sheet{z-index:100}
@media(max-width:760px){.mau5-site .m5-page{padding:14px 10px 0}.m5-breadcrumb{padding:0 17px}.mau5-site.single .m5-paper>.layout{padding:32px 18px 0}.m5-comments,.m5-related{margin-left:18px;margin-right:18px}.mau5-site.single .article-title{font-size:29px}.mau5-site.single .post-content{font-size:16px}.m5-related-grid{grid-template-columns:1fr}.m5-header-inner{padding:0 15px}.m5-header input{width:145px}}
@media(max-width:430px){.m5-part-nav a,.m5-part-nav span{min-width:105px}.m5-part-nav .m5-list-button{min-width:38px;width:38px}.m5-header input{width:125px}}
/* Guest comments */
.mau5-site .m5-comments{margin-top:42px;padding-top:28px;border-top:1px solid #d9dcdf}.m5-comments h2{font-size:23px;line-height:1.3;margin:0;padding:0 0 22px;border-bottom:1px solid #dfe3e8;color:#292e34}.m5-comments .m5-no-comments{font-size:16px;color:#30353a;margin:0;padding:18px 0 23px;border-bottom:1px solid #dfe3e8}.m5-guest-row{display:flex;align-items:center;gap:6px;margin:19px 0 12px;font-size:15px;color:#758094}.m5-guest-row strong{color:#697387}.m5-guest-row button{border:0;background:transparent;padding:0;color:#1758d7;text-decoration:underline;font:inherit;cursor:pointer}.m5-comments #respond{margin:0}.m5-comments #reply-title,.m5-comments .comment-notes,.m5-comments .required-field-message{display:none}.m5-comments .comment-form-comment{margin:0 0 9px}.m5-comments #comment{width:100%;height:120px;min-height:120px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:14px 16px;font:16px/1.5 monospace;color:#2f363d;resize:vertical;outline:0}.m5-comments #comment:focus{border-color:#168b59;box-shadow:0 0 0 2px rgba(22,139,89,.1)}.m5-comments .form-submit{margin:0}.m5-comments input[type=submit]{background:#ec770a;border:0;border-radius:7px;color:#fff;font-size:15px;font-weight:700;padding:12px 17px;cursor:pointer}.m5-comments input[type=submit]:hover{background:#d86a04}.m5-comments .m5-comment-list{list-style:none;padding:10px 0;margin:0;border-bottom:1px solid #dfe3e8}.m5-comments .m5-comment-list>li{list-style:none;border-bottom:1px solid #eef0f2;padding:12px 0}.m5-comments .m5-comment-list>li:last-child{border-bottom:0}.m5-comments .comment-author{font-size:14px}.m5-comments .comment-meta{font-size:12px;color:#8290a0}.m5-comments .comment-content{font-size:15px;line-height:1.6}.m5-comments .comment-reply-link{color:#158b59;font-size:12px}.m5-comments .comment-awaiting-moderation{font-size:12px;color:#a26715}
.mau5-comments .comment-form-cookies-consent{display:none}
