/* Theme "spectrum": a bold, colorful tech-magazine look - a black utility
   bar above a white nav bar with a green active-tab underline, flat solid
   green rectangular section-heading labels (sharp corners, no pill, no
   bullet, no thin-rule motif), and vivid rotating-gradient "no image" card
   fills instead of the plain diagonal-stripe placeholder every other theme
   uses. Sharp corners throughout, black category badges. Same class-name
   contract as the other themes (see functions/_themes/spectrum.js). */
:root {
  --ink: #1c1c1c; --muted: #767676; --line: #e6e6e6; --paper: #ffffff;
  --accent: #2fa84f; --accent-ink: #ffffff; --sidebar-bg: #f7f7f7; --badge: #191919;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Inter', -apple-system, sans-serif; margin: 0; font-weight: 800; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Rotating vivid gradients instead of a plain "no image" stripe - the
   theme's signature move. Real photos (an <img> tag) are unaffected. */
.placeholder-img { display: flex; align-items: flex-end; justify-content: flex-start; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; object-fit: cover; padding: 10px; opacity: 0; }
.placeholder-img { background: linear-gradient(135deg, #6a3fd1, #e0538a); opacity: 1; }
.post-card .placeholder-img:nth-of-type(1), a:nth-of-type(6n+1) .placeholder-img { background: linear-gradient(135deg, #6a3fd1, #e0538a); }
a:nth-of-type(6n+2) .placeholder-img { background: linear-gradient(135deg, #2fa84f, #d7d945); }
a:nth-of-type(6n+3) .placeholder-img { background: linear-gradient(135deg, #f2994a, #eb5757); }
a:nth-of-type(6n+4) .placeholder-img { background: linear-gradient(135deg, #1c92d2, #f2fcfe); }
a:nth-of-type(6n+5) .placeholder-img { background: linear-gradient(135deg, #f857a6, #ff5858); }
a:nth-of-type(6n+6) .placeholder-img { background: linear-gradient(135deg, #11998e, #38ef7d); }

.topbar { background: var(--ink); color: #b8b8b8; font-size: 12px; }
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; padding: 10px 24px; flex-wrap: wrap; gap: 6px; }
.topbar-left { display: none; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.social-dot { width: 22px; height: 22px; border-radius: 0; background: #333; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #fff; }
.social-dot:hover { background: var(--accent); }

.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: flex-start; padding: 22px 24px; }
.logo-group { display: flex; align-items: center; gap: 12px; flex-direction: row; }
.logo-box { width: 44px; height: 44px; flex-shrink: 0; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; }
.logo-img { height: 52px; width: auto; max-width: 360px; object-fit: contain; flex-shrink: 0; }
.site-name { font-size: 32px; font-weight: 900; letter-spacing: -.02em; text-align: left; }
.site-tagline { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: left; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

.main-nav { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.main-nav .wrap { display: flex; gap: 4px; justify-content: flex-start; flex-wrap: wrap; padding: 0; }
.main-nav a { color: var(--ink); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 16px 15px; border-bottom: 3px solid transparent; }
.main-nav a.home { color: var(--accent); border-bottom-color: var(--accent); }
.main-nav a:hover:not(.home) { color: var(--accent); }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 34px 24px 20px; max-width: 1180px; margin: 0 auto; align-items: start; }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { font-weight: 700; color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }

/* Flat solid-green rectangular label, sharp corners - this theme's
   recurring motif (no pill, no bullet, no thin-rule underline). */
.section-heading { display: flex; align-items: stretch; gap: 0; margin: 0 0 22px; }
.section-heading h2 { background: var(--accent); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; padding: 9px 16px; white-space: nowrap; }
.section-heading::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); margin-bottom: 1px; }
.section-heading .see-all { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; align-self: center; margin-left: 12px; }
section.cat-section { margin-bottom: 46px; }

.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 44px; }
.hero-main { position: relative; display: block; }
.hero-main .placeholder-img, .hero-main img { width: 100%; height: 340px; margin-bottom: 0; }
.cat-tag { color: var(--ink); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #fff; padding: 5px 11px; display: inline-block; position: relative; top: -30px; left: 0; margin-bottom: -20px; }
.hero-main h1 { font-size: 29px; line-height: 1.2; margin: 8px 0 10px; }
.hero-main p { color: var(--muted); font-size: 15px; margin: 0 0 8px; font-weight: 400; }
.meta { color: #a3a3a3; font-size: 12.5px; font-weight: 500; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-item { display: flex; gap: 0; }
.hero-side-item .placeholder-img, .hero-side-item img { width: 100%; height: 160px; font-size: 9px; }
.hero-side-item > div { display: none; }

.tech-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-item { display: block; }
.tech-item .placeholder-img, .tech-item img { width: 100%; height: 110px; margin-bottom: 10px; font-size: 9px; }
.tech-item h3 { font-size: 14px; line-height: 1.3; }

.picks-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; background: var(--sidebar-bg); padding: 26px; }
.picks-feature { display: block; }
.picks-feature .placeholder-img, .picks-feature img { width: 100%; height: 236px; margin-bottom: 14px; font-size: 10px; }
.picks-feature h3 { font-size: 22px; line-height: 1.26; margin: 8px 0; }
.picks-list { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.picks-list li { counter-increment: pick; display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid #e2e2e2; }
.picks-list li:last-child { border-bottom: none; }
.picks-list li::before { content: counter(pick); font-size: 20px; font-weight: 900; color: var(--accent); width: 26px; flex-shrink: 0; }
.picks-list .p-title { font-size: 14px; font-weight: 700; line-height: 1.3; }

.lifestyle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lifestyle-card { position: relative; overflow: hidden; height: 254px; display: block; }
.lifestyle-card .placeholder-img, .lifestyle-card img { width: 100%; height: 100%; }
.lifestyle-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; }
.lifestyle-overlay h3 { color: #fff; font-size: 16px; margin-top: 4px; }

.travel-feature { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--ink); color: #fff; overflow: hidden; margin-bottom: 20px; }
.travel-feature .placeholder-img, .travel-feature > img { width: 100%; height: 100%; min-height: 254px; }
.travel-copy { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.travel-copy h3 { color: #fff; font-size: 23px; margin: 10px 0 12px; line-height: 1.26; }
.travel-copy p { color: #d6d6d6; font-size: 14px; margin: 0; font-weight: 400; }
.travel-small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.travel-small .placeholder-img, .travel-small img { width: 100%; height: 128px; margin-bottom: 10px; font-size: 9px; }
.travel-small h3 { font-size: 14.5px; line-height: 1.3; }

.business-list { border-top: 1px solid var(--line); }
.business-row { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.business-row .placeholder-img, .business-row img { width: 88px; height: 64px; flex-shrink: 0; font-size: 8px; }
.business-row h3 { font-size: 15px; line-height: 1.3; margin: 4px 0 4px; }

.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.popular-list li { counter-increment: pop; display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.popular-list li::before { content: counter(pop); font-size: 20px; font-weight: 900; color: var(--accent); width: 26px; flex-shrink: 0; }
.popular-list .pop-title { font-size: 14px; font-weight: 700; line-height: 1.3; }

.cta-banner { background: var(--accent); color: #fff; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; font-size: 23px; margin-bottom: 6px; }
.cta-banner p { margin: 0; font-size: 14px; color: #e4f5e8; font-weight: 400; }
.cta-form { display: flex; gap: 10px; flex-shrink: 0; }
.cta-form input { padding: 12px 14px; border: none; font-size: 14px; width: 220px; font-family: inherit; }
.cta-form button { padding: 12px 22px; border: none; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }

.widget { background: var(--sidebar-bg); border: none; padding: 20px; margin-bottom: 20px; }
.widget h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; margin-bottom: 16px; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 10px; }
.weather-widget { background: var(--ink); color: #fff; }
.weather-widget h3 { color: #fff; }
.weather-now { display: flex; align-items: center; justify-content: space-between; }
.weather-now .temp-big { font-size: 40px; font-weight: 800; }
.weather-now .cond { font-size: 13px; color: #d6d6d6; }
.weather-date { font-size: 12.5px; color: #a3a3a3; margin-top: 12px; border-top: 1px solid #333; padding-top: 12px; }
.weather-date .clock { font-weight: 800; color: #fff; font-size: 15px; }
.trending-list { list-style: none; margin: 0; padding: 0; counter-reset: trend; }
.trending-list li { counter-increment: trend; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2e2e2; }
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.trending-list li::before { content: counter(trend); font-size: 20px; font-weight: 900; color: var(--accent); flex-shrink: 0; width: 24px; }
.trending-list .t-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.trending-list .t-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.newsletter-widget p { font-size: 13px; color: var(--muted); margin: 0 0 14px; font-weight: 400; }
.newsletter-widget input { width: 100%; padding: 10px 14px; border: 1px solid #ddd; font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.newsletter-widget button { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #fff; border: 1px solid #ddd; padding: 6px 14px; font-size: 12.5px; font-weight: 700; }
.tag-cloud a:hover { background: var(--badge); color: #fff; border-color: var(--badge); }
.social-row { display: flex; gap: 10px; }
.social-row a { flex: 1; background: #fff; border: 1px solid #ddd; text-align: center; padding: 12px 6px; font-size: 12px; font-weight: 800; }
.ad-widget { border: 1px dashed #ccc; background: transparent; text-align: center; color: #a3a3a3; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 60px 10px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.post-card { display: block; position: relative; }
.post-card .placeholder-img, .post-card img { width: 100%; height: 150px; margin-bottom: 10px; font-size: 10px; }
.post-card h3 { font-size: 16px; line-height: 1.3; margin: 6px 0 6px; }
.post-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; font-weight: 400; }

.category-title { font-size: 30px; margin: 0 0 8px; }
.category-desc { font-size: 14px; color: var(--muted); margin: 0 0 26px; font-weight: 400; }
.pagination { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }
.pagination a { color: var(--accent); }

.single-post { max-width: 760px; }
.single-post-header h1 { font-size: 36px; line-height: 1.22; margin: 10px 0 14px; }
.single-post-headline { width: 100%; max-height: 470px; object-fit: cover; margin: 20px 0 30px; }
.single-post-content { font-size: 18px; font-weight: 400; }
.single-post-content p { margin: 0 0 22px; }
.single-post-content h2 { font-size: 25px; margin: 36px 0 16px; }
.single-post-content h3 { font-size: 20px; margin: 28px 0 12px; }
.single-post-content img { margin: 24px 0; width: 100%; }
.single-post-content a { color: var(--accent); text-decoration: underline; }

.related-posts { max-width: 760px; margin: 60px 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.related-posts h2 { font-size: 19px; margin-bottom: 20px; }

.site-footer { background: var(--ink); color: #d6d6d6; padding: 48px 24px 20px; margin-top: 20px; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; padding-bottom: 30px; border-bottom: 1px solid #333; }
.footer-grid h4 { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.footer-grid p { font-size: 13px; color: #a3a3a3; line-height: 1.6; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13px; }
.footer-bottom { padding-top: 18px; font-size: 12px; color: #6b6b6b; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h1 { color: var(--ink); font-size: 28px; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #fff; padding: 10px 20px; font-weight: 700; }

.featured-ribbon {
  display: inline-flex; align-items: center; gap: 4px; background: var(--badge); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 10px; margin-bottom: 6px;
}
.single-post-header .featured-ribbon { margin: 6px 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-pill-link { background: var(--sidebar-bg); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 5px 14px; }
.tag-pill-link:hover { background: var(--accent); color: #fff; }

.search-form { display: flex; gap: 10px; margin: 0 0 22px; }
.search-form input { flex: 1; padding: 11px 16px; border: 1px solid var(--line); font-size: 15px; font-family: inherit; }
.search-form button { background: var(--accent); color: #fff; border: none; padding: 0 22px; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero, .picks-split, .travel-feature { grid-template-columns: 1fr; }
  .tech-row, .lifestyle-grid, .travel-small, .popular-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
