/*
Theme Name: SUMAI
Description: Global home & living editorial theme with calculators and controlled AdSense placements.
Version: 1.0.0
Author: SUMAI
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sumai
License: GNU General Public License v2 or later
*/
:root{--ink:#19342c;--muted:#52685e;--green:#174b3e;--accent:#c5edb2;--paper:#fafaf6;--line:#dce5dd;--white:#fff;--radius:18px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",sans-serif;font-size:16px;line-height:1.7}a{color:var(--green);text-underline-offset:3px}a:hover{color:#086c4e}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c07825;outline-offset:4px}img{max-width:100%;height:auto}button,input,select{font:inherit}h1,h2,h3{line-height:1.18;letter-spacing:-.025em;margin:0 0 .65em}h1{font-size:clamp(2.2rem,5vw,4.1rem)}h2{font-size:clamp(1.55rem,3vw,2.25rem)}h3{font-size:1.2rem}p{margin:0 0 1em} .wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;background:white;padding:12px;z-index:99}.site-header{background:#fff;border-bottom:1px solid var(--line)}.header-row{display:flex;align-items:center;gap:25px;min-height:78px;flex-wrap:wrap}.brand{text-decoration:none;font-size:1.65rem;font-weight:850;letter-spacing:.09em;color:var(--ink);display:flex;align-items:center;gap:9px}.brand svg{width:33px;height:33px}.brand .custom-logo{max-width:160px;max-height:48px;object-fit:contain}.nav{margin-left:auto}.nav ul,.language ul,.footer-nav ul{list-style:none;display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:0;margin:0}.nav a,.language a,.footer-nav a{text-decoration:none;font-weight:650;font-size:.91rem}.language ul{gap:9px}.language a{border:1px solid var(--line);padding:5px 9px;border-radius:8px}.search-form{display:flex;gap:7px;align-items:center}.search-form input[type=search]{min-width:0;width:150px;border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:white}.search-form button,.button{border:0;border-radius:9px;background:var(--green);color:white;padding:11px 17px;display:inline-block;text-decoration:none;font-weight:700;cursor:pointer}.button:hover,.search-form button:hover{background:#0b674c;color:white}.hero{background:var(--green);color:white;overflow:hidden;margin:28px auto 0;border-radius:26px;display:grid;grid-template-columns:1.15fr 1fr;min-height:390px}.hero-copy{padding:clamp(28px,5vw,70px);align-self:center}.eyebrow{font-size:.77rem;font-weight:800;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);margin-bottom:13px}.hero .eyebrow{color:var(--accent)}.hero p{color:#e0eee5;max-width:37em}.hero .button{background:var(--accent);color:#143b2c;margin-top:12px}.hero-art{background:#dae6cd;min-height:260px;display:flex;align-items:stretch}.hero-art svg{width:100%;height:100%;min-height:260px;display:block}.section{padding:42px 0}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:20px}.section-heading h2{margin:0}.section-heading p{color:var(--muted);margin:7px 0 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0}.card-body{padding:22px}.card a{text-decoration:none}.card a:hover{text-decoration:underline}.card p{font-size:.94rem;color:var(--muted);margin-bottom:0}.card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.card .category{font-size:.75rem;font-weight:750;color:#46765d;letter-spacing:.04em;text-transform:uppercase;display:block;margin-bottom:9px}.card .date,.meta{font-size:.82rem;color:var(--muted)}.tool-card{padding:24px;display:flex;flex-direction:column;align-items:start}.tool-icon{background:#e6f2df;color:#23533f;border-radius:12px;width:49px;height:49px;display:grid;place-items:center;margin-bottom:18px;font-size:1.4rem}.tool-card h3{margin-bottom:8px}.tool-card .tool-link{margin-top:15px;font-weight:750}.topics{display:flex;flex-wrap:wrap;gap:10px}.topics a{background:#fff;border:1px solid var(--line);padding:10px 15px;border-radius:100px;text-decoration:none;font-weight:650}.article-layout{display:grid;grid-template-columns:minmax(0,770px) minmax(0,300px);gap:46px;align-items:start;padding-block:42px}.article-layout.no-sidebar{grid-template-columns:minmax(0,800px);justify-content:center}.article h1{font-size:clamp(2rem,4vw,3.2rem)}.article .featured{border-radius:var(--radius);margin:22px 0;display:block;width:100%}.entry-content{font-size:1.08rem;overflow-wrap:anywhere}.entry-content h2{margin-top:1.5em}.entry-content h3{margin-top:1.35em}.entry-content ul,.entry-content ol{padding-left:1.4em}.entry-content table{display:block;overflow:auto;border-collapse:collapse;width:100%}.entry-content td,.entry-content th{padding:10px;border:1px solid var(--line)}.entry-content blockquote{border-left:4px solid #80ad8c;margin:1.5em 0;padding:8px 20px;background:#edf4ea}.entry-content iframe{max-width:100%}.side-box{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:22px;margin-bottom:25px}.side-box ul{padding-left:20px}.ad-unit{margin:40px 0;min-height:280px;text-align:center;max-width:100%;clear:both}.ad-unit .ad-label{display:block;font-size:.72rem;letter-spacing:.05em;color:#6b756e;margin:0 0 8px}.ad-unit ins{min-height:250px}.site-footer{background:#133d32;color:#e0eee5;padding:38px 0;margin-top:32px}.site-footer a{color:#e0eee5}.footer-row{display:flex;justify-content:space-between;gap:26px;flex-wrap:wrap}.footer-note{font-size:.86rem;color:#d0e0d7;max-width:650px;margin:20px 0 0}.pagination{margin:30px 0}.pagination .nav-links{display:flex;gap:10px;flex-wrap:wrap}.page-numbers{padding:8px 12px;background:white;border:1px solid var(--line);border-radius:7px}.calculator{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin:20px 0;scroll-margin-top:20px}.calculator h3{font-size:1.45rem}.calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.calc-fields label{font-size:.91rem;font-weight:650;display:flex;flex-direction:column;gap:5px}.calc-fields input,.calc-fields select{width:100%;border:1px solid #aabdb0;background:#fff;border-radius:8px;padding:10px;color:var(--ink)}.calc-result{display:block;background:#eaf4e4;padding:16px;border-radius:10px;margin-top:16px;font-size:1.25rem;font-weight:750;overflow-wrap:anywhere}.calc-note{font-size:.85rem;color:var(--muted);margin:13px 0 0}.notice{border:1px solid var(--line);border-radius:12px;padding:20px;background:#fff}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto;width:auto;height:auto;background:white;z-index:100}.wp-block-image figcaption{font-size:.85rem;color:var(--muted)}@media(max-width:900px){.header-row{gap:12px;padding-block:14px}.nav{order:3;width:100%;margin:0}.nav ul{gap:16px}.language{margin-left:auto}.hero{grid-template-columns:1fr 0.85fr}.article-layout{grid-template-columns:minmax(0,1fr);gap:22px}.sidebar{display:block}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.wrap{width:calc(100% - 28px)}.hero{grid-template-columns:1fr;margin-top:16px}.hero-copy{padding:28px 24px}.hero-art{min-height:190px;max-height:220px}.hero-art svg{min-height:190px}.section{padding:28px 0}.grid{grid-template-columns:1fr;gap:12px}.tool-card{padding:19px}.calc-fields{grid-template-columns:1fr}.article-layout{padding-block:28px}.header-row .search-form{width:100%;order:4}.header-row .search-form input[type=search]{flex:1;width:auto}.nav ul{gap:12px}.nav a{font-size:.84rem}.ad-unit{margin:38px 0}.section-heading{align-items:start;flex-direction:column}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.calc-result[hidden]{display:none}.entry-content .ad-unit{margin-block:42px}.custom-logo-link{display:block}.custom-logo-link img{max-width:160px;max-height:48px;object-fit:contain}.tool-link{display:inline-block;padding-block:5px}
