/* Reweb theme - base.css
 * Tokens + he style noi dung Sketchnote (.reweb-prose) + component co ban.
 * Style theo THE: bai viet chi can them class .reweb-prose la tu dep.
 */

@font-face{
  font-family:"SVN Nexa Rust Script";
  src:url("../fonts/SVN-Nexa-Rust-Script.ttf") format("truetype");
  font-weight:400;font-style:normal;font-display:swap;
}

:root{
  --paper:#FCFBF8; --ink:#2E2A26; --brass:#C8A24B; --brass-dk:#A8842F; --brass-soft:#E7CF93;
  --steel:#5B6470; --steel-dk:#34404C; --teal:#3E8E82; --line:#E3DACB;
  --teal-bg:#E7F1EE; --brass-bg:#FBF1D9; --note-bg:#EEF0F2;
  --accent:"SVN Nexa Rust Script",cursive;
  --head:"Shantell Sans","Comic Sans MS",cursive;
  --body:"Josefin Sans",system-ui,sans-serif;
  --ui:"Be Vietnam Pro",system-ui,sans-serif;
  --mono:"JetBrains Mono",monospace;
  --head-shadow:1.5px 1.5px 0 var(--brass-soft);
  --radius:14px;
}

/* ===== Nut (core button block) kieu khoi noi ===== */
.wp-element-button,.wp-block-button__link{
  font-family:var(--head);font-weight:600;border:2.5px solid var(--ink);
  box-shadow:3px 3px 0 var(--ink);transition:transform .08s,box-shadow .08s;
}
.wp-element-button:hover,.wp-block-button__link:hover{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.is-style-outline .wp-block-button__link{background:#fff;box-shadow:3px 3px 0 var(--steel)}
.is-style-outline .wp-block-button__link:hover{box-shadow:1px 1px 0 var(--steel)}

/* ===== Diem nhan Nexa (dung qua class) ===== */
.reweb-accent{font-family:var(--accent);font-weight:400;line-height:1.1}

/* =========================================================
   HE STYLE NOI DUNG: .reweb-prose
   ========================================================= */
.reweb-prose{font-family:var(--body);color:var(--ink);font-size:17px;line-height:1.8}
.reweb-prose > *{margin-block:0 22px}
.reweb-prose > *:last-child{margin-bottom:0}

/* tieu de + sketchnote shadow + gach chan doodle */
.reweb-prose h1,.reweb-prose h2,.reweb-prose h3,.reweb-prose h4{font-family:var(--head)}
.reweb-prose h1{font-weight:700;font-size:clamp(30px,5vw,42px);line-height:1.15;text-shadow:var(--head-shadow);margin-bottom:18px}
.reweb-prose h2{font-weight:700;font-size:clamp(26px,4vw,30px);line-height:1.2;text-shadow:var(--head-shadow);
  margin:40px 0 16px;position:relative;padding-bottom:8px}
.reweb-prose h2::after{content:"";position:absolute;left:0;bottom:0;width:64px;height:4px;background:var(--brass);border-radius:4px}
.reweb-prose h3{font-weight:600;font-size:clamp(20px,3vw,22px);line-height:1.25;text-shadow:1px 1px 0 var(--brass-soft);margin:30px 0 12px}
.reweb-prose .reweb-lead{font-family:var(--body);font-weight:500;font-size:19px;line-height:1.65;color:#3a342c}

/* link, nhan manh, highlight */
.reweb-prose a{color:var(--brass-dk);text-decoration:underline;text-decoration-thickness:2px;
  text-underline-offset:3px;text-decoration-color:var(--brass-soft)}
.reweb-prose a:hover{text-decoration-color:var(--brass-dk)}
.reweb-prose strong{font-weight:700}
.reweb-prose mark{background:linear-gradient(transparent 55%,var(--brass-soft) 55%);padding:0 2px;color:inherit}

/* danh sach gach dau dong */
.reweb-prose ul{list-style:none;padding-left:4px}
.reweb-prose ul li{position:relative;padding-left:30px;margin:0 0 10px}
.reweb-prose ul li::before{content:"\279C";position:absolute;left:0;top:0;color:var(--brass-dk);font-weight:700}
.reweb-prose ul.is-style-check li::before{content:"\2713";color:var(--teal);font-weight:800}
/* danh sach so: huy hieu tron */
.reweb-prose ol{list-style:none;counter-reset:n;padding-left:4px}
.reweb-prose ol li{position:relative;padding-left:42px;margin:0 0 12px;min-height:30px}
.reweb-prose ol li::before{counter-increment:n;content:counter(n);position:absolute;left:0;top:-2px;
  width:28px;height:28px;background:var(--brass);color:var(--ink);font-family:var(--ui);font-weight:700;font-size:14px;
  border:2px solid var(--ink);border-radius:50%;display:grid;place-items:center}

/* blockquote: font body + dau nhay Nexa */
.reweb-prose blockquote{border-left:5px solid var(--brass);background:#fff;border-radius:0 12px 12px 0;
  padding:14px 20px 14px 56px;position:relative;font-family:var(--body);font-weight:500;font-size:18px;color:#3a342c}
.reweb-prose blockquote::before{content:"\201C";font-family:var(--accent);font-size:60px;color:var(--brass);
  position:absolute;left:14px;top:6px;line-height:1}
.reweb-prose blockquote cite{display:block;margin-top:6px;font-family:var(--ui);font-style:normal;font-weight:600;font-size:13px;color:var(--steel)}

/* code */
.reweb-prose code{font-family:var(--mono);font-size:.88em;background:#fff;border:1px solid var(--line);border-radius:6px;padding:1px 6px;color:var(--brass-dk)}
.reweb-prose pre{background:var(--steel-dk);color:#f3efe6;border-radius:12px;padding:16px 18px;overflow:auto;font-family:var(--mono);font-size:14px;line-height:1.6}
.reweb-prose pre code{background:none;border:none;color:inherit;padding:0}

/* bang */
.reweb-prose table{width:100%;border-collapse:collapse;font-family:var(--ui);font-size:15px;border:2px solid var(--ink);border-radius:12px;overflow:hidden}
.reweb-prose th,.reweb-prose td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--line)}
.reweb-prose thead th{background:var(--steel-dk);color:#fff;font-family:var(--head);font-weight:600}
.reweb-prose tbody tr:nth-child(even){background:#fff}

/* figure + caption */
.reweb-prose figure img{border:2px solid var(--ink);border-radius:12px;display:block}
.reweb-prose figcaption{font-family:var(--ui);font-size:13px;color:var(--steel);text-align:center;margin-top:8px}

/* divider ve tay */
.reweb-prose hr{border:none;height:14px;margin:34px auto;width:160px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='14'%3E%3Cpath d='M2 9 Q15 2 28 8 T54 8 T80 8 T106 8 T132 8 T158 8' fill='none' stroke='%23C8A24B' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center}

/* =========================================================
   CALLOUT (block group co class) - dung trong & ngoai prose
   ========================================================= */
.reweb-callout{border:2px solid var(--ink);border-radius:var(--radius);padding:16px 18px;font-family:var(--body);font-size:16px;line-height:1.7}
.reweb-callout > strong:first-child,.reweb-callout b{font-family:var(--head);font-weight:700;display:block;margin-bottom:2px;font-size:16px}
.reweb-callout.is-tip{background:var(--teal-bg);border-color:var(--teal)}
.reweb-callout.is-warn{background:var(--brass-bg)}
.reweb-callout.is-note{background:var(--note-bg);border-color:var(--steel)}

/* =========================================================
   HEADER (dinh tren + duong doi sketchnote + nut Zalo)
   ========================================================= */
.reweb-header{position:sticky;top:0;z-index:100;
  border-bottom:2.5px solid var(--ink);
  box-shadow:0 6px 0 -2px var(--brass);                 /* duong vang dong RO (net ve tay doi) */
  transition:box-shadow .2s}
.reweb-header.is-scrolled{box-shadow:0 6px 0 -2px var(--brass),0 11px 16px -10px rgba(46,42,38,.22)}
.reweb-header .wp-block-site-title a{font-family:var(--accent);font-weight:400;color:var(--ink);text-decoration:none;font-size:46px;line-height:1}
.reweb-header .wp-block-navigation{font-family:var(--ui);font-weight:600;font-size:15.5px;line-height:1.4}
.reweb-header .wp-block-navigation__container{gap:32px}
.reweb-header .wp-block-navigation a,
.reweb-header .wp-block-navigation .wp-block-navigation-item__content{color:var(--ink);text-decoration:none}
/* hover / trang hien tai: net co dry-brush ve tay (V3) de chan chu */
.reweb-header .wp-block-navigation a:hover,
.reweb-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.reweb-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23E7CF93' stroke-linecap='round'%3E%3Cpath d='M8,11 C70,8 150,11 232,9' stroke-width='8.5' stroke-opacity='0.95'/%3E%3Cpath d='M14,7 C80,6 140,7 214,6' stroke-width='2.2' stroke-opacity='0.45'/%3E%3Cpath d='M18,16 C95,16 170,16 230,15' stroke-width='2.4' stroke-opacity='0.55'/%3E%3Cpath d='M3,11 C14,11 26,10 44,11' stroke-width='2.2' stroke-opacity='0.5'/%3E%3Cpath d='M206,10 C223,10 233,9 238,8' stroke-width='2.4' stroke-opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat:no-repeat;background-size:100% 0.85em;background-position:0 72%}
/* nut Zalo - khoi noi (bong do cung) nhung nen sang */
.reweb-zalo .wp-block-button__link{padding:8px 16px;font-size:13.5px;line-height:1.1;
  background:#fff;color:var(--ink);border:2px solid var(--ink);border-radius:12px;
  box-shadow:3px 3px 0 var(--ink);display:inline-flex;align-items:center;gap:7px;
  transition:transform .08s,box-shadow .08s}
.reweb-zalo .wp-block-button__link:hover{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.reweb-zalo .wp-block-button__link::before{content:"";width:15px;height:15px;flex:0 0 auto;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2A26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-8.5 8.5 8.6 8.6 0 0 1-4-1L3 20l1-5.5a8.4 8.4 0 0 1-1-4A8.4 8.4 0 0 1 11.5 2 8.4 8.4 0 0 1 21 11.5z'/%3E%3C/svg%3E") no-repeat center/contain}

.reweb-zalo-float{position:fixed;right:16px;bottom:16px;z-index:200;display:none;
  width:54px;height:54px;border-radius:50%;background:var(--brass);border:2.5px solid var(--ink);
  box-shadow:3px 3px 0 var(--ink);align-items:center;justify-content:center;color:var(--ink)}
.reweb-zalo-float:hover{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
@media(max-width:781px){.reweb-zalo-float{display:flex}}

/* =========================================================
   FOOTER
   ========================================================= */
.reweb-footer{position:relative;border-top:2px solid var(--ink);
  box-shadow:0 -5px 0 -2px var(--brass)}                /* duong vang dong o mep tren */
.reweb-footer .wp-block-site-title a{font-family:var(--accent);font-weight:400;color:#fff;font-size:34px;line-height:1;text-decoration:none}
.reweb-footer a{color:var(--brass-soft);text-decoration:none;transition:color .12s}
.reweb-footer a:hover{color:#fff}
.reweb-footer h3{color:#fff;text-shadow:none;margin-bottom:14px;position:relative;padding-bottom:8px}
.reweb-footer h3::after{content:"";position:absolute;left:0;bottom:0;width:36px;height:3px;background:var(--brass);border-radius:3px}
.reweb-footer-links{list-style:none;padding:0;margin:0}
.reweb-footer-links li{margin:0 0 9px}
.reweb-footer-links li::before{content:none}
.reweb-footer-links a{position:relative;padding-left:16px;display:inline-block}
.reweb-footer-links a::before{content:"\203A";position:absolute;left:0;color:var(--brass);font-weight:700}
