/*
Theme Name: MangaReadTH
Theme URI: https://mangareadth.com/
Description: ธีมอ่านมังงะสำหรับ mangareadth.com — ทำงานคู่กับปลั๊กอิน Manga Library Connector (MLC) และ mu-plugin mglb-core
Author: MakeSite Studio
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mangareadth
*/

/* ⚠️ ไฟล์นี้ยกมาจากม็อกอัพ Design/mangareadth/assets/style.css
      แก้ที่นี่แล้วอย่าลืมว่าม็อกอัพเป็นคนละไฟล์ จะไม่ตามกันเอง */


:root {
  /* พื้นผิว — เรฟเป็นธีมสว่าง ต่างจากเว็บอื่นในฟลีตที่เป็นธีมมืด */
  --bg:        #ffffff;
  --bg2:       #f5f5f5;   /* พื้นส่วนที่ต้องการแยกจากพื้นหลัก */
  --card:      #f0f0f0;   /* เนื้อการ์ด */
  --line:      #e4e4e4;
  --line2:     #d2d2d2;

  /* ตัวอักษร */
  --text:      #1a1a1a;
  --muted:     #6b6b6b;
  --dim:       #9a9a9a;
  --on-dark:   #f2f2f2;

  /* สีแบรนด์ — แดงของเรฟ */
  --red:       #e4322b;
  --red-dark:  #c0241e;
  --red-soft:  rgba(228, 50, 43, .1);
  --ink:       #222222;   /* ปุ่มดำแบบเรฟ */
  --ink-2:     #2e2e2e;   /* พื้นท้ายเว็บ */
  --ink-3:     #1c1c1c;   /* แถบล่างสุด */

  /* ฟอนต์ */
  --sans: 'Noto Sans Thai', 'Inter', system-ui, -apple-system, sans-serif;
  --head: 'Kanit', 'Noto Sans Thai', sans-serif;

  --wrap: 1180px;
  --head-h: 64px;
  --r: 4px;        /* เรฟมุมคมมาก แทบไม่มนเลย */
}

/* ── reset ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 14px; line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.25; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ⚠️ ต้องมี height:auto คู่กับ width/height บน <img> เสมอ
      ไม่งั้น presentational hint ทับ aspect-ratio แล้วปกยืดผิดส่วน
      (เจอมาแล้วสามรอบในฟลีตนี้ — ห้ามเอาบรรทัดนี้ออก) */
img { max-width: 100%; display: block; height: auto; }

svg { width: 18px; height: 18px; flex: none; }

.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── ปุ่ม ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r); font-size: 12.5px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; transition: .18s; border: 1px solid transparent;
}
.btn-r { background: var(--red); color: #fff; }
.btn-r:hover { background: var(--red-dark); }
.btn-k { background: var(--ink); color: #fff; }
.btn-k:hover { background: #000; }
.btn-o { border-color: var(--line2); color: var(--text); background: #fff; }
.btn-o:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: 11px; }

/* ── หัวเว็บ ────────────────────────────────────────────────────────────── */

.hd {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); height: var(--head-h);
}
.hd-in { display: flex; align-items: center; gap: 26px; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head);
        font-size: 19px; font-weight: 700; letter-spacing: -.3px; flex: none; }
.logo .mark { width: 30px; height: 30px; display: grid; place-items: center;
              background: var(--red); color: #fff; border-radius: var(--r); }
.logo .mark svg { width: 17px; height: 17px; }
.logo b { color: var(--text); }
.logo i { color: var(--red); font-style: normal; }

.nav { display: flex; align-items: center; gap: 22px; margin-left: 6px; }
.nav a {
  font-size: 13px; font-weight: 500; color: #333; padding: 6px 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a.on { color: var(--red); border-bottom-color: var(--red); }

.hd-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ibtn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--r); color: #444; transition: .16s;
}
.ibtn:hover { background: var(--bg2); color: var(--red); }

.burger { display: none; }

/* ── ฮีโร่สไลด์ ─────────────────────────────────────────────────────────── */

.hero { position: relative; height: 420px; overflow: hidden; background: #111; }
.hslide { position: absolute; inset: 0; }
.hslide > img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hslide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.72));
}
.hslide .tx {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center;
  text-align: center; padding: 0 24px; color: #fff;
}
.hslide .lb {
  display: inline-block; margin: 0 auto 14px; padding: 5px 14px; border-radius: 999px;
  background: var(--red); font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
}
.hslide h3 { font-size: 36px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }
.hslide p { max-width: 620px; margin: 0 auto 20px; font-size: 13.5px; color: #dcdcdc; }
.hslide .ac { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.harrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 38px; height: 38px; display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.3); border-radius: 50%;
}
.harrow:hover { background: var(--red); }
.harrow.prev { left: 16px; } .harrow.next { right: 16px; }
.hdots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
         z-index: 4; display: flex; gap: 7px; }
.hdots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.45);
           cursor: pointer; transition: .2s; }
.hdots i.on { width: 22px; background: var(--red); }

/* ── หัวข้อกลางหน้า (ตามเรฟ: ดำ + แดง อยู่กลาง มีคำโปรยใต้) ─────────────── */

.sec { padding: 54px 0; }
.sec.alt { background: var(--bg2); }
.sec-h { text-align: center; margin-bottom: 30px; }
.sec-h h2 { font-size: 25px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.sec-h h2 em { font-style: normal; color: var(--red); }
.sec-h p { max-width: 640px; margin: 10px auto 0; font-size: 13px; color: var(--muted); }

/* ── กริด ───────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ── การ์ดเรื่อง ────────────────────────────────────────────────────────── */

.card { background: var(--card); border-radius: var(--r); overflow: hidden; transition: .2s; }
.card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-3px); }
.card .cv { position: relative; display: block; background: #ddd; }
.card .cv img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card .badge {
  position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px;
  background: var(--red); color: #fff; border-radius: var(--r);
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.card .ep {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 3px 9px;
  background: rgba(0,0,0,.72); color: #fff; border-radius: var(--r);
  font-size: 10.5px; font-weight: 600;
}
.card .in { padding: 13px 13px 15px; text-align: center; }
.card .in h3 {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .in .m { margin-top: 6px; font-size: 11.5px; color: var(--muted);
               display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.card .in .m b { color: var(--red); font-weight: 600; }
.card .in .btn { margin-top: 11px; width: 100%; }

/* ── ไทล์หมวด (บล็อกบนสุดของเรฟ) ───────────────────────────────────────── */

.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r);
        background: var(--card); }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: .3s; }
.tile:hover img { transform: scale(1.05); }
.tile .in { padding: 13px; text-align: center; }
.tile .in h3 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.tile .in p { margin-top: 5px; font-size: 11.5px; color: var(--muted); }

/* ── โมเสกหมวด (บล็อกกลางของเรฟ) ───────────────────────────────────────── */

.mosaic {
  display: grid; gap: 14px; margin-top: 8px;
  grid-template-columns: 1fr 1.9fr 1fr;
  grid-template-rows: repeat(2, 190px);
}
.mcell { position: relative; overflow: hidden; border-radius: var(--r); display: block; background: #222; }
.mcell.tall { grid-row: span 2; }
.mcell img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.mcell:hover img { transform: scale(1.06); }
.mcell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 40%, rgba(0,0,0,.76));
}
.mcell span {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; text-align: center;
  color: #fff; font-family: var(--head); font-size: 12.5px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; padding: 0 10px;
}

/* ── แท็บกรองหมวด ───────────────────────────────────────────────────────── */

.tabs { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
        margin: -8px 0 26px; }
.tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 2px;
  font-size: 12.5px; font-weight: 600; color: #555;
  border-bottom: 2px solid transparent;
}
.tabs button:hover { color: var(--red); }
.tabs button.on { color: var(--red); border-bottom-color: var(--red); }
.tabs button svg { width: 15px; height: 15px; }

/* ── บทความ ─────────────────────────────────────────────────────────────── */

.post { background: var(--card); border-radius: var(--r); overflow: hidden; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post .in { padding: 14px; text-align: center; }
.post .in h3 { font-size: 13px; font-weight: 600;
               overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .in .meta { margin-top: 7px; font-size: 11px; color: var(--muted); }
.post .in .meta b { color: var(--red); font-weight: 600; }

/* ── แถบจุดเด่น (ตามเรฟ แต่เปลี่ยนเนื้อหาเป็นของเว็บอ่าน) ────────────────── */

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 10px 0 54px; }
.feat { display: flex; align-items: center; gap: 14px; padding: 20px;
        background: var(--bg2); border-radius: var(--r); }
.feat .ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center;
            background: var(--red); color: #fff; border-radius: 50%; }
.feat .ic svg { width: 21px; height: 21px; }
.feat b { display: block; font-family: var(--head); font-size: 13px; font-weight: 700;
          text-transform: uppercase; letter-spacing: .4px; }
.feat span { font-size: 12px; color: var(--muted); }

/* ── ท้ายเว็บ ───────────────────────────────────────────────────────────── */

.ft { background: var(--ink-2); color: var(--on-dark); padding: 46px 0 0; margin-top: 10px; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 26px; }
.ft h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
         margin-bottom: 14px; }
.ft li { margin-bottom: 8px; }
.ft a { font-size: 12.5px; color: #bdbdbd; }
.ft a:hover { color: var(--red); }
.ft .soc a { display: inline-flex; align-items: center; gap: 8px; }
.ft .sub input {
  width: 100%; padding: 11px 13px; border: 1px solid #4a4a4a; background: #3a3a3a;
  color: #fff; border-radius: var(--r); font: inherit; font-size: 12.5px;
}
.ft .sub input::placeholder { color: #8d8d8d; }
.ft .sub .btn { width: 100%; margin-top: 9px; }
.ft-bot {
  margin-top: 36px; padding: 15px 0; background: var(--ink-3);
  font-size: 11.5px; color: #9a9a9a;
}
.ft-bot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px;
                flex-wrap: wrap; }

/* ── หน้ารวมเรื่อง ──────────────────────────────────────────────────────── */

.phero { background: var(--bg2); border-bottom: 1px solid var(--line); padding: 30px 0; }
.phero h1 { font-size: 27px; font-weight: 700; text-transform: uppercase; }
.phero p { margin-top: 6px; font-size: 13px; color: var(--muted); }

.crumb { font-size: 12px; color: var(--muted); padding: 14px 0; display: flex;
         align-items: center; gap: 7px; flex-wrap: wrap; }
.crumb a:hover { color: var(--red); }
.crumb svg { width: 13px; height: 13px; }
.crumb b { color: var(--text); font-weight: 600; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
           padding: 16px 0 22px; border-bottom: 1px solid var(--line); }
.chip {
  padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px;
  font-size: 12px; font-weight: 500; background: #fff; transition: .16s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.filters .sp { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ── หน้าเรื่อง ─────────────────────────────────────────────────────────── */

.shead { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px;
         padding: 22px 0 32px; }
.shead .cv img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.shead h1 { font-size: 28px; font-weight: 700; margin: 10px 0 8px; }
.shead .by { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.shead .by b { color: var(--text); font-weight: 600; }
.stats { display: flex; gap: 26px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 14px;
         border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats span { font-size: 12px; color: var(--muted); }
.stats b { display: block; font-family: var(--head); font-size: 17px; font-weight: 700;
           color: var(--text); }
.pills { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { padding: 5px 12px; background: var(--bg2); border-radius: 999px; font-size: 11.5px; }
.pill:hover { background: var(--red-soft); color: var(--red); }

.syn { background: var(--bg2); border-radius: var(--r); padding: 18px; margin-bottom: 26px; }
.syn h2 { font-size: 14px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.syn p { font-size: 13px; color: var(--muted); line-height: 1.9; }

.eplist { display: flex; flex-direction: column; gap: 7px; }
.eprow {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px;
  background: var(--bg2); border-radius: var(--r); transition: .16s;
}
.eprow:hover { background: var(--red-soft); }
.eprow .no { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--red);
             min-width: 58px; }
.eprow .nm { font-size: 13px; flex: 1; min-width: 0;
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eprow .dt { font-size: 11.5px; color: var(--dim); }

/* ── หน้าอ่าน ───────────────────────────────────────────────────────────── */

.rbar {
  position: sticky; top: var(--head-h); z-index: 40; background: #fff;
  border-bottom: 1px solid var(--line); padding: 10px 0;
}
.rbar .wrap { display: flex; align-items: center; gap: 12px; }
.rbar .nm { font-size: 13px; font-weight: 600; flex: 1; min-width: 0;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbody { max-width: 860px; margin: 0 auto; padding: 18px 0 40px; }
.rbody img { width: 100%; margin-bottom: 4px; background: var(--bg2); }
.rend { text-align: center; padding: 30px 18px; background: var(--bg2);
        border-radius: var(--r); margin-top: 18px; }
.rend h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.rend .ac { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── สถานะว่าง ──────────────────────────────────────────────────────────── */

.empty { text-align: center; padding: 56px 20px; }
.empty h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ── จอแคบ ──────────────────────────────────────────────────────────────── */

@media (max-width: 1040px) {
  .g6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .g4, .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
  .mcell.tall { grid-row: span 1; }
  .feats { grid-template-columns: 1fr; }
  .shead { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
  .hero { height: 350px; }
  .hslide h3 { font-size: 27px; }
}

@media (max-width: 560px) {
  .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .sec { padding: 38px 0; }
  .sec-h h2 { font-size: 20px; }
  .hero { height: 310px; }
  .hslide h3 { font-size: 22px; }

  /* ⚠️ ลูกศรอยู่กึ่งกลางแนวตั้ง ซึ่งบนจอแคบไปทับข้อความและปุ่มในสไลด์พอดี
        (กับดักเดิมที่เคยเจอกับ dojinjung) ย้ายลงมุมล่างซ้าย/ขวา จุดอยู่กลางไม่ชนกัน
        ⛔ ห้ามซ่อนลูกศรทิ้ง สไลเดอร์ตัวนี้ไม่มีปัดนิ้ว ซ่อนแล้วเหลือแต่จุด 8px */
  .harrow { top: auto; bottom: 12px; transform: none; width: 34px; height: 34px; }
  .harrow.prev { left: 12px; }
  .harrow.next { right: 12px; }
  .hslide p { font-size: 12.5px; }
  .shead { grid-template-columns: 1fr; }
  .shead .cv { max-width: 190px; }
  .mosaic { grid-template-rows: repeat(3, 130px); }
  .stats { gap: 18px; }
  /* ⚠️ แถบหัวเว็บแน่นมากบนจอแคบ ซ่อนไอคอนที่ไม่จำเป็นก่อน */
  .hd-r .ibtn.opt { display: none; }
}

/* ── พื้นที่แตะบนจอสัมผัส ──────────────────────────────────────────────────
   จุดสไลด์ 8px เล็กกว่าเกณฑ์นิ้วแตะมาก ขยายพื้นที่รับสัมผัสโดยไม่เปลี่ยนขนาดที่เห็น */
@media (pointer: coarse) {
  .hdots { gap: 14px; }
  .hdots i { position: relative; }
  .hdots i::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 40px; height: 40px; transform: translate(-50%, -50%);
  }
}

/* ─── พื้นที่แตะของลิงก์ท้ายเว็บบนจอสัมผัส ──────────────────────────────
   ลิงก์ในรายการท้ายเว็บสูงแค่ ~19px ตามความสูงบรรทัด ซึ่งเล็กกว่าเกณฑ์นิ้วแตะ
   (วัดจริงบนจอ 390px: ลิงก์ "ค้นหา" ได้ 28×19) ขยายเฉพาะจอสัมผัส
   ไม่แตะเดสก์ท็อป เพราะจะทำให้คอลัมน์ท้ายเว็บยืดโดยไม่จำเป็น              */
@media (pointer: coarse) {
  .ft li { margin-bottom: 2px; }
  .ft li a {
    display: inline-flex; align-items: center;
    min-height: 40px; padding-right: 8px;
  }
}

/* ─── ชิ้นส่วนที่มีเฉพาะในธีม (ม็อกอัพไม่มี) ─────────────────────────────── */

/* แบ่งหน้า */
.pager { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 30px; }
.pager .page-numbers {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: var(--r);
  border: 1px solid var(--line2); font-size: 13px; font-weight: 600; background: #fff;
}
.pager .page-numbers:hover { border-color: var(--red); color: var(--red); }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pager .dots { border: 0; }

/* บทความท้ายเว็บ (SEO) */
.ftseo { background: var(--bg2); border-top: 1px solid var(--line); padding: 40px 0; }
.ftseo h2 { font-size: 19px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; }
.ftseo h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.ftseo .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ftseo p { font-size: 13px; line-height: 1.95; color: var(--muted); margin-bottom: 12px; }
.ftseo b { color: var(--text); }
.ftseo-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.ftseo-tags a {
  padding: 5px 12px; background: #fff; border: 1px solid var(--line2);
  border-radius: 999px; font-size: 12px;
}
.ftseo-tags a:hover { border-color: var(--red); color: var(--red); }

/* เพจเอกสาร (เกี่ยวกับเรา · เงื่อนไข ฯลฯ)
   ⚠️ คุมความกว้างไว้ ~760px — `.wrap` กว้าง 1180px ซึ่งทำให้บรรทัดยาวเกินอ่านสบาย */
.pgdoc { max-width: 760px; padding: 30px 20px 50px; }
.pgdoc h1 { font-size: 28px; font-weight: 700; margin-bottom: 18px; }
.pgdoc h2 { font-size: 19px; margin: 32px 0 12px; padding-left: 12px;
            border-left: 3px solid var(--red); }
.pgdoc h3 { font-size: 16px; margin: 24px 0 9px; }
.pgdoc p { font-size: 15px; line-height: 1.95; color: #4a4a4a; margin: 0 0 14px; }
.pgdoc a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.pgdoc ul, .pgdoc ol { margin: 0 0 16px; padding-left: 22px; }
.pgdoc ul { list-style: disc; } .pgdoc ol { list-style: decimal; }
.pgdoc li { font-size: 15px; line-height: 1.9; color: #4a4a4a; margin-bottom: 9px; }
.pgdoc li::marker { color: var(--red); }
.pgdoc code {
  font-family: ui-monospace, Menlo, monospace; font-size: .88em; color: var(--red-dark);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .ftseo .cols { grid-template-columns: 1fr; gap: 18px; }
  .pgdoc h1 { font-size: 23px; }
  .pgdoc p, .pgdoc li { font-size: 14.5px; }
}
