/*
Theme Name: Chico Editorial
Template: pulitzer
Version: 0.2.4
Description: Revista de autor com portfólio integrado.
Text Domain: chico-editorial
*/
body.home .wp-site-blocks {padding-top:0;}
body.home .wp-site-blocks > header {padding-block:12px !important;}
body.home .wp-site-blocks > main.chico-main {width:100%;max-width:none !important;margin:0 !important;padding:0 !important;}
body.home .chico-main > .wp-block-shortcode {width:100%;max-width:none !important;margin:0 !important;}
.chico-home {box-sizing:border-box;width:100%;max-width:1100px !important;margin:0 auto !important;padding:16px clamp(16px,3vw,32px) 32px;background:#f7f5ef;color:#242424;font:15px/1.5 system-ui,sans-serif;}
.chico-home * {box-sizing:border-box;}
.chico-home a {color:inherit;text-decoration:none;}
.chico-home a:hover {text-decoration:underline;}
.chico-home a:focus-visible {outline:2px solid #923b2c;outline-offset:3px;}
.chico-home h1,.chico-home h2,.chico-home h3 {font-family:Georgia,serif;line-height:1.22;letter-spacing:normal;margin:0 0 8px;}
.chico-home h1 {font-size:clamp(23px,2.4vw,32px) !important;}
.chico-home h2 {font-size:23px !important;}
.chico-home h3 {font-size:18px !important;}
.chico-home p {font-size:14px;line-height:1.5;margin:6px 0;}
.chico-home section {border-top:1px solid #aaa59b;padding:12px 0 16px;margin:0;}
.chico-kicker {font:600 11px/1.4 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#923b2c;margin-bottom:8px;}
.chico-home article.chico-lead {display:grid !important;grid-template-columns:minmax(0, 38fr) minmax(0, 62fr);align-items:center;gap:24px;width:100%;max-width:none !important;margin:0 !important;}
.chico-home article.chico-lead-no-image {grid-template-columns:minmax(0,1fr);}
.chico-home .chico-lead-image,.chico-home .chico-lead-copy {display:block;min-width:0;width:100%;max-width:none !important;margin:0 !important;}
.chico-home .chico-lead-image img {display:block;width:auto !important;height:auto !important;max-width:100%;max-height:230px;object-fit:contain;margin:0 auto;}
.chico-home .chico-lead-copy {overflow-wrap:anywhere;}
.chico-home .chico-meta {font:12px/1.4 system-ui,sans-serif;color:#555;margin:6px 0;}
.chico-home .chico-more {display:inline-block;font-size:13px;color:#923b2c;text-decoration:underline;text-underline-offset:3px;margin-top:5px;}
.chico-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.chico-grid article {min-width:0;margin:0;}
.chico-grid img {display:block;width:auto;max-width:100%;height:auto;max-height:100px;object-fit:contain;margin:0 0 6px;}
.chico-grid p:not(.chico-meta) {font-size:13px;}
.chico-links {display:flex;gap:12px;flex-wrap:wrap;}
@media(max-width:850px){.chico-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.chico-home article.chico-lead{grid-template-columns:minmax(0,1fr);gap:12px;}.chico-home .chico-lead-image img{max-height:200px;}.chico-home h1{font-size:25px !important;}.chico-grid{gap:12px;}}
@media(max-width:380px){.chico-grid{grid-template-columns:1fr;}}

/* Explicit placement prevents stray generated nodes from shifting the lead. */
.chico-home article.chico-lead {grid-template-columns:minmax(0, 36fr) minmax(0,64fr) !important; grid-template-rows:auto !important; gap:20px !important;}
.chico-home .chico-lead-media {grid-column:1 !important;grid-row:1 !important;min-width:0; width:100%;margin:0 !important;}
.chico-home .chico-lead-copy {grid-column:2 !important;grid-row:1 !important;align-self:center;}
.chico-home .chico-lead-no-image .chico-lead-copy {grid-column:1/-1 !important;}
.chico-home article.chico-lead > br,.chico-home article.chico-lead > p:empty {display:none !important;}
.chico-home h1 {font-size:clamp(22px,2.1vw,29px) !important;}
.chico-home .chico-lead-image img {max-height:210px;}
.chico-home .chico-portfolio-card {border:1px solid #c8c3b8;padding:14px;background:#fffdf8;display:flex;flex-direction:column;gap:4px;}
.chico-home .chico-portfolio-card .chico-more {margin-top:auto;}
.chico-home .chico-card-photo img {width:100%;height:105px;max-height:none;object-fit:contain;}
@media(max-width:600px){.chico-home article.chico-lead{grid-template-columns:minmax(0,1fr) !important;gap:12px !important;}.chico-home .chico-lead-copy{grid-column:1 !important;grid-row:2 !important;}.chico-home .chico-lead-no-image .chico-lead-copy{grid-row:1 !important;}}

.chico-footer {margin:0 !important;padding:0 !important;background:#f7f5ef;color:#242424;}
.chico-author {box-sizing:border-box;max-width:1100px;margin:0 auto;padding:18px clamp(16px,3vw,32px) 24px;display:grid;grid-template-columns:1fr 3fr;gap:20px;border-top:1px solid #aaa59b;font:14px/1.5 system-ui,sans-serif;}
.chico-author h2,.chico-author h3 {font:normal 20px/1.3 Georgia,serif;margin:0 0 6px;}
.chico-author h3 {font-size:18px;font-weight:bold;}
.chico-author p {margin:0 0 8px;}
.chico-author nav {display:flex;gap:14px;flex-wrap:wrap;}
.chico-author a {color:#923b2c;font-size:13px;}
@media(max-width:600px){.chico-author{grid-template-columns:1fr;gap:8px;}}

.chico-home section.chico-portfolio {background:#e6e9e6;margin:0 calc(-1 * clamp(16px,3vw,32px));padding:16px clamp(16px,3vw,32px) 20px;}
.chico-home .chico-portfolio-card {background:#f8f9f7;}
.chico-home {padding-bottom:0;}
.chico-footer,.chico-author {background:#e9e3d8 !important;}
.chico-archive {max-width:1100px;margin:0 auto;padding:24px clamp(16px,3vw,32px);background:#f7f5ef;}
.chico-archive h1 {font-size:30px;}
.chico-archive .chico-grid {row-gap:24px;}
.chico-archive .chico-pagination {margin-top:24px;}

/* Amarelo-ovo + violeta — identidade editorial 0.2.0. */
.chico-home,.chico-archive {background:#faf9f6;color:#222222;}
.chico-home section {border-top-color:#d8d4cf;}
.chico-home a:focus-visible {outline-color:#5634cb;}
.chico-home .chico-kicker,.chico-home .chico-more {color:#c32b50;}
.chico-home h2 {color:#222222;}
.chico-home section.chico-portfolio {background:#ffcc00;color:#222222;border-top:3px solid #5634cb;}
.chico-home .chico-portfolio .chico-kicker {color:#222222;}
.chico-home .chico-portfolio-card {background:#ffffff;color:#222222;border:1px solid #d8b000;border-top:4px solid #5634cb;}
.chico-home .chico-portfolio-card:nth-child(2) {border-top-color:#c32b50;}
.chico-home .chico-portfolio-card:nth-child(3) {border-top-color:#5634cb;}
.chico-home .chico-portfolio-card:nth-child(4) {border-top-color:#c32b50;}
.chico-home .chico-portfolio-card .chico-more {color:#5634cb;}
.chico-footer,.chico-author {background:#5634cb !important;color:#ffffff !important;}
.chico-author {border-top:3px solid #ffcc00;}
.chico-author h2,.chico-author h3,.chico-author p,.chico-author a {color:#ffffff !important;}
.chico-author a {text-decoration:underline;text-underline-offset:3px;}
.chico-author a:focus-visible {outline:2px solid #ffcc00;outline-offset:3px;}
.chico-archive .chico-grid article {border-top:2px solid #d8d4cf;padding-top:10px;}
.chico-archive .chico-grid article:nth-child(4n+1) {border-top-color:#5634cb;}
.chico-archive .chico-grid article:nth-child(4n+2) {border-top-color:#ffcc00;}
.chico-archive .chico-grid article:nth-child(4n+3) {border-top-color:#c32b50;}
.chico-archive .chico-grid article:nth-child(4n+4) {border-top-color:#5634cb;}
.chico-archive .chico-grid img {max-height:115px;}

/* Compact editorial artwork, separate from the existing title and menu. */
.chico-header-art {width:100%;max-width:none!important;margin:0!important;background:#5634cb;overflow:hidden;border-bottom:3px solid #ffcc00;}
.chico-header-art img {display:block;width:100%;height:clamp(100px,13vw,170px);object-fit:cover;object-position:center; margin:0!important;}
@media(max-width:600px){.chico-header-art img{height:105px;}}

/* Shared outer editorial width, including artwork and footer. */
.wp-site-blocks > header, .wp-site-blocks > footer, .chico-header-art, .chico-footer, .chico-home, .chico-archive {
 box-sizing:border-box; width:100% !important; max-width:1100px !important; margin-inline:auto !important;
}
.wp-site-blocks > header, .wp-site-blocks > footer {padding-inline:0 !important;}
.wp-site-blocks > header .alignfull, .wp-site-blocks > footer .alignfull {width:100% !important; max-width:100% !important; margin-inline:0 !important;}
.chico-footer .chico-author {width:100%; box-sizing:border-box;}

/* Thumbnail crops: fill the existing compact image slots without distortion. */
.chico-home .chico-lead-media .chico-lead-image {display:block;overflow:hidden;width:100%;}
.chico-home .chico-lead-media .chico-lead-image img {display:block;width:100% !important;height:210px !important;max-width:100% !important;max-height:none !important;object-fit:cover !important;object-position:center;margin:0 !important;}
.chico-home .chico-grid article img {display:block;width:100% !important;height:100px !important;max-width:100% !important;max-height:none !important;object-fit:cover !important;object-position:center;margin:0 0 6px !important;}
.chico-home.chico-archive .chico-grid article img {height:115px !important;}
.chico-home .chico-grid .chico-portfolio-card .chico-card-photo img {height:105px !important;}
@media(max-width:600px){.chico-home .chico-lead-media .chico-lead-image img {height:200px !important;}}

/* Compact editorial navigation and headline typography. */
.chico-header-art {display:block;}
.chico-header-art img {height:clamp(105px,16vw,185px);object-position:center;}
.chico-nav {box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 22px;padding:5px 12px;margin:0 auto!important;max-width:1100px;width:100%;background:#fff;color:#222;border-bottom:1px solid #ddd;font:600 14px/1.3 system-ui,sans-serif;}
.chico-nav a {color:#222;text-decoration:none;white-space:nowrap;}
.chico-nav a:hover {color:#c32b50;text-decoration:underline;}
.chico-search {display:flex;align-items:center;gap:3px;margin:0;}
.chico-search input {box-sizing:border-box;width:95px;min-width:0;padding:3px 5px;border:1px solid #ccc;background:white;color:#222;font:inherit;}
.chico-search button {display:flex;align-items:center;background:none;color:#222;border:0;padding:3px;cursor:pointer;}
.chico-home h1,.chico-home h2,.chico-home h3,.wp-block-post-title,.chico-author h2,.chico-author h3 {font-family:'Bricolage Grotesque',system-ui,sans-serif!important;font-weight:700!important;letter-spacing:-.025em;line-height:1.15;}
@media(max-width:600px){.chico-nav{gap:8px 14px;font-size:13px;padding:8px;}.chico-header-art img{height:auto;aspect-ratio:3/1;object-fit:cover;}}
