/*
Theme Name: Thrifty Skillet
Theme URI: https://thriftyskillet.com/
Description: A fast, accessible Full Site Editing child theme for a budget recipe blog.
Author: The Thrifty Skillet
Author URI: https://thriftyskillet.com/
Template: twentytwentyfive
Version: 2.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: thrifty-skillet
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{--ts-primary:#0F6E4C;--ts-primary-dark:#0A4F37;--ts-cream:#E4F0EA;--ts-offwhite:#FAFAF7;--ts-border:#DDE0DC;--ts-border-soft:#E8EAE7;--ts-text:#18202A;--ts-muted:#5A6472}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{color:var(--ts-text);background:#fff;text-rendering:optimizeLegibility;font-variant-numeric:tabular-nums}
h1,h2,h3,h4{font-stretch:82%;font-weight:750;letter-spacing:-.018em;text-wrap:balance}
a{color:var(--ts-primary);text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{color:var(--ts-primary-dark)}
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{outline:3px solid var(--ts-primary);outline-offset:3px;border-radius:4px}
.wp-site-blocks{overflow-x:clip}
main{min-height:55vh}
.entry-content>p,.entry-content>ul,.entry-content>ol,.entry-content>blockquote,.entry-content>h2,.entry-content>h3,.entry-content>h4,.entry-content>.wp-block-group:not(.alignwide):not(.alignfull){max-width:68ch;margin-inline:auto}
.entry-content>.wp-block-table{max-width:min(100%,50rem);margin-inline:auto}
.entry-content h2{position:relative;margin-top:2.5em;padding-bottom:.45em}
.entry-content h2::after{content:"";position:absolute;left:0;bottom:0;width:3.25rem;border-bottom:2px solid var(--ts-primary)}
.entry-content li+li{margin-top:.45em}
.ts-category-pill,.taxonomy-category a{display:inline-block;padding:.25rem .6rem;border-radius:4px;background:var(--ts-cream);color:var(--ts-primary-dark);font-size:.85rem;font-weight:600;text-decoration:none}
.ts-byline{color:var(--ts-muted);font-size:.94rem}
.ts-byline .avatar{border-radius:50%}
.ts-card{height:100%;background:#fff;border:1px solid var(--ts-border);border-radius:8px;overflow:hidden}
.ts-card .wp-block-post-featured-image{margin:0}
.ts-card .wp-block-post-featured-image img{width:100%;aspect-ratio:4/3;object-fit:cover}
.ts-card-body{padding:1.15rem}
.ts-card .wp-block-post-title{margin-top:0;font-size:clamp(1.2rem,2vw,1.55rem)}
.ts-card .wp-block-post-excerpt{color:var(--ts-muted);font-size:1rem}
.ts-category-grid .wp-block-cover{min-height:220px;border-radius:8px;overflow:hidden}
.ts-category-grid .wp-block-cover__background{opacity:.42!important}
.ts-category-grid a{color:#fff;font-family:var(--wp--preset--font-family--heading);font-size:1.35rem;font-weight:700;text-decoration:none;text-shadow:0 1px 2px rgba(0,0,0,.55)}
.ts-brand-mark{width:56px;height:56px;flex:0 0 56px;background:url("assets/images/skillet.svg") center/contain no-repeat}
.ts-author-visual{min-height:320px;border-radius:8px;background:var(--ts-cream) url("assets/images/skillet-hero.svg") center/78% auto no-repeat}
.ts-category-grid .wp-block-cover{background-color:var(--ts-primary);background-position:center;background-size:cover}
.ts-cat--under{background-image:url("assets/images/under-10.svg")}
.ts-cat--quick{background-image:url("assets/images/quick.svg")}
.ts-cat--onepan{background-image:url("assets/images/one-pan.svg")}
.ts-cat--pantry{background-image:url("assets/images/pantry.svg")}
.ts-cat--chicken{background-image:url("assets/images/chicken.svg")}
.ts-cat--seasonal{background-image:url("assets/images/seasonal.svg")}
.ts-image-slot{display:grid;place-items:center;min-height:240px;padding:1rem;border:2px dashed var(--ts-border);border-radius:8px;background:var(--ts-offwhite);color:var(--ts-muted);text-align:center}
.ts-tip{padding:1.1rem 1.25rem;background:var(--ts-cream);border-left:5px solid var(--ts-primary);border-radius:0 8px 8px 0}
.ts-tip>:first-child{margin-top:0}.ts-tip>:last-child{margin-bottom:0}
.ts-ad-slot{display:grid;place-items:center;min-height:280px;margin-block:2rem;background:#fafafa;border:1px dashed var(--ts-border);color:var(--ts-muted);font-size:.8rem}
.ts-ad-slot--leaderboard{min-height:100px}.ts-ad-slot--sidebar{min-height:600px}.ts-ad-slot--below-post{min-height:280px}

/* Signature cost table: columns remain readable on phones without horizontal scrolling. */
.wp-block-table.is-style-thrifty-cost-table{overflow:visible;border:1px solid var(--ts-border);border-radius:8px;background:var(--ts-offwhite)}
.is-style-thrifty-cost-table table{width:100%;border-collapse:collapse;margin:0;background:var(--ts-offwhite);font-size:1rem;font-variant-numeric:tabular-nums}
.is-style-thrifty-cost-table th{padding:.75rem;background:var(--ts-primary);color:#fff;border-color:rgba(255,255,255,.22);font-size:.9rem;font-weight:600;font-stretch:90%;text-align:left}
.is-style-thrifty-cost-table td{padding:.75rem;border-color:var(--ts-border);vertical-align:top}
.is-style-thrifty-cost-table tbody tr:nth-last-child(2){background:var(--ts-cream);font-weight:600}
.is-style-thrifty-cost-table tbody tr:last-child{background:var(--ts-primary);color:#fff}
.is-style-thrifty-cost-table tbody tr:last-child td{border-color:rgba(255,255,255,.2);font-size:1.35rem;font-weight:750;font-stretch:88%;padding-top:.9rem;padding-bottom:.9rem}
.is-style-thrifty-cost-table tbody tr:last-child strong{font-weight:750}
.is-style-thrifty-cost-table th:first-child{border-top-left-radius:10px}.is-style-thrifty-cost-table th:last-child{border-top-right-radius:10px}
@media(max-width:820px){
 .is-style-thrifty-cost-table table,.is-style-thrifty-cost-table thead,.is-style-thrifty-cost-table tbody,.is-style-thrifty-cost-table tr,.is-style-thrifty-cost-table th,.is-style-thrifty-cost-table td{display:block;width:100%}
 .is-style-thrifty-cost-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
 .is-style-thrifty-cost-table tr{display:block;padding:.35rem 0;border-bottom:1px solid var(--ts-border)}
 .is-style-thrifty-cost-table tr:last-child{border-bottom:0}
 .is-style-thrifty-cost-table td{display:grid;grid-template-columns:minmax(6.5rem,.85fr) minmax(0,1.15fr);gap:.75rem;align-items:baseline;padding:.45rem .8rem;border:0}
 .is-style-thrifty-cost-table td.ts-cell-empty{display:none}
 .is-style-thrifty-cost-table td::before{content:attr(data-label);font-size:.82rem;font-weight:500;color:var(--ts-muted)}
 .is-style-thrifty-cost-table tbody tr:last-child td::before{color:rgba(255,255,255,.75)}
 .is-style-thrifty-cost-table tr:last-child{border-bottom:0}
 .is-style-thrifty-cost-table tbody tr:last-child,.is-style-thrifty-cost-table tbody tr:nth-last-child(2){border-radius:8px}
}
@media(min-width:821px){.wp-block-table.is-style-thrifty-cost-table{overflow-x:auto;-webkit-overflow-scrolling:touch}}

/* MOTION_INTENSITY 4: card feedback on hover only. Disabled under prefers-reduced-motion below. */
.ts-card{transition:transform .22s ease,border-color .22s ease}
.ts-card:hover{transform:translateY(-3px);border-color:var(--ts-border)}
.ts-card .wp-block-post-featured-image img{transition:transform .35s ease}
.ts-card:hover .wp-block-post-featured-image img{transform:scale(1.03)}
.ts-card:focus-within{border-color:var(--ts-primary)}

/* WP Recipe Maker: presentation only; never hide or alter recipe data/schema elements. */
.wprm-recipe-container,.wprm-recipe-template-thrifty-skillet{padding:clamp(1rem,3vw,2rem)!important;background:var(--ts-offwhite)!important;border:1px solid var(--ts-border)!important;border-radius:8px!important}
.wprm-recipe-container .wprm-recipe-name,.wprm-recipe-container .wprm-recipe-header{color:var(--ts-primary-dark)!important}
.wprm-recipe-container .wprm-recipe-instruction-text,.wprm-recipe-container .wprm-recipe-ingredient{line-height:1.65}
.wprm-recipe-container .wprm-recipe-jump,.wprm-recipe-container .wprm-recipe-print,.wprm-recipe-container .wprm-recipe-button{background:var(--ts-primary)!important;color:#fff!important;border-radius:8px!important}
.wprm-recipe-container .wprm-recipe-jump:hover,.wprm-recipe-container .wprm-recipe-print:hover,.wprm-recipe-container .wprm-recipe-button:hover{background:var(--ts-primary-dark)!important}

/* Contact Form 7 */
.wpcf7-form label{display:block;font-weight:700;color:var(--ts-text)}
.wpcf7-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),.wpcf7-form textarea,.wpcf7-form select{width:100%;margin-top:.35rem;padding:.75rem .85rem;background:#fff;color:var(--ts-text);border:1px solid var(--ts-border);border-radius:8px;font:inherit}
.wpcf7-form textarea{min-height:10rem;resize:vertical}
.wpcf7-form input[type=submit]{padding:.75rem 1.2rem;background:var(--ts-primary);color:#fff;border:2px solid var(--ts-primary);border-radius:8px;font:inherit;font-weight:700;cursor:pointer}
.wpcf7-form input[type=submit]:hover{background:var(--ts-primary-dark);border-color:var(--ts-primary-dark)}
.wpcf7-not-valid-tip{color:#8a1c10}.wpcf7-response-output{margin-inline:0!important;padding:.8rem 1rem!important;border-radius:8px}

@media(max-width:781px){.wp-block-post-template.is-layout-grid{grid-template-columns:1fr!important}.wp-block-site-logo img{max-width:54px}.ts-category-grid .wp-block-cover{min-height:170px}.ts-card-body{padding:1rem}.ts-ad-slot--sidebar{min-height:280px}.ts-author-visual{min-height:240px}.ts-brand-mark{width:46px;height:46px;flex-basis:46px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
@media print{
 @page{margin:12mm}
 body{font-size:11pt;line-height:1.4;color:#000;background:#fff}
 header,footer,.wp-block-navigation,.wprm-recipe-jump,.wprm-recipe-print,.ts-ad-slot,.wp-block-post-navigation-link,.wp-block-comments,.wpcf7,.newsletter-signup{display:none!important}
 main,.entry-content,.wprm-recipe-container{max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important}
 h1,h2,h3{break-after:avoid}.wprm-recipe-instruction,.wprm-recipe-ingredient,.is-style-thrifty-cost-table tr{break-inside:avoid}
 .wp-block-post-featured-image,.entry-content figure:not(.is-style-thrifty-cost-table){display:none}
 a{color:#000;text-decoration:none}
}
