/*
Theme Name: Tomau GeneratePress Child
Theme URI: https://tomau.net/
Description: Lightweight coloring-library interface for Tomau.net.
Author: Tomau.net
Template: generatepress
Version: 1.2.0
Text Domain: tomau
*/

:root {
  --tm-ink: #172033;
  --tm-muted: #667085;
  --tm-brand: #6c4cff;
  --tm-brand-dark: #5137d6;
  --tm-pink: #ff5c8a;
  --tm-yellow: #ffd85a;
  --tm-mint: #43c6ac;
  --tm-sky: #e9f6ff;
  --tm-soft: #f7f7fc;
  --tm-line: #e7e8ef;
  --tm-white: #fff;
  --tm-radius: 18px;
  --tm-shadow: 0 8px 30px rgba(23,32,51,.08);
  --tm-container: 1180px;
}

html { scroll-behavior: smooth; }
body { color: var(--tm-ink); background: var(--tm-white); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--tm-brand-dark); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--tm-pink); }
img { border-radius: 12px; }
.grid-container { max-width: var(--tm-container); }
.site-content { padding: 28px 20px 56px; }
.content-area { width: 100%; }
.site-main { margin: 0; }

.tm-skip { position: fixed; z-index: 9999; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px; background: var(--tm-ink); color: #fff; transform: translateY(-160%); }
.tm-skip:focus { color: #fff; transform: none; }
.tm-site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid var(--tm-line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.tm-header-inner { display: flex; width: min(100% - 40px,var(--tm-container)); min-height: 72px; margin: auto; align-items: center; gap: 24px; }
.tm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--tm-ink); text-decoration: none; }
.tm-logo:hover { color: var(--tm-ink); }
.tm-logo-mark { display: flex; width: 35px; height: 35px; align-items: end; justify-content: center; gap: 3px; padding: 7px; border-radius: 11px; background: var(--tm-ink); transform: rotate(-4deg); }
.tm-logo-mark i { display: block; width: 5px; border-radius: 4px 4px 2px 2px; }
.tm-logo-mark i:nth-child(1) { height: 14px; background: var(--tm-pink); }
.tm-logo-mark i:nth-child(2) { height: 20px; background: var(--tm-yellow); }
.tm-logo-mark i:nth-child(3) { height: 17px; background: var(--tm-mint); }
.tm-logo-text { font-size: 24px; font-weight: 900; letter-spacing: -.055em; }
.tm-logo-text span { color: var(--tm-brand); }
.tm-primary-nav { display: flex; margin-left: auto; align-items: center; gap: 3px; }
.tm-primary-nav a { padding: 11px 12px; border-radius: 10px; color: var(--tm-ink); font-size: 14px; font-weight: 720; text-decoration: none; }
.tm-primary-nav a:hover { background: var(--tm-soft); color: var(--tm-brand-dark); }
.tm-header-search { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border: 1px solid var(--tm-line); border-radius: 11px; color: var(--tm-ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.tm-header-search span:first-child { font-size: 22px; line-height: .7; }
.tm-menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 0; border-radius: 10px; background: var(--tm-soft); }
.tm-menu-toggle > span:not(.screen-reader-text) { display: block; width: 23px; height: 2px; margin: 4px auto; border-radius: 4px; background: var(--tm-ink); }
.tm-page-shell { min-height: 62vh; }
.tm-page-shell > .tm-home { margin-top: 0; }
.tm-page-shell > main:not(.tm-home) { box-sizing: border-box; width: calc(100% - 40px) !important; padding: 34px 0 64px; margin-right: auto !important; margin-left: auto !important; }
.site-header { border-bottom: 1px solid var(--tm-line); background: rgba(255,255,255,.96); }
.inside-header { max-width: var(--tm-container); padding: 16px 20px; }
.site-logo img { max-height: 52px; width: auto; }
.site-branding .main-title a { color: var(--tm-ink); font-weight: 850; letter-spacing: -.04em; }
.site-description { color: var(--tm-muted); font-size: 13px; }
.main-navigation { background: var(--tm-white); border-bottom: 1px solid var(--tm-line); }
.main-navigation .inside-navigation { max-width: var(--tm-container); }
.main-navigation .main-nav ul li a { color: var(--tm-ink); font-weight: 650; padding-inline: 16px; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--tm-brand); background: transparent; }
.menu-toggle { color: var(--tm-ink); background: var(--tm-white); }

.tm-wrap { width: min(calc(100% - 40px), var(--tm-container)) !important; margin-right: auto !important; margin-left: auto !important; }
.tm-section { padding-block: 34px; }
.tm-section + .tm-section { border-top: 1px solid var(--tm-line); }
.tm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.tm-section h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.tm-section-head p { margin: 5px 0 0; color: var(--tm-muted); }
.tm-view-all { white-space: nowrap; font-weight: 700; }

.tm-hero { position: relative; overflow: hidden; padding: clamp(52px, 8vw, 92px) 20px; background: linear-gradient(135deg,#f1edff 0%,#e9f8ff 50%,#fff5da 100%); }
.tm-hero::before,.tm-hero::after { content: ""; position: absolute; border-radius: 999px; opacity: .65; pointer-events: none; }
.tm-hero::before { width: 210px; height: 210px; background: #ffd0df; right: -50px; top: -70px; }
.tm-hero::after { width: 150px; height: 150px; background: #bdf3dd; left: -40px; bottom: -60px; }
.tm-hero-inner { position: relative; z-index: 1; max-width: 850px; margin: auto; text-align: center; }
.tm-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 13px; border: 1px solid rgba(108,76,255,.2); border-radius: 999px; background: rgba(255,255,255,.8); color: var(--tm-brand-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tm-hero h1 { max-width: 760px; margin: 0 auto 14px; font-size: clamp(38px, 7vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.tm-hero-copy { max-width: 620px; margin: 0 auto 26px; color: #485168; font-size: clamp(17px, 2.2vw, 21px); }
.tm-search { display: flex; max-width: 720px; margin: auto; padding: 7px; border: 1px solid var(--tm-line); border-radius: 18px; background: var(--tm-white); box-shadow: var(--tm-shadow); }
.tm-search label { flex: 1; margin: 0; }
.tm-search input[type="search"] { width: 100%; min-height: 54px; margin: 0; padding: 12px 16px; border: 0; background: transparent; font-size: 17px; }
.tm-search input:focus { outline: 3px solid rgba(108,76,255,.18); border-radius: 12px; }
.tm-search button,.tm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--tm-brand); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.tm-search button:hover,.tm-btn:hover { background: var(--tm-brand-dark); color: #fff; transform: translateY(-1px); }
.tm-popular-searches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; color: var(--tm-muted); font-size: 14px; }
.tm-chip { padding: 6px 11px; border: 1px solid rgba(23,32,51,.1); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--tm-ink); text-decoration: none; font-weight: 650; }

.tm-category-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.tm-category { display: flex; min-height: 104px; padding: 18px; flex-direction: column; justify-content: space-between; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-white); color: var(--tm-ink); box-shadow: 0 4px 16px rgba(23,32,51,.04); text-decoration: none; }
.tm-category:nth-child(4n+1) { background: #f2efff; }
.tm-category:nth-child(4n+2) { background: #eaf9ff; }
.tm-category:nth-child(4n+3) { background: #fff5dd; }
.tm-category:nth-child(4n+4) { background: #eafaf5; }
.tm-category:hover { border-color: var(--tm-brand); color: var(--tm-brand-dark); transform: translateY(-3px); box-shadow: var(--tm-shadow); }
.tm-category-icon { font-size: 27px; line-height: 1; }
.tm-category-name { font-weight: 800; line-height: 1.2; }

.tm-card-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.tm-card { position: relative; overflow: hidden; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-white); box-shadow: 0 5px 20px rgba(23,32,51,.05); }
.tm-card:hover { transform: translateY(-4px); box-shadow: var(--tm-shadow); }
.tm-card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--tm-soft); }
.tm-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .25s ease; }
.tm-card:hover .tm-card-media img { transform: scale(1.025); }
.tm-card-body { min-height: 142px; padding: 13px 14px 16px; }
.tm-card-kicker { display: block; margin-bottom: 7px; color: var(--tm-brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.tm-card h2,.tm-card h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 15px; line-height: 1.4; letter-spacing: -.012em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tm-card h2 a,.tm-card h3 a { color: var(--tm-ink); text-decoration: none; }
.tm-card h2 a:hover,.tm-card h3 a:hover { color: var(--tm-brand-dark); }
.tm-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; color: var(--tm-muted); font-size: 12px; }

.tm-age-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.tm-age { padding: 20px 12px; border-radius: 16px; background: var(--tm-soft); color: var(--tm-ink); text-align: center; text-decoration: none; font-weight: 800; }
.tm-age:hover { background: var(--tm-brand); color: #fff; }

.tm-breadcrumb { max-width: 100%; margin-bottom: 18px; overflow-wrap: anywhere; color: var(--tm-muted); font-size: 14px; line-height: 1.55; }
.tm-breadcrumb a { color: var(--tm-muted); }
.tm-archive-head { margin-bottom: 28px; padding: 28px; border-radius: var(--tm-radius); background: linear-gradient(135deg,#f2efff,#edfaff); }
.tm-archive-head h1 { margin: 0 0 8px; font-size: clamp(32px,5vw,52px); letter-spacing: -.045em; }
.tm-archive-head p { max-width: 760px; margin: 0; color: var(--tm-muted); font-size: 17px; }
.tm-pagination { margin-top: 32px; }

.tm-single { max-width: 1080px !important; margin-right: auto !important; margin-left: auto !important; }
.tm-single > .tm-breadcrumb { max-width: 980px; margin-right: auto; margin-left: auto; }
.tm-single article { width: 100%; margin: 0 auto; }
.tm-single-header { text-align: center; }
.tm-single-header { max-width: 900px; margin-right: auto; margin-left: auto; }
.tm-single-header h1 { margin: 8px 0 14px; font-size: clamp(32px,4.2vw,50px); line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
.tm-single-meta { color: var(--tm-muted); font-size: 14px; }
.tm-single-featured { max-width: 920px; margin: 28px auto; padding: 20px; border-radius: 20px; background: var(--tm-soft); }
.tm-single-featured img { display: block; width: auto; max-width: 100%; max-height: 720px; margin: auto; object-fit: contain; background: #fff; }
.tm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 32px; }
.tm-btn-secondary { border: 1px solid var(--tm-line); background: #fff; color: var(--tm-ink); }
.tm-btn-secondary:hover { border-color: var(--tm-brand); background: #f2efff; color: var(--tm-brand-dark); }
.tm-content { width: min(100%, 820px); margin-right: auto; margin-left: auto; font-size: 18px; line-height: 1.75; }
.tm-content h2 { margin-top: 42px; font-size: 30px; letter-spacing: -.03em; }
.tm-content h3 { margin-top: 30px; font-size: 23px; }
.tm-content img { display: block; width: auto; max-width: 100%; height: auto; margin: 22px auto 8px; border: 1px solid var(--tm-line); background: #fff; }
.tm-content p,.tm-content li { overflow-wrap: break-word; }
.tm-content iframe,.tm-content video,.tm-content table { max-width: 100%; }
.tm-content figure { margin-inline: auto; }
.tm-related { width: 100%; margin: 54px auto 0; padding-top: 36px; border-top: 1px solid var(--tm-line); }

.tm-footer { margin-top: 44px; background: #141827; color: #cdd1dd; }
.tm-footer-main { display: grid; width: min(100% - 40px,var(--tm-container)); margin: auto; padding: 58px 0 46px; grid-template-columns: 2fr repeat(3,1fr); gap: 48px; }
.tm-logo-light { color: #fff; }
.tm-logo-light:hover { color: #fff; }
.tm-footer-brand p { max-width: 390px; margin: 20px 0 0; color: #aeb4c5; line-height: 1.75; }
.tm-footer-col { display: flex; flex-direction: column; gap: 10px; }
.tm-footer-col h2 { margin: 3px 0 8px; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.tm-footer-col a { color: #cdd1dd; text-decoration: none; }
.tm-footer-col a:hover { color: #fff; }
.tm-footer-bottom { display: flex; width: min(100% - 40px,var(--tm-container)); margin: auto; padding: 20px 0 24px; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #8f97aa; font-size: 13px; }
.tm-static-page { max-width: 900px; }
.tm-error-page { padding-block: 80px !important; text-align: center; }
.tm-error-art { display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--tm-brand); font-size: clamp(82px,15vw,150px); font-weight: 950; line-height: 1; }
.tm-error-art i { font-size: .5em; font-style: normal; }
.tm-error-page h1 { margin: 20px 0 10px; font-size: clamp(30px,5vw,48px); letter-spacing: -.04em; }
.tm-error-page > p { max-width: 620px; margin: 0 auto 28px; color: var(--tm-muted); font-size: 18px; }
.tm-error-page .tm-search { margin-bottom: 20px; }
.tm-error-home { margin-top: 6px; }
.site-footer { border-top: 1px solid var(--tm-line); background: #141827; color: #d9dce7; }
.site-footer a { color: #fff; }
.inside-site-info { max-width: var(--tm-container); padding: 24px 20px; }

.screen-reader-text:focus { z-index: 100000; }
*:focus-visible { outline: 3px solid rgba(108,76,255,.45); outline-offset: 3px; }

@media (max-width: 980px) {
  .tm-primary-nav { gap: 0; }
  .tm-primary-nav a { padding-inline: 8px; font-size: 13px; }
  .tm-header-search span:last-child { display: none; }
  .tm-category-grid { grid-template-columns: repeat(3,1fr); }
  .tm-card-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 720px) {
  .tm-header-inner { width: min(100% - 28px,var(--tm-container)); min-height: 66px; gap: 10px; }
  .tm-menu-toggle { display: block; }
  .tm-primary-nav { position: fixed; z-index: 999; top: 66px; right: 0; left: 0; display: none; padding: 12px 18px 22px; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--tm-line); background: #fff; box-shadow: 0 20px 40px rgba(23,32,51,.12); }
  .tm-primary-nav.is-open { display: flex; }
  .tm-primary-nav a { padding: 13px 12px; font-size: 16px; }
  .tm-header-search { padding: 9px 11px; }
  .tm-footer-main { grid-template-columns: 1fr 1fr; gap: 32px 22px; padding-block: 42px 34px; }
  .tm-footer-brand { grid-column: 1/-1; }
  .tm-footer-bottom { flex-direction: column; }
  .site-content { padding-inline: 14px; }
  .tm-section { padding-block: 28px; }
  .tm-section-head { align-items: start; }
  .tm-category-grid { grid-template-columns: repeat(2,1fr); }
  .tm-card-grid { grid-template-columns: repeat(2,1fr); gap: 13px; }
  .tm-card-body { padding: 12px; }
  .tm-card h2,.tm-card h3 { font-size: 16px; }
  .tm-age-grid { grid-template-columns: repeat(2,1fr); }
  .tm-search { display: block; }
  .tm-search button { width: 100%; }
  .tm-single-header { text-align: left; }
  .tm-single-header h1 { font-size: clamp(30px,9vw,42px); text-wrap: pretty; }
  .tm-single-featured { padding: 10px; border-radius: 14px; }
  .tm-actions { justify-content: stretch; }
  .tm-actions .tm-btn { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 420px) {
  .tm-footer-main { grid-template-columns: 1fr; }
  .tm-footer-brand { grid-column: auto; }
  .tm-card-grid { grid-template-columns: 1fr; }
  .tm-card-body { min-height: 0; }
}
@media print {
  .site-header,.main-navigation,.site-footer,.tm-breadcrumb,.tm-actions,.tm-related,.comments-area { display: none !important; }
  .site-content,.tm-single,.tm-content { width: 100%; max-width: none; padding: 0; margin: 0; }
  .tm-single-header h1 { font-size: 20pt; }
  .tm-content { font-size: 12pt; }
  .tm-content img { break-inside: avoid; max-height: 95vh; page-break-after: always; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}
  .tm-page-shell > main:not(.tm-home) { width: calc(100% - 28px) !important; padding-top: 24px; }
  .tm-wrap { width: calc(100% - 28px) !important; }
