/*
Theme Name: Bánh Mì Hà Nội
Theme URI: https://banhmihanoi.net
Author: Umix
Author URI: https://umix.vn
Description: Theme thương hiệu + tin tức cho Bánh Mì Hà Nội. Nhẹ, chuẩn SEO, tối ưu vị trí quảng cáo AdSense. Mọi thông tin chỉnh trong Giao diện → Tùy biến → Bánh Mì Hà Nội.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bmh
*/

/* ============================================================ tokens */
:root {
	--red: #c8102e;
	--red-600: #a50d26;
	--red-50: #fdecee;
	--crust: #e9a23b;
	--crust-100: #fbecd3;
	--cream: #fff8ef;
	--cream-2: #fbf1e3;
	--ink: #2b1d16;
	--ink-2: #5b4a40;
	--muted: #8a7a6f;
	--line: #eadfd2;
	--white: #fff;
	--dark: #1d1310;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(43, 29, 22, .06), 0 6px 20px rgba(43, 29, 22, .06);
	--shadow-lg: 0 12px 40px rgba(43, 29, 22, .14);
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1200px;
	--header-h: 76px;
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--crust); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.icon { flex: 0 0 auto; width: 1.15em; height: 1.15em; }

/* ============================================================ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.35em; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; border: 2px solid transparent; transition: transform .15s ease, background .2s, color .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .28); }
.btn--primary:hover { background: var(--red-600); color: #fff; }
.btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--cream); color: var(--red-600); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: .6em 1.05em; font-size: 14px; }
.btn--lg { padding: .95em 1.6em; font-size: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: var(--cream-2); }

.eyebrow { display: inline-flex; align-items: center; gap: .5em; margin: 0 0 .6em; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--crust); }
.chip { display: inline-block; padding: .28em .8em; border-radius: 999px; background: var(--red-50); color: var(--red); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.chip:hover { background: var(--red); color: #fff; }
.lead { font-size: 17px; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; margin: 0; font-size: 13px; color: var(--muted); }
.meta .icon { width: 14px; height: 14px; }
.meta--lg { font-size: 14px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 .3em; }

/* ============================================================ topbar + header */
.topbar { background: var(--dark); color: #e9dfd6; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__info, .topbar__right { display: flex; align-items: center; gap: 20px; min-width: 0; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; color: var(--crust); }
.topbar__hot { font-weight: 700; color: #fff !important; }
@media (max-width: 767px) { .topbar__info { display: none; } .topbar__right { width: 100%; justify-content: space-between; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(43, 29, 22, .08); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: 0 0 auto; }
.brand img, .custom-logo { height: 58px; width: auto; }
.brand__text { font-weight: 800; font-size: 20px; color: var(--red); }
.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.main-nav .menu { list-style: none; margin: 0; padding: 0; }
.main-nav__head, .main-nav__cta { display: none; }
@media (min-width: 1024px) {
	.main-nav { margin-left: auto; }
	.main-nav .menu { display: flex; align-items: center; gap: 2px; }
	.main-nav .menu > li { position: relative; }
	.main-nav .menu > li > a { display: block; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); transition: background .2s, color .2s; }
	.main-nav .menu > li > a:hover, .main-nav .menu > .current-menu-item > a, .main-nav .menu > .current-menu-ancestor > a, .main-nav .menu > .current-post-ancestor > a { background: var(--red-50); color: var(--red); }
	.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.main-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); }
	.main-nav .sub-menu a:hover { background: var(--cream); }
	.sub-toggle, .nav-toggle { display: none; }
	.header__actions { margin-left: 8px; }
}
@media (max-width: 1023px) {
	.header__in { height: 64px; }
	.brand img, .custom-logo { height: 48px; }
	.main-nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 300; background: #fff; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; padding: 16px; overflow-y: auto; box-shadow: var(--shadow-lg); visibility: hidden; }
	.nav-open .main-nav { transform: none; visibility: visible; }
	.main-nav__head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
	.main-nav .menu li { position: relative; border-bottom: 1px solid var(--line); }
	.main-nav .menu a { display: block; padding: 14px 44px 14px 4px; font-weight: 600; color: var(--ink); }
	.main-nav .current-menu-item > a { color: var(--red); }
	.main-nav .sub-menu { display: none; list-style: none; padding: 0 0 8px 12px; margin: 0; }
	.main-nav .sub-menu li { border: 0; }
	.main-nav .sub-menu a { padding: 8px 4px; font-weight: 500; }
	.main-nav .sub-open > .sub-menu { display: block; }
	.sub-toggle { position: absolute; right: 0; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
	.sub-open > .sub-toggle svg { transform: rotate(180deg); }
	.main-nav__cta { display: inline-flex; margin-top: 20px; }
	.nav-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(29, 19, 16, .5); }
	.nav-open { overflow: hidden; }
	.hide-md { display: none !important; }
}
@media (max-width: 767px) { .hide-sm { display: none !important; } }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }

/* ============================================================ forms */
.search-form { position: relative; display: flex; max-width: 640px; }
.search-form__input { width: 100%; height: 50px; padding: 0 56px 0 20px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.search-form__input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.search-form__btn { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; }
.search-form__btn:hover { background: var(--red-600); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.wpcf7-form p { margin-bottom: 14px; }
.wpcf7-form label { font-weight: 600; font-size: 14px; }
.wpcf7-submit, input[type="submit"] { background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 13px 28px; font-weight: 600; }
.wpcf7-submit:hover { background: var(--red-600); }

/* ============================================================ hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--dark); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 19, 16, .92) 0%, rgba(29, 19, 16, .72) 42%, rgba(29, 19, 16, .15) 100%); }
.hero__in { padding: 88px 16px 72px; max-width: var(--container); }
@media (min-width: 768px) { .hero__in { padding: 120px 24px 104px; } }
.hero__title { color: #fff; font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; max-width: 13ch; margin-bottom: .35em; }
.hero__text { font-size: clamp(16px, 1.6vw, 19px); color: #f3e9df; max-width: 52ch; margin-bottom: 30px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 30px; font-weight: 800; color: var(--crust); line-height: 1.1; }
.hero__stats span { font-size: 14px; color: #e4d8cd; }
@media (max-width: 767px) { .hero__bg::after { background: linear-gradient(180deg, rgba(29, 19, 16, .55) 0%, rgba(29, 19, 16, .9) 70%); } .hero__btns .btn { flex: 1 1 100%; } }

/* ============================================================ usp */
.usp { background: var(--white); border-bottom: 1px solid var(--line); }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp__item { display: flex; gap: 14px; padding: 28px 20px; }
.usp__item + .usp__item { border-left: 1px solid var(--line); }
.usp__icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.usp__icon .icon { width: 24px; height: 24px; }
.usp h3 { font-size: 16px; margin: 2px 0 4px; }
.usp p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1023px) { .usp__grid { grid-template-columns: repeat(2, 1fr); } .usp__item:nth-child(3) { border-left: 0; } .usp__item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .usp__grid { grid-template-columns: 1fr; } .usp__item + .usp__item { border-left: 0; border-top: 1px solid var(--line); } .usp__item { padding: 18px 0; } }

/* ============================================================ sections */
.section { padding: 72px 0; }
@media (max-width: 767px) { .section { padding: 52px 0; } }
.section--cream { background: var(--cream); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section__title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 0; }

/* ============================================================ grid + cards */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid__full { grid-column: 1 / -1; }
@media (max-width: 1023px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } .grid--4 { gap: 14px; } }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(234, 223, 210, .7); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__ph { display: grid; place-items: center; height: 100%; color: var(--crust); }
.card__ph .icon { width: 44px; height: 44px; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card__body .chip { align-self: flex-start; }
.card__title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0; }
.card__title a { color: var(--ink); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s, color .2s; }
.card__title a:hover { color: var(--red); background-size: 100% 1.5px; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card .chip { position: relative; z-index: 2; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }

.card--menu .card__media { aspect-ratio: 1 / 1; }
.card--menu .card__body { padding: 14px 16px 16px; gap: 6px; }
.card--menu .card__title { font-size: 16px; }
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price ins { text-decoration: none; font-weight: 800; color: var(--red); font-size: 17px; }
.price del { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .card--menu .card__title { font-size: 14.5px; } .price ins { font-size: 15px; } .card--menu .card__body { padding: 10px 12px 12px; } }

.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 110px; }
.card--row .card__body { padding: 14px 16px; gap: 8px; justify-content: center; }
.card--row .card__title { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--feature { height: 100%; }
.card--feature .card__media { aspect-ratio: 16 / 9; }
.card--feature .card__title { font-size: clamp(20px, 2.2vw, 26px); }
.card--feature .card__body { padding: 22px 24px 24px; }

.news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.news__list { display: grid; gap: 16px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }

/* ============================================================ about + bands */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media > img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__badge { position: absolute; right: -18px; bottom: -22px; width: 150px; padding: 14px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); transform: rotate(-4deg); }
.about__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.about__body .section__title { margin-bottom: 16px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } .about__badge { width: 110px; right: 10px; } }

.stores-band { display: flex; align-items: center; gap: 24px; padding: 36px; border-radius: 24px; background: linear-gradient(135deg, var(--crust-100), var(--cream)); border: 1px solid var(--line); }
.stores-band__icon { flex: 0 0 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(200, 16, 46, .3); }
.stores-band__icon .icon { width: 32px; height: 32px; }
.stores-band__body { flex: 1; }
.stores-band__body .section__title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.stores-band__body p { margin: 0; color: var(--ink-2); }
@media (max-width: 767px) { .stores-band { flex-direction: column; align-items: flex-start; padding: 26px; } }

.cta-band { background: var(--red); color: #fff; background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .12) 0, transparent 40%), radial-gradient(circle at 10% 100%, rgba(0, 0, 0, .18) 0, transparent 45%); }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; margin: 0; max-width: 22ch; }
.cta-band .eyebrow { color: #ffd9a0; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================ page hero, breadcrumbs */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 28px 0 40px; }
.page-hero__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; }
.page-hero__desc { color: var(--ink-2); max-width: 70ch; }
.page-hero__desc p:last-child { margin: 0; }
.page-hero__search { margin-top: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { opacity: .5; }
.page-top { padding-top: 22px; }

/* ============================================================ layout + article */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 20px; padding-bottom: 64px; align-items: start; }
@media (max-width: 1023px) { .layout { grid-template-columns: 1fr; gap: 40px; } }
.archive-wrap { padding-top: 36px; padding-bottom: 64px; }
.archive-wrap.layout { padding-top: 36px; }
.article { min-width: 0; }
.article__head { margin-bottom: 22px; }
.article__title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; margin: 14px 0 14px; }
.article__cover { margin: 0 0 28px; }
.article__cover img { width: 100%; border-radius: var(--radius); }
.article__foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.tags span { font-weight: 600; margin-right: 4px; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); }
.tags a:hover { background: var(--red); color: #fff; }
.share { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.share > span { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: .2s; }
.share a:hover, .share button:hover, .share .copied { background: var(--red); border-color: var(--red); color: #fff; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 32px; padding: 24px; background: var(--cream); border-radius: 22px; }
.product__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.product__price .price ins { font-size: 32px; }
.product__price .price del { font-size: 17px; }
.product__btns { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.product__notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 14.5px; }
.product__notes li { display: flex; align-items: center; gap: 8px; }
.product__notes .icon { color: var(--red); }
@media (max-width: 767px) { .product { grid-template-columns: 1fr; padding: 16px; } }

/* prose */
.prose { font-size: 17.5px; line-height: 1.8; color: #33241c; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.55em; margin: 1.8em 0 .6em; padding-left: 14px; border-left: 4px solid var(--red); }
.prose h3 { font-size: 1.25em; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.08em; margin: 1.4em 0 .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.prose img { border-radius: 12px; margin: 1.4em auto; height: auto; }
.prose figure { margin: 1.6em 0; max-width: 100%; }
.prose figcaption, .prose .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: -.6em; }
.prose .wp-caption { max-width: 100%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; margin: 1em auto; } }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--cream); border-left: 4px solid var(--crust); border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink-2); }
.prose blockquote p:last-child { margin: 0; }
.prose iframe { width: 100%; border-radius: 12px; }
.prose iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:first-child td, .prose th { background: var(--cream); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .prose { font-size: 16.5px; } }

.toc { margin: 1.4em 0 1.8em; padding: 18px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; font-size: 15.5px; line-height: 1.5; }
.toc summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "–"; font-size: 20px; color: var(--red); }
.toc:not([open]) summary::after { content: "+"; }
.toc ol { margin: 12px 0 0; padding-left: 1.3em; }
.toc li { margin: 6px 0; }
.toc .toc__l3 { margin-left: 1em; list-style: circle; font-size: 14.5px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red); }

/* page layout */
.page-narrow { max-width: 860px; padding-top: 40px; padding-bottom: 72px; }
.page-wide { padding-top: 40px; padding-bottom: 72px; }

/* ============================================================ sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget--search { padding: 0; border: 0; }
.widget__title { font-size: 17px; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--red-50); position: relative; }
.widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--red); }
.mini-list, .cat-list { list-style: none; margin: 0; padding: 0; }
.mini-list li + li { margin-top: 14px; }
.mini { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.mini__img { flex: 0 0 72px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini__t { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover .mini__t { color: var(--red); }
.cat-list li + li { border-top: 1px dashed var(--line); }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--ink); font-weight: 500; }
.cat-list a:hover { color: var(--red); }
.cat-list span { min-width: 30px; text-align: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); }
.widget--promo { background: var(--dark); color: #fff; border: 0; background-image: radial-gradient(circle at 100% 0, rgba(200, 16, 46, .55), transparent 60%); }
.widget--promo h3 { color: #fff; font-size: 20px; margin-bottom: 14px; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1023px) { .sidebar__sticky { position: static; } }

/* ============================================================ ads */
.ad { margin: 28px auto; text-align: center; min-height: 100px; }
.ad__label { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.prose .ad { margin: 1.8em 0; }

/* ============================================================ pagination, empty, 404 */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .dots { border: 0; }
.empty { padding: 40px; text-align: center; background: var(--cream); border-radius: var(--radius); }
.empty .search-form { margin: 16px auto 0; }
.notfound { padding: 96px 0; text-align: center; background: var(--cream); }
.notfound__in { max-width: 680px; }
.notfound__code { font-size: clamp(90px, 16vw, 160px); font-weight: 800; line-height: 1; margin: 0; color: var(--red); letter-spacing: -.04em; }
.notfound__search .search-form { margin: 24px auto; }
.notfound .hero__btns { justify-content: center; }

/* ============================================================ footer */
.site-footer { background: var(--dark); color: #cbbdb1; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer__brand .custom-logo-link { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 16px; margin-bottom: 18px; }
.footer__brand .custom-logo { height: 70px; }
.footer__brand p { max-width: 38ch; }
.footer__title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer__links, .footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a, .footer__contact a { color: #cbbdb1; }
.footer__links a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { color: var(--crust); margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social__link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: .2s; }
.social__link:hover { background: var(--red); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 20px; }
.footer__bottom p { margin: 0; }
.footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a { color: #cbbdb1; }
.footer__legal a:hover { color: #fff; }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

/* floating */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--red); }
.call-fab { display: none; }
@media (max-width: 767px) {
	.call-fab { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 26px rgba(200, 16, 46, .4); transform: translateY(90px); transition: transform .3s; }
	.scrolled-far .call-fab { transform: none; }
	.call-fab:hover { color: #fff; }
}

/* devvn local store plugin tidy-up */
.page-wide .prose { max-width: none; }
.dvls_maps_wrap { font-size: 15px; line-height: 1.55; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dvls_maps_header { background: var(--cream) !important; padding: 16px !important; }
.dvls_maps_header select, .dvls_maps_header input { border-radius: 999px !important; border: 1.5px solid var(--line) !important; height: 44px; }
.dvls-submit, .dvls_maps_header button, .dvls_maps_header input[type="submit"] { background: var(--red) !important; border-radius: 999px !important; border: 0 !important; color: #fff !important; padding: 0 22px !important; height: 44px; font-weight: 600 !important; }
.dvls-submit:hover { background: var(--red-600) !important; }
.dvls_result_item { border-bottom: 1px solid var(--line); transition: background .2s; }
.dvls_result_item:hover { background: var(--cream); }
.dvls_result_infor a, .dvls_near_you a { color: var(--red); }
.section-sub { margin-top: 64px; }
.section-sub .section__title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
