/* The Money Wallet – layout details that theme.json can't express. Colours use the theme palette only. */

/* ---------- Shared ---------- */
.tmw-eyebrow { margin: 0; font-size: 12px; font-weight: 600; color: var(--wp--preset--color--primary); letter-spacing: .02em; }
.tmw-rule { margin-bottom: 0; }
.tmw-rule::after { content: ""; display: block; width: 24px; height: 3px; background: var(--wp--preset--color--contrast); margin-top: 14px; }
.tmw-eyebrow-line { display: flex; align-items: center; gap: 16px; margin: 0; }
.tmw-eyebrow-line::before { content: ""; width: 40px; height: 2px; background: var(--wp--preset--color--primary); flex: none; }
.tmw-viewall { margin: 0; font-size: 13px; font-weight: 600; }
.tmw-viewall a, .tmw-readmore { color: var(--wp--preset--color--primary); text-decoration: none; font-size: 13px; font-weight: 600; }
.tmw-viewall a:hover, .tmw-readmore:hover { color: var(--wp--preset--color--secondary); }
:where(.wp-site-blocks) *:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: var(--wp--preset--color--secondary); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--secondary); }

/* ---------- Header ---------- */
.tmw-topbar .wp-block-navigation a { color: var(--wp--preset--color--base); padding: 10px 0; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tmw-topbar .wp-block-navigation a:hover { text-decoration: underline; }
.tmw-topbar > .alignwide { min-height: 44px; align-items: center; }
.tmw-ico > a::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.tmw-ico--news { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.tmw-ico--guides { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h7v14H4zM13 5h7v14h-7z'/%3E%3C/svg%3E"); }
.tmw-ico--reviews { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E"); }
.tmw-ico--ebooks { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E"); }
.tmw-ico--deals { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12l-8 8-9-9V3h8zM7 7h.01'/%3E%3C/svg%3E"); }
.tmw-ico--calc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18H5zM8 7h8M8 12h2M14 12h2M8 16h2M14 16h2'/%3E%3C/svg%3E"); }
.tmw-compare-link a { border: 1.5px solid var(--wp--preset--color--base); border-radius: 4px; padding: 7px 14px !important; font-weight: 600; font-size: 12px; }
.tmw-compare-link a:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
.tmw-topsearch .wp-block-search__button { background: transparent; color: var(--wp--preset--color--base); border: 0; padding: 6px; min-height: 40px; }
.tmw-topsearch .wp-block-search__button svg { fill: currentColor; }
.tmw-topsearch .wp-block-search__input { border-radius: 4px; border: 0; padding: 6px 10px; font-size: 13px; }
.tmw-logo img { height: 48px; width: auto; }
.tmw-mainnav .wp-block-navigation-item__content { padding: 12px; border-radius: 4px; color: var(--wp--preset--color--contrast); }
.tmw-mainnav .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.tmw-mainnav .wp-block-navigation-submenu__toggle[aria-expanded="true"] { background: var(--wp--preset--color--base-2); }
.tmw-mainnav .wp-block-navigation__submenu-container { border: 1px solid #DDE1E1 !important; border-radius: 6px; padding: 8px !important; min-width: 240px !important; box-shadow: 0 10px 30px rgba(45,45,45,.08); }
.tmw-mainnav .wp-block-navigation__submenu-container a { padding: 9px 12px !important; font-weight: 500; }
.tmw-mainnav .wp-block-navigation__submenu-container a:hover { color: var(--wp--preset--color--primary); }
.tmw-mainnav .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--secondary); }
.tmw-mainnav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }

/* ---------- Hero ---------- */
.tmw-hero__text { padding-left: max(24px, calc((100vw - 1180px) / 2)) !important; padding-right: 48px !important; }
.tmw-hero__text h1 { max-width: 560px; }
.tmw-hero__text p { max-width: 480px; }
.tmw-hero__media { align-self: stretch; }
.tmw-hero__img, .tmw-hero__img img { height: 100%; margin: 0; }
.tmw-hero__img img { width: 100%; min-height: 360px; max-height: 560px; object-fit: cover; display: block; }
.tmw-btn-outline-light > .wp-block-button__link { color: var(--wp--preset--color--base) !important; border-color: var(--wp--preset--color--base) !important; }
.tmw-btn-outline-light > .wp-block-button__link:hover { background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; }

/* ---------- Category tiles (whole tile clickable) ---------- */
.tmw-cat-tile { position: relative; min-height: 150px; padding: 24px; border-radius: 4px; gap: 6px !important; transition: background .15s; }
.tmw-cat-tile:hover, .tmw-cat-tile:focus-within { background-color: var(--wp--preset--color--secondary) !important; }
.tmw-cat-tile::before { content: ""; width: 30px; height: 30px; margin-bottom: 8px; background: var(--wp--preset--color--base); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.tmw-cat-tile p { margin: 0; }
.tmw-cat-tile__label { font-size: 15px; font-weight: 600; }
.tmw-cat-tile__label a { color: inherit; text-decoration: none; }
.tmw-cat-tile__label a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.tmw-cat-tile--bank { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18M5 10v8M9 10v8M15 10v8M19 10v8M3 21h18M12 3l9 5H3z'/%3E%3C/svg%3E"); }
.tmw-cat-tile--card { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.tmw-cat-tile--home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 9v12h14V9M10 21v-6h4v6'/%3E%3C/svg%3E"); }
.tmw-cat-tile--biz { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 012-2h4a2 2 0 012 2v2M3 13h18'/%3E%3C/svg%3E"); }
.tmw-cat-tile--travel { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 16l20-8-4 12-6-4-4 4v-6z'/%3E%3C/svg%3E"); }
.tmw-cat-tile--budget { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9h-4a2 2 0 000 4h2a2 2 0 010 4H9M12 6v2M12 16v2'/%3E%3C/svg%3E"); }
.tmw-cat-tile--shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); }
.tmw-cat-tile--car { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16l1.5-5a2 2 0 012-1.5h7a2 2 0 012 1.5L19 16M3 16h18v3H3zM7 19v2M17 19v2'/%3E%3C/svg%3E"); }

/* ---------- Calculators strip + best picks ---------- */
.tmw-chip-btn .wp-block-button__link { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); border: 1px solid #D6D9D9; padding: 12px 18px; }
.tmw-chip-btn .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--secondary); background: var(--wp--preset--color--base); }
.tmw-chip-btn--all .wp-block-button__link { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--primary); }
.tmw-chip-btn--all .wp-block-button__link:hover { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--base); }
.tmw-pick-card { position: relative; margin: 0; padding: 20px; border: 1px solid #DDE1E1; border-top: 4px solid var(--wp--preset--color--primary); border-radius: 6px; font-size: 15px; font-weight: 600; }
.tmw-pick-card--dark { border-top-color: var(--wp--preset--color--contrast); }
.tmw-pick-card a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.tmw-pick-card a::after { content: ""; position: absolute; inset: 0; }
.tmw-pick-card:hover { border-color: var(--wp--preset--color--primary); }

/* ---------- Post cards ---------- */
.tmw-cards .wp-block-post-template { gap: 24px; }
.tmw-card-post { background: var(--wp--preset--color--base); border-radius: 6px; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(45,45,45,.06); }
.tmw-cards--news .tmw-card-post { box-shadow: none; border: 1px solid #DDE1E1; }
.tmw-card__img { margin: 0 !important; background: var(--wp--preset--color--base-2); }
.tmw-card__img img { object-fit: cover; }
.tmw-card-post__body { padding: 24px; flex: 1; }
.tmw-card-post .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.tmw-card-post .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.tmw-card-post .wp-block-post-excerpt__excerpt { margin: 0; }
.tmw-pill-terms a, .tmw-pill-date { display: inline-block; padding: 4px 10px; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base) !important; font-size: 11px; font-weight: 600; border-radius: 999px; text-decoration: none; }
.tmw-pill-terms .wp-block-post-terms__separator { display: none; }
.tmw-pill-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.tmw-pagination a, .tmw-pagination .page-numbers { padding: 8px 14px; border-radius: 4px; text-decoration: none; }
.tmw-pagination .current { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }

/* ---------- Banner ---------- */
.tmw-banner .wp-block-cover__inner-container { width: 100%; }
.tmw-banner__title { font-size: clamp(34px, 5vw, 52px) !important; margin: 0; }
.tmw-banner__title::after { content: "."; color: var(--wp--preset--color--primary); }

/* ---------- Article ---------- */
.tmw-prose > * + * { margin-top: 1.2em; }
.tmw-prose h2 { font-size: clamp(24px, 3vw, 28px); margin-top: 1.8em; }
.tmw-prose h3 { margin-top: 1.5em; }
.tmw-prose a:not(.tmw-btn):not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 2px; }
.tmw-prose table { width: 100%; }
.tmw-article__side { position: relative; }
.tmw-side-sticky { position: sticky; top: 24px; }
.tmw-side-box { border: 1px solid #DDE1E1; border-radius: 6px; padding: 20px; }
.tmw-side-box--mint { border-color: var(--wp--preset--color--mint); }
.tmw-side-title { margin: 0 0 12px; }
.tmw-side-cats { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.tmw-side-cats li { padding: 8px 0; border-bottom: 1px solid var(--wp--preset--color--base-2); }
.tmw-side-cats a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.tmw-side-cats a:hover { color: var(--wp--preset--color--primary); }
.tmw-disclaimer { border-radius: 6px; padding: 16px 20px; margin-top: 40px; }
.tmw-tags a { font-size: 13px; }

/* ---------- eBooks ---------- */
.tmw-ebook { border-left: 4px solid var(--wp--preset--color--primary); background: var(--wp--preset--color--base); box-shadow: 0 6px 20px rgba(45,45,45,.06); padding: 20px 24px; border-radius: 0 6px 6px 0; margin-bottom: 14px; }
.tmw-ebook h3, .tmw-ebook p { margin: 0; }
.tmw-pdf-badge { margin: 0; flex: none; width: 46px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); font-weight: 700; font-size: 12px; border-radius: 4px; }
.tmw-price-tag { font-size: 12px; font-weight: 600; background: var(--wp--preset--color--mint); color: var(--wp--preset--color--secondary); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }

/* ---------- Footer ---------- */
.tmw-footer a { color: #DDDDDD; text-decoration: none; }
.tmw-footer a:hover { color: var(--wp--preset--color--base); text-decoration: underline; }
.tmw-footer .tmw-footnav a { padding: 0; }
.tmw-footer-logo { margin: 0 0 16px; }
.tmw-social .wp-social-link { width: 44px; height: 44px; justify-content: center; }
.tmw-footer .wp-block-separator { opacity: 1; margin: 40px 0 20px; height: 1px; border: 0; }
.tmw-privacy-link { font-size: 12px; }
.tmw-footer .tmw-newsletter input[type="email"], .tmw-newsletter-band input[type="email"] { min-height: 44px; border: 0; border-radius: 4px; padding: 0 12px; font: inherit; }

/* ---------- Sponsored partners (plugin markup, two-tone band as in the design) ---------- */
.tmw-partners { margin: 0; }
.tmw-partners__title { margin: 0 !important; background: var(--wp--preset--color--base-2); padding: 22px 24px; font-size: 22px !important; color: var(--wp--preset--color--contrast) !important; }
.tmw-partners__band { background: var(--wp--preset--color--primary) !important; border-radius: 0 !important; padding: 28px 24px !important; }
.tmw-partners__row { max-width: 1180px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; gap: 16px 32px !important; }
.tmw-partner { min-height: 64px; border-radius: 4px !important; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.tmw-hero__text { padding: 56px 24px !important; }
	.tmw-hero__img img { min-height: 260px; max-height: 320px; }
	.tmw-topbar .tmw-topnav { gap: 4px 16px !important; }
	.tmw-article__cols { flex-direction: column; }
	.tmw-side-sticky { display: none; }
}
