/* Temmy homepage styles + page designs. Colors/fonts come from CSS variables set in Customizer. */
.temmy-home,.temmy-page{font-family:var(--temmy-body-font);color:var(--temmy-text);background:var(--temmy-bg)}
.temmy-home *,.temmy-page *{box-sizing:border-box}
.temmy-wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.temmy-home a,.temmy-page__content a{color:var(--temmy-link)}
.temmy-btn{display:inline-block;background:var(--temmy-accent);color:var(--temmy-btn-text)!important;padding:12px 26px;border-radius:999px;font-weight:600;text-decoration:none;transition:background-color .2s}
.temmy-btn:hover{background:var(--temmy-accent-hover);text-decoration:none}

/* ---- Intro ---- */
.temmy-intro{background:var(--temmy-tint);padding:72px 0 64px;border-bottom:1px solid rgba(128,128,128,.2)}
.temmy-intro__title{font-size:clamp(30px,5vw,52px);margin:0 0 14px;max-width:18ch}
.temmy-intro__text{font-size:1.15em;max-width:56ch;margin:0 0 26px}

/* ---- Cards ---- */
.temmy-card{background:var(--temmy-card-bg);border:1px solid rgba(128,128,128,.22);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;height:100%}
.temmy-card__media{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--temmy-tint)}
.temmy-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.temmy-card:hover .temmy-card__media img{transform:scale(1.03)}
.temmy-card__ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--temmy-accent),var(--temmy-footer-bg));opacity:.85}
.temmy-card__body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.temmy-card__cat{color:var(--temmy-accent);font-weight:700;font-size:14px}
.temmy-card__title{margin:0;font-size:21px}
.temmy-card__title a{text-decoration:none}
.temmy-card__excerpt{margin:0;opacity:.9}
.temmy-card__date{font-size:13px;opacity:.7;margin-top:auto}

/* Overlay cards (hero + spotlight) */
.temmy-card--hero,.temmy-card--spot{position:relative;border:0;min-height:420px;justify-content:flex-end}
.temmy-card--hero .temmy-card__media,.temmy-card--spot .temmy-card__media{position:absolute;inset:0;aspect-ratio:auto;height:100%}
.temmy-card--hero .temmy-card__body,.temmy-card--spot .temmy-card__body{position:relative;z-index:1;flex:0;padding:90px 32px 32px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff}
.temmy-card--hero .temmy-card__title,.temmy-card--hero .temmy-card__title a,.temmy-card--spot .temmy-card__title,.temmy-card--spot .temmy-card__title a{color:#fff!important}
.temmy-card--hero .temmy-card__title,.temmy-card--spot .temmy-card__title{font-size:clamp(26px,3.4vw,40px)}
.temmy-card--hero .temmy-card__cat,.temmy-card--spot .temmy-card__cat{color:var(--temmy-accent)}
.temmy-card--hero .temmy-card__date,.temmy-card--spot .temmy-card__date{color:#fff}
.temmy-card--spot{min-height:480px}

/* ---- Style 1: hero + grid ---- */
.temmy-section-title{font-size:clamp(22px,3vw,30px);margin:48px 0 24px;padding-left:14px;border-left:5px solid var(--temmy-accent)}
.temmy-home--3 .temmy-spot{margin:40px 0 8px}
.temmy-hero{display:grid;grid-template-columns:2fr 1fr;gap:24px;margin-bottom:28px}
.temmy-hero__side{display:grid;grid-template-rows:1fr 1fr;gap:24px}
.temmy-card--side{flex-direction:row}
.temmy-card--side .temmy-card__media{width:42%;aspect-ratio:auto;flex:none}
.temmy-card--side .temmy-card__title{font-size:18px}
.temmy-grid{display:grid;gap:24px}
.temmy-grid--3{grid-template-columns:repeat(3,1fr)}

/* ---- Style 2: feed ---- */
.temmy-feed{display:flex;flex-direction:column;gap:22px;max-width:920px}
.temmy-card--row{flex-direction:row;height:auto}
.temmy-card--row .temmy-card__media{width:300px;aspect-ratio:auto;flex:none;min-height:190px}
.temmy-card--row .temmy-card__title{font-size:24px}

/* ---- Style 3: category rows ---- */
.temmy-row{margin:56px 0}
.temmy-row__head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid var(--temmy-accent);margin-bottom:22px;padding-bottom:8px}
.temmy-row__head h2{margin:0;font-size:26px}
.temmy-row__head a{font-weight:600;text-decoration:none}

/* ---- Pager ---- */
.temmy-pager{margin:40px 0 64px}
.temmy-pager ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.temmy-pager a,.temmy-pager span{display:block;padding:8px 14px;border:1px solid rgba(128,128,128,.3);border-radius:8px;text-decoration:none}
.temmy-pager .current{background:var(--temmy-accent);border-color:var(--temmy-accent);color:var(--temmy-btn-text)}
.temmy-home .temmy-wrap{padding-bottom:24px}

/* ================= PAGE DESIGNS ================= */
.temmy-page__title{margin:0 0 12px}
.temmy-page__lede{font-size:1.2em;margin:0 0 8px;opacity:.85}
.temmy-page__content{overflow-wrap:break-word}
.temmy-page__content img{max-width:100%;height:auto}
.temmy-page__comments{max-width:760px;margin:40px auto 0}
.temmy-page--full .temmy-wrap{max-width:100%}

/* Clean */
.temmy-page--clean{padding:64px 0 80px}
.temmy-page--clean .temmy-page__inner{max-width:760px;margin:0 auto}
.temmy-page--clean .temmy-page__head{margin-bottom:36px}
.temmy-page--clean .temmy-page__head::after{content:"";display:block;width:56px;height:4px;background:var(--temmy-accent);margin-top:20px}
.temmy-page--clean .temmy-page__head[style*="center"]::after{margin-left:auto;margin-right:auto}
.temmy-page--clean .temmy-page__head[style*="right"]::after{margin-left:auto}

/* Card */
.temmy-page--card{background:var(--temmy-tint);padding:56px 0 80px}
.temmy-page--card .temmy-page__inner{max-width:840px;margin:0 auto;background:var(--temmy-card-bg);border:1px solid rgba(128,128,128,.2);border-radius:16px;padding:clamp(24px,5vw,56px);box-shadow:0 18px 40px -22px rgba(0,0,0,.35)}
.temmy-page--card .temmy-page__head{margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid rgba(128,128,128,.25)}

/* Banner */
.temmy-page--banner .temmy-page__banner{background:var(--temmy-footer-bg) center/cover no-repeat;border-bottom:5px solid var(--temmy-accent);padding:clamp(56px,10vw,110px) 0}
.temmy-page--banner .temmy-page__banner .entry-title,.temmy-page--banner .temmy-page__banner .temmy-page__lede{color:var(--temmy-footer-heading)!important}
.temmy-page--banner .temmy-page__title{font-size:clamp(32px,6vw,58px);max-width:20ch;margin-left:auto;margin-right:auto}
.temmy-page--banner .temmy-page__banner .temmy-wrap[style*="left"] .temmy-page__title{margin-left:0}
.temmy-page--banner .temmy-page__lede{max-width:56ch;margin-left:auto;margin-right:auto}
.temmy-page--banner .temmy-page__banner .temmy-wrap[style*="left"] .temmy-page__lede{margin-left:0}
.temmy-page--banner .temmy-page__inner{max-width:760px;margin:0 auto;padding:56px 0 80px}

/* Editorial */
.temmy-page--editorial{padding:64px 0 90px}
.temmy-page--editorial .temmy-page__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:clamp(32px,6vw,80px);align-items:start}
.temmy-page--editorial .temmy-page__side{position:sticky;top:110px;border-top:4px solid var(--temmy-accent);padding-top:20px}
.temmy-page--editorial .temmy-page__title{font-size:clamp(30px,4vw,46px)}
.temmy-page--editorial .temmy-page__content{max-width:70ch}
.temmy-page--editorial .temmy-page__content>p:first-of-type::first-letter{font-family:var(--temmy-heading-font);font-size:3.4em;line-height:.9;float:left;padding:6px 10px 0 0;color:var(--temmy-accent)}

/* ---- Responsive ---- */
@media (max-width:900px){
	.temmy-grid--3{grid-template-columns:repeat(2,1fr)}
	.temmy-hero{grid-template-columns:1fr}
	.temmy-hero__side{grid-template-rows:none;grid-template-columns:1fr 1fr}
	.temmy-card--side{flex-direction:column}
	.temmy-card--side .temmy-card__media{width:100%;aspect-ratio:16/10}
	.temmy-page--editorial .temmy-page__grid{grid-template-columns:1fr}
	.temmy-page--editorial .temmy-page__side{position:static}
}
@media (max-width:600px){
	.temmy-wrap{padding:0 18px}
	.temmy-grid--3,.temmy-hero__side{grid-template-columns:1fr}
	.temmy-card--row{flex-direction:column}
	.temmy-card--row .temmy-card__media{width:100%;aspect-ratio:16/10;min-height:0}
	.temmy-card--hero,.temmy-card--spot{min-height:340px}
	.temmy-card--hero .temmy-card__body,.temmy-card--spot .temmy-card__body{padding:70px 20px 22px}
}
@media (prefers-reduced-motion:reduce){.temmy-card__media img,.temmy-btn{transition:none}}

/* ================= LIST DESIGN (category page + homepage style 4) ================= */
.temmy-cat{font-family:var(--temmy-body-font);color:var(--temmy-text);background:var(--temmy-bg);padding-bottom:24px}
.temmy-cat *{box-sizing:border-box}
.temmy-cat__head{padding:48px 0 8px}
.temmy-cat__title{margin:0 0 8px;font-size:clamp(28px,5vw,44px)}
.temmy-cat__desc{max-width:62ch;opacity:.9}
.temmy-cat__desc p{margin:0 0 8px}
.temmy-cat__count{font-size:14px;opacity:.7}
.temmy-rule{position:relative;height:4px;background:rgba(128,128,128,.25);margin:28px 0 34px;border-radius:4px}
.temmy-rule::before{content:"";position:absolute;left:0;top:0;height:100%;width:120px;max-width:40%;background:var(--temmy-accent);border-radius:4px}
.temmy-list{display:grid;grid-template-columns:1fr;gap:32px}
.temmy-li{display:grid;grid-template-columns:minmax(104px,36%) 1fr;gap:20px;align-items:start}
.temmy-li__media{display:block;aspect-ratio:1.47/1;border-radius:26px;overflow:hidden;background:var(--temmy-tint)}
.temmy-li__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.temmy-li:hover .temmy-li__media img{transform:scale(1.04)}
.temmy-li__title{margin:0 0 10px;font-size:clamp(17px,2.3vw,24px);line-height:1.35}
.temmy-li__title a{text-decoration:none}
.temmy-li__time{display:flex;align-items:center;gap:7px;font-size:15px;color:#6b7280}
.temmy-li__time svg{flex:none}
@media (min-width:1000px){.temmy-list{grid-template-columns:1fr 1fr;gap:36px 48px}}
@media (prefers-reduced-motion:reduce){.temmy-li__media img{transition:none}}

/* ================= ROUNDED FOXIZ (category page + homepage style 5) ================= */
body.temmy-rounded main img,
body.temmy-rounded #main img,
body.temmy-rounded .site-main img{border-radius:var(--temmy-radius)}
body.temmy-rounded .page-numbers,
body.temmy-rounded .pagination a,
body.temmy-rounded .p-categories a,
body.temmy-rounded .cat-info a,
body.temmy-rounded button,
body.temmy-rounded .button,
body.temmy-rounded input[type=submit],
body.temmy-rounded input[type=search],
body.temmy-rounded input[type=text]{border-radius:999px}

/* ================= SOFT CARDS (homepage style 6, category/archive "cards", soft pages) ================= */
.temmy-home--6,.temmy-cat--cards,.temmy-page--soft{background:var(--temmy-tint)}
.temmy-home--6 .temmy-wrap{padding-top:8px}
.temmy-pc-list{display:grid;grid-template-columns:1fr;gap:22px;padding:8px 0 8px}
.temmy-pc{display:grid;grid-template-columns:minmax(108px,34%) 1fr;gap:20px;align-items:start;background:var(--temmy-card-bg);border:1px solid rgba(128,128,128,.16);border-radius:calc(var(--temmy-radius) * 1.7);padding:clamp(14px,3.5vw,26px) clamp(14px,3.5vw,26px) clamp(28px,5vw,44px);box-shadow:0 1px 0 rgba(0,0,0,.02),0 14px 30px -24px rgba(0,0,0,.35)}
.temmy-pc__thumb{display:block;border:2px solid rgba(128,128,128,.28);border-radius:calc(var(--temmy-radius) * .9);overflow:hidden;padding-bottom:9px;background:var(--temmy-card-bg)}
.temmy-pc__thumb img,.temmy-pc__thumb .temmy-card__ph{display:block;width:100%;aspect-ratio:1.28/1;height:auto;object-fit:cover;border-radius:calc(var(--temmy-radius) * .9) calc(var(--temmy-radius) * .9) 6px 6px}
.temmy-pc__main{min-width:0}
.temmy-pc__pill{display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:5px 22px 5px 5px;border-radius:999px;border:1px solid rgba(128,128,128,.25);background:rgba(128,128,128,.1);background:color-mix(in srgb,var(--temmy-accent) 9%,transparent);border-color:color-mix(in srgb,var(--temmy-accent) 16%,transparent);color:var(--temmy-accent)!important;font-weight:700;font-size:15px;text-decoration:none!important;line-height:1.2;margin-bottom:16px}
.temmy-pc__pill>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.temmy-pc__ico{display:inline-grid;place-items:center;width:38px;height:38px;flex:none;border-radius:14px;background:var(--temmy-card-bg);color:var(--temmy-accent)}
.temmy-pc__title{margin:0;padding-bottom:20px;border-bottom:1px solid rgba(128,128,128,.22);font-size:clamp(19px,2.6vw,26px);line-height:1.3}
.temmy-pc__title a{text-decoration:none}
.temmy-pc__date{display:flex;align-items:center;gap:9px;margin-top:30px;font-size:16px;color:#6b7280}
.temmy-pc__date svg{color:var(--temmy-accent);flex:none}
.temmy-pc:hover .temmy-pc__title a{color:var(--temmy-accent)!important}
@media (min-width:1000px){.temmy-pc-list{grid-template-columns:1fr 1fr;gap:28px}}
@media (max-width:420px){.temmy-pc{gap:14px}.temmy-pc__pill{font-size:14px;gap:8px;padding-right:16px}.temmy-pc__ico{width:34px;height:34px}}

/* Soft page */
.temmy-page--soft{padding:48px 0 80px}
.temmy-soft{max-width:860px;margin:0 auto;background:var(--temmy-card-bg);border:1px solid rgba(128,128,128,.16);border-radius:calc(var(--temmy-radius) * 1.7);padding:clamp(24px,5vw,56px);box-shadow:0 14px 30px -24px rgba(0,0,0,.35)}
.temmy-soft__head{margin-bottom:30px;padding-bottom:24px;border-bottom:1px solid rgba(128,128,128,.22)}
.temmy-soft__head .temmy-pc__pill{margin-bottom:18px}
.temmy-soft__head .temmy-page__title{margin:0}
.temmy-soft__head .temmy-pc__date{margin-top:18px}
.temmy-page--full .temmy-soft{max-width:100%}

/* ================= NEWS PORTAL (homepage style 7, category/archive "news", news pages) ================= */
.temmy-home--7,.temmy-cat--news,.temmy-page--news{font-family:var(--temmy-body-font);color:var(--temmy-text);background:var(--temmy-bg)}
.temmy-home--7 *,.temmy-cat--news *,.temmy-page--news *{box-sizing:border-box}

/* Pill heading with lines */
.temmy-sp{display:flex;align-items:center;margin:28px 0 26px}
.temmy-sp__line{flex:1;height:2px;background:var(--temmy-accent)}
.temmy-sp__halo{flex:none;max-width:82%;margin:0 10px;padding:6px;border-radius:999px;background:rgba(128,128,128,.14);background:color-mix(in srgb,var(--temmy-accent) 12%,transparent)}
.temmy-sp__pill{margin:0!important;padding:8px 24px;border-radius:999px;background:var(--temmy-accent);color:#fff!important;text-transform:uppercase;letter-spacing:.04em;font-size:clamp(14px,2.4vw,18px)!important;font-weight:700!important;line-height:1.25!important;text-align:center;text-shadow:none}
.temmy-cat__desc--center{max-width:60ch;margin:-6px auto 18px;text-align:center}

/* Hero */
.temmy-nh{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(300px,52vw,440px);border-radius:22px;overflow:hidden;background:#111;margin-bottom:8px}
.temmy-nh__media{position:absolute;inset:0;display:block}
.temmy-nh__media img,.temmy-nh__media .temmy-card__ph{width:100%;height:100%;object-fit:cover;display:block}
.temmy-nh__body{position:relative;z-index:1;padding:90px clamp(18px,4vw,36px) clamp(20px,3.5vw,32px);background:linear-gradient(transparent,rgba(0,0,0,.85))}
.temmy-nh__cat{display:block;color:#fff;font-size:15px;font-weight:500;text-transform:uppercase;letter-spacing:.03em;opacity:.9;margin-bottom:6px}
.temmy-nh__title{margin:0;font-size:clamp(24px,3.6vw,38px);line-height:1.2}
.temmy-nh__title a,.temmy-nh__title{color:#fff!important;text-decoration:none}

/* Rows */
.temmy-nlist{display:grid;grid-template-columns:1fr}
.temmy-nr{display:grid;grid-template-columns:minmax(104px,33%) 1fr;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid rgba(128,128,128,.28)}
.temmy-nr__thumb{display:block;aspect-ratio:1.12/1;border-radius:16px;overflow:hidden;background:var(--temmy-tint)}
.temmy-nr__thumb img,.temmy-nr__thumb .temmy-card__ph{width:100%;height:100%;object-fit:cover;display:block}
.temmy-nr__body{min-width:0}
.temmy-nr__cat{display:inline-block;color:var(--temmy-accent)!important;font-weight:500;font-size:16px;text-transform:uppercase;letter-spacing:.02em;text-decoration:none!important;margin-bottom:6px}
.temmy-nr__title{margin:0;font-size:clamp(17px,2.4vw,22px);line-height:1.32}
.temmy-nr__title a{text-decoration:none}
.temmy-nr:hover .temmy-nr__title a{color:var(--temmy-accent)!important}
@media (min-width:1000px){.temmy-nlist{grid-template-columns:1fr 1fr;column-gap:48px}}
@media (max-width:420px){.temmy-nr{gap:14px}.temmy-nr__cat{font-size:14px}}

/* News page */
.temmy-page--news{padding:12px 0 72px}
.temmy-page--news .temmy-page__inner{max-width:760px;margin:0 auto}
.temmy-page__hero{margin:0 0 28px;border-radius:22px;overflow:hidden}
.temmy-page__hero img{display:block;width:100%;height:auto}
.temmy-page--news.temmy-page--full .temmy-page__inner{max-width:100%}
