/* Topicals theme styles */
:root {
	--tp-paper: #F6F2EA; --tp-card: #FFFDF8; --tp-sand: #EDE6D9; --tp-line: #E2DACB; --tp-line2: #D9D0BF;
	--tp-ink: #1E3329; --tp-muted: #55655C; --tp-soft: #3E5248; --tp-accent: #B4502C; --tp-green: #3F6B54;
	--tp-amber: #B07A1F; --tp-red: #A3402A; --tp-mint: #E6EDE6; --tp-peach: #F3E3D8;
	--tp-serif: 'Newsreader', Georgia, serif; --tp-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
body { -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.tp-mono { font-family: var(--tp-mono); font-size: 12px; letter-spacing: .04em; color: var(--tp-green); }
.tp-muted { color: var(--tp-muted) !important; }
.tp-eyebrow, .tp-eyebrow a { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--tp-accent) !important; text-decoration: none; }
.tp-meta, .tp-meta * { font-size: 14px; color: var(--tp-muted); }

/* Header */
.tp-header { background: var(--tp-paper); border-bottom: 1px solid var(--tp-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .tp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tp-header { top: 0; position: relative; } }
.tp-header-inner { min-height: 64px; gap: 24px; }
.tp-logo { margin: 0; font-family: var(--tp-serif); font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.tp-logo a { text-decoration: none; color: var(--tp-ink); }
.tp-logo a::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tp-accent); margin-left: 2px; }
.tp-header-right { gap: 14px; }
.tp-nav { font-size: 15.5px; gap: 22px; }
.tp-nav a { text-decoration: none; }
.tp-nav a:hover { color: var(--tp-accent); }
.tp-search-icon .wp-block-search__button { background: transparent !important; color: var(--tp-ink) !important; padding: 6px; border: 0; }
.tp-search-icon .wp-block-search__input { border: 1px solid var(--tp-line2); border-radius: 8px; background: var(--tp-card); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--tp-paper) !important; padding: 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--tp-serif); font-size: 26px; }

/* Footer */
.tp-footer { background: var(--tp-ink); color: #DCE3DD; margin-top: 80px; padding-top: 56px; padding-bottom: 32px; }
.tp-footer a { color: #F3EFE6; text-decoration: none; }
.tp-footer a:hover { color: #F0B79E; }
.tp-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .tp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tp-footer-grid { grid-template-columns: 1fr; } }
.tp-footer-logo { font-family: var(--tp-serif); font-size: 30px; }
.tp-footer-brand p { color: #B9C4BC; font-size: 16px; max-width: 300px; }
.tp-footer h4 { font-family: var(--tp-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #9FB0A5; margin: 0 0 12px; }
.tp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.tp-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13.5px; color: #9FB0A5; }

/* Homepage */
.tp-home { padding-top: clamp(28px, 5vw, 72px); }
.tp-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: center; }
.tp-hero-text { display: flex; flex-direction: column; gap: 22px; }
.tp-hero h1 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); text-wrap: balance; }
.tp-eyebrow, .tp-hero .tp-eyebrow { display: block; }
.tp-searchbar { display: flex; align-items: center; gap: 10px; background: var(--tp-card); border: 1px solid var(--tp-line2); border-radius: 10px; padding: 0 8px 0 16px; height: 58px; }
.tp-searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--tp-ink); outline: none; }
.tp-searchbar button { height: 42px; padding: 0 18px; border: 0; border-radius: 7px; background: var(--tp-ink); color: #FBF8F2; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-chips a { text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--tp-line2); background: var(--tp-card); }
.tp-chips a:hover { border-color: var(--tp-accent); }
.tp-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.tp-tool { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; border-radius: 14px; text-decoration: none; color: var(--tp-ink); border: 1px solid transparent; transition: transform .15s ease; }
a.tp-tool:hover { transform: translateY(-2px); color: var(--tp-ink); }
.tp-tool h3 { margin: 4px 0 0; font-size: 26px; }
.tp-tool p { margin: 0; color: var(--tp-soft); font-size: 16px; }
.tp-tool-link { font-weight: 600; font-size: 15px; margin-top: 6px; }
.tp-tool--mint { background: var(--tp-mint); } .tp-tool--peach { background: var(--tp-peach); } .tp-tool--sand { background: var(--tp-sand); }
.tp-section { margin-top: clamp(48px, 7vw, 88px); }
.tp-section > h2, .tp-section h2.wp-block-heading { margin: 0 0 20px; }
.tp-concerns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tp-concerns a { display: flex; flex-direction: column; gap: 12px; background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 12px; padding: 18px; text-decoration: none; font-weight: 500; font-size: 16px; }
.tp-concerns a:hover { border-color: var(--tp-accent); }
.tp-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--tp-accent) 0 4px, var(--tp-peach) 5px); }
.tp-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: clamp(48px, 7vw, 88px); padding-top: 32px; border-top: 1px solid var(--tp-line); }
.tp-trust a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.tp-trust strong { font-family: var(--tp-serif); font-weight: 500; font-size: 22px; }
.tp-trust span { color: var(--tp-muted); font-size: 15.5px; }
.tp-empty { background: var(--tp-card); border: 1px dashed var(--tp-line2); border-radius: 12px; padding: 22px; color: var(--tp-muted); }

/* Cards */
.tp-cards .wp-block-post-template { gap: 28px 24px; }
@media (max-width: 860px) { .tp-cards .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tp-cards .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }
.tp-card { display: flex; flex-direction: column; gap: 8px; }
.tp-card .wp-block-post-featured-image { margin: 0 0 6px; border-radius: 12px; overflow: hidden; background: var(--tp-sand); }
.tp-card .wp-block-post-featured-image img { border-radius: 12px; }
.tp-card .wp-block-post-title { margin: 0; font-size: 22px; line-height: 1.25; }
.tp-card .wp-block-post-title a { text-decoration: none; }
.tp-pagination { margin-top: 40px; gap: 10px; }

/* Archive */
.tp-archive { padding-top: clamp(28px, 4vw, 56px); }
.tp-archive-head { max-width: 760px; margin-bottom: 36px; }
.tp-archive-head h1 { margin: 6px 0 10px; }
.wp-block-term-description { color: var(--tp-soft); }
.tp-search-wide { max-width: 560px; }
.tp-search-wide .wp-block-search__input { border: 1px solid var(--tp-line2); border-radius: 10px; background: var(--tp-card); padding: 12px 14px; }
.tp-search-wide .wp-block-search__button { border-radius: 8px; }
.tp-breadcrumbs, .tp-breadcrumbs a, .rank-math-breadcrumb, .rank-math-breadcrumb a { font-size: 14px; color: var(--tp-muted); text-decoration: none; }

/* Single */
.tp-single, .tp-page { padding-top: clamp(24px, 4vw, 48px); }
.tp-article-head { display: flex; flex-direction: column; gap: 12px; }
.tp-article-head .wp-block-post-title { margin: 0; font-size: clamp(34px, 4.2vw, 52px); text-wrap: balance; }
.tp-byline { gap: 6px 16px; font-size: 15px; color: var(--tp-muted); align-items: center; }
.tp-byline-author::before { content: "By "; }
.tp-byline-date::before { content: "Updated "; }
.tp-byline a { color: var(--tp-ink); }
.tp-reviewed strong { color: var(--tp-ink); font-weight: 600; }
.tp-disclosure { font-size: 14px; color: var(--tp-muted); background: var(--tp-sand); border-radius: 8px; padding: 10px 14px; margin: 4px 0 0; }
.tp-hero-image img { border-radius: 14px; }
.tp-content { font-size: 18.5px; }
.tp-content > * + * { margin-top: 1.1em; }
.tp-content h2 { margin-top: 1.8em; }
.tp-content h3 { margin-top: 1.5em; }
.tp-content a { color: var(--tp-ink); text-decoration-color: var(--tp-accent); text-underline-offset: 3px; }
.tp-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.tp-content th, .tp-content td { border-bottom: 1px solid var(--tp-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.tp-content thead th { background: var(--tp-sand); font-weight: 600; }
.tp-author-box { margin-top: 48px; padding: 22px; background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 14px; gap: 16px; }
.tp-author-box img { border-radius: 50%; }
.tp-author-name { font-family: var(--tp-serif); font-size: 22px; }
.tp-author-box .wp-block-post-author-biography { color: var(--tp-soft); font-size: 16px; margin-top: 4px; }
.tp-related { margin-top: 64px; }

/* Article components (patterns) */
.tp-box-label { font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin: 0 0 6px !important; }
.tp-quick-answer { background: var(--tp-mint); border-left: 4px solid var(--tp-green); border-radius: 10px; padding: 18px 22px; }
.tp-quick-answer .tp-box-label { color: var(--tp-green); }
.tp-quick-answer p { margin: 0; }
.tp-ingredient-card { background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 14px; padding: 22px; }
.tp-ingredient-card .tp-box-label { color: var(--tp-accent); font-family: var(--tp-mono); font-weight: 500; }
.tp-ingredient-card h3 { margin: 0 0 8px; }
.tp-facts table td { border-bottom: 1px solid var(--tp-line); padding: 9px 10px 9px 0; font-size: 16px; }
.tp-facts table td:first-child { width: 38%; color: var(--tp-muted); }
.tp-facts table tr:last-child td { border-bottom: 0; }
.tp-tip { background: var(--tp-mint); border-radius: 10px; padding: 14px 18px; }
.tp-tip p { margin: 0; }
.tp-warn { background: var(--tp-peach); border-left: 4px solid var(--tp-red); border-radius: 10px; padding: 16px 20px; }
.tp-warn .tp-box-label { color: var(--tp-red); }
.tp-warn ul { margin: 0; padding-left: 20px; }
.tp-takeaways { background: var(--tp-ink); color: #F3EFE6; border-radius: 14px; padding: 22px 26px; }
.tp-takeaways .tp-box-label { color: #F0B79E; }
.tp-takeaways ul { margin: 0; padding-left: 20px; }
.tp-verdict { background: var(--tp-card); border: 1.5px solid var(--tp-ink); border-radius: 14px; padding: 24px; }
.tp-verdict .tp-box-label { color: var(--tp-accent); }
.tp-verdict h3 { margin: 0; }
.tp-rating { font-family: var(--tp-serif); font-size: 30px; margin: 4px 0 8px !important; }
.tp-buy .wp-block-button__link { background: var(--tp-accent) !important; padding: 12px 24px; }
.tp-steps { background: var(--tp-card); border: 1.5px solid var(--tp-green); border-radius: 14px; padding: 20px 24px; }
.tp-steps .tp-box-label { color: var(--tp-green); }
.tp-steps ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.tp-faq .wp-block-details { border-bottom: 1px solid var(--tp-line); padding: 14px 0; }
.tp-faq summary { cursor: pointer; font-weight: 600; }

/* Tools: shared */
.tp-tool-box { background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); }
.tp-select { height: 52px; width: 100%; padding: 0 14px; border: 1px solid var(--tp-line2); border-radius: 8px; background: var(--tp-paper); font: inherit; font-size: 17px; color: var(--tp-ink); }
.tp-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tp-muted); }

/* Skin weather */
.tp-weather { min-height: 120px; }
.tp-weather-card { background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tp-weather-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tp-weather-top h3 { margin: 0; font-size: 24px; }
.tp-weather-date { font-size: 13.5px; color: var(--tp-muted); }
.tp-weather .tp-select { height: 42px; width: auto; font-size: 15px; }
.tp-wx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tp-wx { background: var(--tp-paper); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.tp-wx-k { font-family: var(--tp-mono); font-size: 11px; text-transform: uppercase; color: var(--tp-muted); }
.tp-wx-v { font-family: var(--tp-serif); font-size: 34px; line-height: 1.1; }
.tp-wx-l { font-size: 13px; font-weight: 600; }
.tp-lvl-1 { color: var(--tp-green); } .tp-lvl-2 { color: var(--tp-amber); } .tp-lvl-3 { color: var(--tp-accent); } .tp-lvl-4 { color: var(--tp-red); }
.tp-wx-advice { margin: 0; font-size: 16px; color: var(--tp-soft); }
.tp-wx-link { font-size: 15px; font-weight: 600; color: var(--tp-accent) !important; }
.tp-wx-note { font-size: 12.5px; color: var(--tp-muted); margin: 0; }
.tp-weather--full .tp-wx-grid { gap: 14px; }
.tp-weather--full .tp-wx { padding: 18px; background: var(--tp-card); border: 1px solid var(--tp-line); }
.tp-weather--full .tp-wx-v { font-size: 52px; }
.tp-wx-todo { background: var(--tp-mint); border-radius: 14px; padding: 20px 24px; margin-top: 16px; }
.tp-wx-todo h3, .tp-wx-climate h3 { margin: 0 0 8px; }
.tp-wx-todo ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tp-wx-climate { margin-top: 16px; background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 14px; padding: 20px 24px; }
.tp-wx-nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin-top: 16px; }
.tp-wx-nearby button { text-align: left; background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; cursor: pointer; color: var(--tp-ink); }
.tp-wx-nearby button:hover { border-color: var(--tp-accent); }
@media (max-width: 480px) { .tp-wx-v { font-size: 28px; } .tp-weather--full .tp-wx-v { font-size: 38px; } .tp-wx { padding: 10px; } }

/* Clash checker */
.tp-clash-pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tp-clash-result { border-radius: 14px; overflow: hidden; border: 1.5px solid var(--tp-green); margin-top: 18px; }
.tp-clash-head { color: #FFFDF8; padding: 14px 22px; display: flex; align-items: center; gap: 12px; font-family: var(--tp-serif); font-size: 26px; }
.tp-clash-head::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #FFFDF8; }
.tp-clash-body { background: var(--tp-card); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.tp-clash-body p { margin: 0; color: var(--tp-soft); }
.tp-clash-how { font-size: 16px; background: var(--tp-paper); border-radius: 8px; padding: 12px 14px; }
.tp-clash-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--tp-muted); margin-top: 12px; }
.tp-clash-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--c); }
.tp-clash-note { font-size: 14px; color: var(--tp-muted); margin-top: 14px; }
