/* ── Webbox base — shell, typography, header, footer ─────────────────── */

/* Poppins (self-hosted, latin subset — matches legacy site) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, arial, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: #111;
	background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: #056cf2; text-decoration: none; }
a:hover { color: #023e8a; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; color: #111; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; }
table td, table th { border: 1px solid #e3e3e3; padding: 9px 12px; text-align: left; }

/* Shell (legacy classes are also styled in legacy.css; these are the base geometry) */
.rh-outer-wrap { overflow-x: clip; }
.rh-container { max-width: 1230px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
.rh-content-wrap { position: relative; }
.main-side { width: 100%; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignwide { width: 100%; }

/* Header */
#main_header { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
#main_header .rh-container { display: flex; align-items: center; min-height: 76px; }
.logo-section { display: flex; align-items: center; width: 100%; gap: 20px; }
.logo_image img { display: block; height: 76px; width: auto; } /* legacy 450x76 */
.main-nav { margin-left: auto; }
.top_menu > ul.menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.top_menu > ul.menu > li > a { font-weight: 700; font-size: 16px; color: #111; padding: 26px 13px; display: block; }
.top_menu ul li { position: relative; }
.top_menu ul.sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 6px; padding: 8px 0;
	list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .2s ease; z-index: 300;
}
.top_menu li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: none; }
.top_menu ul.sub-menu li a { display: block; padding: 8px 18px; font-size: 14px; color: #333; }
.top_menu ul.sub-menu li a:hover { background: #f5f8ff; color: #056cf2; }
.responsive_nav_wrap { display: none; }
.rh-search-icon .icon-search-onclick { font-family: rhicons; cursor: pointer; font-size: 17px; }
.rh-search-icon .icon-search-onclick::before { content: "\e93c"; }

/* Search splash */
.search-header-contents { position: fixed; inset: 0; background: rgba(255,255,255,.98); z-index: 9999; padding-top: 8vh; }
.search-header-contents.rhhidden { display: none; }
.search-form { display: flex; max-width: 720px; margin: 0 auto; border-bottom: 2px solid #111; }
.search-form input[type="text"] { flex: 1; border: 0; outline: 0; font-size: 28px; padding: 12px 8px; background: transparent; }
.search-form .btnsearch { border: 0; background: transparent; font-size: 22px; cursor: pointer; }

/* Footer */
.footer_clean_style { margin-top: 60px; }
.wb-footer {
	background: linear-gradient(125deg, rgb(90,155,242) 20%, rgb(125,0,254) 100%);
	color: #fff; padding: 70px 30px 0;
}
.wb-footer a { color: #fff; }
.wb-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; max-width: 1230px; margin: 0 auto; padding-bottom: 40px; }
.wb-footer__brand { flex: 1 1 340px; }
.wb-footer__logo img { max-width: 358px; height: auto; }
.wb-footer__links { flex: 0 1 220px; }
.wb-footer__links h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.wb-footer__menu { list-style: none; margin: 0; padding: 0; }
.wb-footer__menu li { margin-bottom: 8px; }
.wb-footer__menu a { font-size: 14.5px; opacity: .92; }
.wb-footer__menu a:hover { opacity: 1; text-decoration: underline; }
.wb-footer__email { font-size: 16px; }
.wb-footer__editorial { margin-top: 10px; font-size: 16px; }
.wb-footer__bottom { border-top: 1px solid rgba(255,255,255,.25); padding: 18px 0 24px; max-width: 1230px; margin: 0 auto; font-size: 14px; }
.wb-footer__bottom p { margin: 0; }

/* Pagination & misc */
.wb-pagination { text-align: center; margin: 30px 0; }
.wb-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #e3e3e3; border-radius: 4px; margin: 0 3px; color: #111; }
.wb-pagination .page-numbers.current { background: #056cf2; color: #fff; border-color: #056cf2; }
.wb-404 { padding: 80px 15px; }

/* Single post header */
.single-post-header { max-width: 840px; margin: 30px auto 10px; }
.single-post-header h1 { margin-bottom: 8px; }
.meta.post-meta { color: #777; font-size: 13.5px; display: flex; gap: 14px; margin-bottom: 18px; }
.post-inner { max-width: 840px; margin: 0 auto; }
.wb-richtext { margin-bottom: 1em; }

/* Archive cards */
.wb-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.wb-card { border: 1px solid #ececec; border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.wb-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.wb-card__img img { display: block; width: 100%; height: 180px; object-fit: cover; }
.wb-card__body { padding: 14px 16px 18px; }
.wb-card__title { font-size: 16.5px; margin: 0 0 6px; }
.wb-card__title a { color: #111; }
.wb-card__meta { color: #999; font-size: 12.5px; margin-bottom: 8px; }
.wb-card__excerpt { font-size: 13.8px; color: #555; }
.cat_seo_description .cat-title { margin-top: 10px; }

/* Responsive */
@media (max-width: 1023px) {
	.top_menu, .rh-search-icon, .header-actions-logo { display: none; }
	.responsive_nav_wrap { display: block; margin-left: auto; }
	.dl-trigger { background: none; border: 0; padding: 6px; cursor: pointer; }
	.dl-trigger svg { width: 28px; height: 28px; stroke: #111; stroke-width: 3; }
	.wb-archive-grid { grid-template-columns: repeat(2, 1fr); }
	body.wb-menu-open .top_menu { display: block; position: fixed; inset: 76px 0 0; background: #fff; z-index: 900; overflow: auto; padding: 10px 16px; }
	body.wb-menu-open .top_menu > ul.menu { flex-direction: column; }
	body.wb-menu-open .top_menu > ul.menu > li > a { padding: 13px 4px; border-bottom: 1px solid #f0f0f0; }
	body.wb-menu-open .top_menu ul.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 14px; }
}
@media (max-width: 640px) {
	.wb-archive-grid { grid-template-columns: 1fr; }
	h1 { font-size: 26px; }
	h2 { font-size: 22px; }
}

/* ── content typography — matched to legacy computed values (16px/28px, 31px ¶ spacing) ── */
.post-inner, .wb-richtext, .wb-flow-page, .archive-description, .archive-bottom-description, .cat-description {
	font-size: 16px; line-height: 1.75;
}
.post-inner p, .wb-richtext p, .wb-flow-page p { margin-bottom: 31px; }
.post-inner li, .wb-richtext li, .wb-flow-page li { line-height: 1.75; }
.post-inner ul, .post-inner ol, .wb-richtext ul, .wb-richtext ol { margin-bottom: 31px; }
.post-inner h3, .wb-richtext h3 { font-size: 20px; line-height: 1.4; }
.post-inner h2, .wb-richtext h2 { line-height: 1.35; }
