/*
Theme Name: textsmeanings
Theme URI: https://textsmeanings.com
Author: textsmeanings
Description: A block theme for a text meanings blog, with a built-in Text Decoder tool. Colors, fonts, header, footer and every template are editable in Appearance > Editor.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: textsmeanings
*/

/* Most design choices live in theme.json and the Site Editor. This file holds the extras the editor cannot express. */

body{-webkit-font-smoothing:antialiased}
.wp-site-blocks{padding-left:0;padding-right:0}
.wp-site-blocks>main>section,.wp-site-blocks>main>.tm-ctawrap{margin-top:56px}

/* Header */
.tm-header{border-bottom:1px solid var(--wp--preset--color--line);padding:14px 16px}
.tm-header__inner{gap:16px}
.tm-logo{gap:10px}
.tm-mark{width:36px;height:36px;margin:0;display:grid;place-items:center;background:var(--wp--preset--color--brand);color:#fff;border-radius:12px 12px 12px 4px;font:700 20px/1 var(--wp--preset--font-family--display)}
.tm-wordmark{margin:0;font:600 22px/1 var(--wp--preset--font-family--display);letter-spacing:-.3px}
.tm-wordmark a{text-decoration:none;color:inherit}
.tm-wordmark strong{font-weight:700}
.tm-header .wp-block-navigation{font-weight:500;font-size:16px}
.tm-nav-cta .wp-block-button__link{min-height:44px;display:inline-flex;align-items:center}

/* Small parts */
.tm-badge{display:inline-block;margin:0;padding:4px 12px;border-radius:999px;background:var(--wp--preset--color--sun);color:var(--wp--preset--color--ink);font-size:12px;font-weight:600;letter-spacing:.6px}
.tm-badge--dark{background:var(--wp--preset--color--ink);color:#fff}
.tm-eyebrow{margin:0 0 12px;font-size:13px;font-weight:600;color:var(--wp--preset--color--muted);letter-spacing:.6px}
.tm-h1{font-size:clamp(32px,5vw,48px);margin:16px 0 14px}
.tm-h2{margin:0 0 20px}
.tm-lead{color:var(--wp--preset--color--muted);font-size:19px;max-width:640px}

/* Hero */
.tm-hero{padding:72px 16px}
.tm-search{display:flex;gap:8px;background:#fff;border:2px solid var(--wp--preset--color--line);border-radius:16px;padding:8px;max-width:600px;margin:28px 0 18px}
.tm-search:focus-within{border-color:var(--wp--preset--color--brand)}
.tm-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:18px;padding:10px 12px;color:var(--wp--preset--color--ink)}
.tm-search button{min-height:48px;border:0;border-radius:12px;background:var(--wp--preset--color--brand);color:#fff;font:600 17px var(--wp--preset--font-family--display);padding:0 26px;cursor:pointer}
.tm-search button:hover{background:var(--wp--preset--color--ink)}
.tm-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.tm-chips .tm-eyebrow{margin:0}
.tm-chips a{display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border:1px solid var(--wp--preset--color--line);border-radius:999px;background:#fff;font-weight:500;font-size:15px;text-decoration:none}
.tm-chips a:hover{border-color:var(--wp--preset--color--brand)}
.tm-chatdemo{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:28px;padding:28px;gap:14px;max-width:460px;margin-inline:auto}

/* Chat bubbles (Styles panel > paragraph) */
.is-style-tm-bubble-in,.is-style-tm-bubble-out,.is-style-tm-bubble-sun{margin:0;padding:12px 16px;max-width:84%;width:fit-content;font-size:17px}
.is-style-tm-bubble-in{background:var(--wp--preset--color--chat);color:var(--wp--preset--color--ink);border-radius:20px 20px 20px 6px;align-self:flex-start}
.is-style-tm-bubble-out{background:var(--wp--preset--color--brand);color:#fff;border-radius:20px 20px 6px 20px;align-self:flex-end}
.is-style-tm-bubble-sun{background:var(--wp--preset--color--sun);color:var(--wp--preset--color--ink);border-radius:20px 20px 20px 6px;align-self:flex-start}

/* Cards */
.is-style-tm-card{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:20px;padding:22px}
.tm-card__title{margin:0 0 10px}
.tm-cards .wp-block-post-template{gap:20px}
.tm-cards:not(.tm-cards--img) .wp-block-post-template>li{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:20px;padding:22px}
.tm-cards .wp-block-post-title{margin:8px 0 0}
.tm-cards .wp-block-post-title a{text-decoration:none}
.tm-cards .wp-block-post-excerpt{color:var(--wp--preset--color--muted);font-size:15px;margin-top:6px}
.tm-cards .wp-block-post-featured-image{margin:0}

/* A to Z */
.tm-az{gap:8px;margin-top:20px}
.tm-az .wp-block-button__link{min-width:44px;height:44px;padding:0 10px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:16px;color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--line);background:#fff}
.tm-az .wp-block-button__link:hover{background:var(--wp--preset--color--brand);border-color:var(--wp--preset--color--brand);color:#fff}

/* Tool banners */
.tm-cta{border-radius:24px;padding:28px;gap:24px}
.tm-cta__text{flex:1 1 320px;min-width:0}
.tm-cta__side{flex:0 1 260px;min-width:0;align-items:stretch;gap:12px}
.tm-cta__title{font-size:28px;margin:12px 0}
.tm-cta__text p:not(.tm-badge){color:#D9DFE5;font-size:17px;margin:0}
.tm-cta .is-style-tm-bubble-in,.tm-promo .is-style-tm-bubble-in{background:#fff;color:var(--wp--preset--color--ink);font-size:15px}
.tm-arrow .wp-block-button__link{min-height:54px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700}
.tm-arrow .wp-block-button__link::after{content:"\2192";margin-left:10px}
.tm-cta .tm-arrow .wp-block-button__link:hover,.tm-promo .tm-arrow .wp-block-button__link:hover{background:#fff;color:var(--wp--preset--color--ink)}
.tm-promo{border-radius:24px;padding:26px}
.tm-promo__title{font-size:26px;margin:14px 0}
.tm-promo__chat{gap:8px;margin:0 0 16px}
.tm-promo__chat .is-style-tm-bubble-sun{align-self:flex-end;font-size:15px;font-weight:500;border-radius:18px 18px 5px 18px}
.tm-promo>p:not(.tm-badge){font-size:16px}

/* Article parts */
.tm-main{padding:28px 16px 72px}
.tm-postcols{gap:56px}
.tm-crumb{font-size:15px;color:var(--wp--preset--color--muted);margin:0 0 10px}
.tm-crumb a{text-decoration:none}
.tm-meta{gap:6px;font-size:15px;color:var(--wp--preset--color--muted);margin-bottom:24px}
.tm-meta p{margin:0}
.tm-article .wp-block-post-featured-image{margin-bottom:32px}
.wp-block-post-content>*+*{margin-top:20px}
.wp-block-post-content h2{margin-top:44px}
.tm-article .wp-block-post-content p,.tm-article .wp-block-post-content li{font-size:18px;line-height:1.7}
.tm-quick{background:#FFF4D1;border:2px solid var(--wp--preset--color--sun);border-radius:20px;padding:24px 28px}
.tm-quick--auto{margin-bottom:8px}
.tm-quick__text{font-size:21px!important;line-height:1.45!important;font-weight:500;margin:12px 0 0}
.tm-chat{background:var(--wp--preset--color--surface);border-radius:20px;padding:22px;gap:12px}
.tm-chat__label{margin:0;font-size:13px;font-weight:600;color:var(--wp--preset--color--muted);letter-spacing:.4px}
.tm-chat .is-style-tm-bubble-in{background:#fff}
.tm-facts table{width:100%;border:1px solid var(--wp--preset--color--line);border-radius:20px;border-collapse:separate;border-spacing:0;overflow:hidden}
.tm-facts td{padding:14px 20px;border:0;border-bottom:1px solid #E4E8EC}
.tm-facts tr:last-child td{border-bottom:0}
.tm-facts td:first-child{font-weight:600;width:150px}
.wp-block-details{border:1px solid var(--wp--preset--color--line);border-radius:18px;padding:18px 22px;margin-block:12px}
.wp-block-details summary{font:600 19px var(--wp--preset--font-family--display);cursor:pointer}
.tm-related{margin-top:72px}

/* Sidebar */
.tm-sidebar{gap:28px}
.tm-sidebar .wp-block-post-author{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.tm-sidebar .wp-block-post-author__avatar img{border-radius:50%}
.tm-sidebar .wp-block-post-author__bio{font-size:15px;margin:6px 0 0}
.tm-sidebar .tm-search{margin:0;max-width:none}
.tm-poplist .wp-block-post-title{margin:0;padding:10px 0;border-top:1px solid #E4E8EC}
.tm-poplist .wp-block-post-title a{text-decoration:none}
.tm-ad{border:2px dashed #B5BEC8;border-radius:20px;min-height:250px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--wp--preset--color--muted);font-size:15px;padding:16px}

/* Footer */
.tm-footer{padding:48px 16px 20px;margin-top:72px}
.tm-footer__top{gap:32px}
.tm-footer .tm-wordmark{color:#fff}
.tm-footer .tm-wordmark a,.tm-footer a{color:inherit;text-decoration:none}
.tm-foot__tag{color:#D9DFE5;font-size:15px;margin:10px 0 0}
.tm-footlinks{display:flex;flex-wrap:wrap;gap:12px 32px;font-size:15px;margin:0}
.tm-footlinks a{color:#D9DFE5}
.tm-footlinks a:hover,.tm-footer .tm-wordmark a:hover{color:var(--wp--preset--color--sun)}
.tm-copy{border-top:1px solid #3E4A56;margin-top:32px;padding-top:20px;font-size:14px;color:#B5BEC8}

@media (max-width:781px){
	.tm-hero{padding:40px 16px}
	.tm-postcols{gap:32px}
}
@media (max-width:480px){
	.tm-search{flex-wrap:wrap}
	.tm-search button{width:100%}
}

/* Contact form */
.tm-form{max-width:640px}
.tm-form label{display:block;font-weight:600;margin-bottom:6px}
.tm-form input[type=text],.tm-form input[type=email],.tm-form textarea{width:100%;box-sizing:border-box;padding:12px 14px;border:1.5px solid var(--wp--preset--color--line,#D5DBE1);border-radius:12px;font:inherit;background:var(--wp--preset--color--base,#fff);color:inherit}
.tm-form input:focus,.tm-form textarea:focus{outline:none;border-color:var(--wp--preset--color--brand,#1F6FDB);box-shadow:0 0 0 3px var(--wp--preset--color--brand-soft,#E6EEFA)}
.tm-form__btn{background:var(--wp--preset--color--brand,#1F6FDB);color:#fff;border:0;border-radius:999px;padding:13px 28px;font:inherit;font-weight:600;cursor:pointer}
.tm-form__btn:hover{filter:brightness(.92)}
.tm-form__ok{background:#E3F5EA;color:#14532D;padding:12px 16px;border-radius:12px}
.tm-form__err{background:#FDE8E8;color:#7F1D1D;padding:12px 16px;border-radius:12px}
