/*
Theme Name: TECNO Editorial
Theme URI: https://en.tecno.co.id/
Author: KEN Digital
Author URI: https://en.tecno.co.id/
Description: A clean, premium editorial WordPress theme built for en.tecno.co.id. Lightweight, responsive, accessible, translation-ready, and AdX-ready through dedicated widget areas.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tecno-editorial
Tags: blog, news, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --tecno-bg: #f5f7fa;
  --tecno-surface: #ffffff;
  --tecno-text: #172033;
  --tecno-muted: #667085;
  --tecno-line: #e6eaf0;
  --tecno-primary: #155eef;
  --tecno-primary-dark: #0b4dcc;
  --tecno-accent: #f0f5ff;
  --tecno-header: #0d1424;
  --tecno-radius: 16px;
  --tecno-shadow: 0 12px 36px rgba(15, 23, 42, .07);
  --tecno-container: 1180px;
  --tecno-reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tecno-bg);
  color: var(--tecno-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.tecno-dark {
  --tecno-bg: #0b1120;
  --tecno-surface: #111a2c;
  --tecno-text: #edf2f7;
  --tecno-muted: #aab4c5;
  --tecno-line: #253149;
  --tecno-accent: #162746;
  --tecno-header: #070c16;
  --tecno-shadow: 0 12px 36px rgba(0, 0, 0, .22);
}
a { color: var(--tecno-primary); text-decoration: none; }
a:hover { color: var(--tecno-primary-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(21, 94, 239, .4); outline-offset: 3px; }

.tecno-container { width: min(calc(100% - 40px), var(--tecno-container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; 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 { top: 8px; left: 8px; z-index: 99999; width: auto; height: auto; padding: 12px 16px; background: #fff; clip: auto; }
.skip-link { position: absolute; }

.tecno-topbar { background: #070b14; color: #bac3d2; font-size: 13px; }
.tecno-topbar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tecno-topbar p { margin: 0; }
.tecno-topbar a { color: #d8deea; }
.tecno-header { position: sticky; top: 0; z-index: 1000; background: var(--tecno-header); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.admin-bar .tecno-header { top: 32px; }
.tecno-header__main { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.tecno-brand { display: inline-flex; flex-direction: column; justify-content: center; color: #fff; flex: 0 0 auto; }
.tecno-brand:hover { color: #fff; }
.tecno-brand__name { font-size: 25px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.tecno-brand__name em { color: #5d8fff; font-style: normal; }
.tecno-brand__tagline { margin-top: 5px; color: #99a5b9; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.custom-logo { display: block; max-height: 48px; width: auto; }
.tecno-nav { margin-left: auto; }
.tecno-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tecno-nav li { position: relative; }
.tecno-nav a { display: block; padding: 12px 13px; border-radius: 9px; color: #dce3ef; font-size: 14px; font-weight: 650; }
.tecno-nav a:hover, .tecno-nav .current-menu-item > a { color: #fff; background: rgba(255,255,255,.08); }
.tecno-nav .sub-menu { position: absolute; top: 100%; left: 0; display: none; width: 220px; padding: 8px; background: #111a2a; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: var(--tecno-shadow); }
.tecno-nav li:hover > .sub-menu, .tecno-nav li:focus-within > .sub-menu { display: block; }
.tecno-nav .sub-menu a { padding: 9px 10px; }
.tecno-actions { display: flex; align-items: center; gap: 8px; }
.tecno-icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.05); color: #fff; cursor: pointer; }
.tecno-icon-button:hover { background: rgba(255,255,255,.12); }
.tecno-menu-toggle { display: none; }
.tecno-search-panel { display: none; background: var(--tecno-surface); border-bottom: 1px solid var(--tecno-line); box-shadow: var(--tecno-shadow); }
.tecno-search-panel.is-open { display: block; }
.tecno-search-panel__inner { padding: 18px 0; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--tecno-line); border-radius: 10px; background: var(--tecno-surface); color: var(--tecno-text); }
.search-submit, .tecno-button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--tecno-primary); color: #fff; font-weight: 750; cursor: pointer; }
.search-submit:hover, .tecno-button:hover { background: var(--tecno-primary-dark); color: #fff; }

.tecno-ad { width: 100%; margin: 22px auto; text-align: center; overflow: hidden; }
.tecno-ad::before { content: "ADVERTISEMENT"; display: block; margin-bottom: 6px; color: var(--tecno-muted); font-size: 9px; letter-spacing: .16em; }
.tecno-ad:empty { display: none; }
.tecno-ad .widget { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.tecno-ad--header { padding: 8px 0; background: var(--tecno-surface); border-bottom: 1px solid var(--tecno-line); }

.tecno-main { min-height: 60vh; padding: 32px 0 56px; }
.tecno-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.tecno-content { min-width: 0; }
.tecno-sidebar { min-width: 0; }
.tecno-section { margin-bottom: 42px; }
.tecno-section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.tecno-section__title { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.tecno-section__title::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; border-radius: 99px; background: var(--tecno-primary); }
.tecno-section__link { color: var(--tecno-muted); font-weight: 700; font-size: 14px; }

.tecno-hero { display: grid; grid-template-columns: 1.45fr .75fr; gap: 20px; margin-bottom: 36px; }
.tecno-hero__primary, .tecno-hero__secondary { position: relative; min-height: 470px; overflow: hidden; border-radius: 20px; background: #152035; box-shadow: var(--tecno-shadow); }
.tecno-hero__secondary { min-height: 225px; }
.tecno-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.tecno-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tecno-hero article:hover img { transform: scale(1.035); }
.tecno-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(6,12,25,.9) 100%); }
.tecno-hero__body { position: absolute; inset: auto 0 0; z-index: 1; padding: 28px; color: #fff; }
.tecno-hero__primary .tecno-hero__body { padding: 36px; }
.tecno-hero__title { margin: 10px 0 8px; color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.tecno-hero__secondary .tecno-hero__title { font-size: 21px; }
.tecno-hero__meta { color: #d2d9e5; font-size: 13px; }
.tecno-category { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 99px; background: var(--tecno-primary); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.tecno-category:hover { color: #fff; background: var(--tecno-primary-dark); }

.tecno-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tecno-card { overflow: hidden; background: var(--tecno-surface); border: 1px solid var(--tecno-line); border-radius: var(--tecno-radius); box-shadow: 0 8px 24px rgba(15,23,42,.035); transition: transform .2s ease, box-shadow .2s ease; }
.tecno-card:hover { transform: translateY(-3px); box-shadow: var(--tecno-shadow); }
.tecno-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tecno-accent); }
.tecno-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tecno-card:hover .tecno-card__image img { transform: scale(1.03); }
.tecno-card__body { padding: 20px; }
.tecno-card__title { margin: 9px 0 8px; font-size: 22px; line-height: 1.27; letter-spacing: -.025em; }
.tecno-card__title a { color: var(--tecno-text); }
.tecno-card__title a:hover { color: var(--tecno-primary); }
.tecno-card__excerpt { margin: 0; color: var(--tecno-muted); font-size: 14px; }
.tecno-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--tecno-muted); font-size: 12px; }
.tecno-meta span { display: inline-flex; align-items: center; gap: 5px; }

.tecno-list-card { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 22px; padding: 18px; margin-bottom: 18px; background: var(--tecno-surface); border: 1px solid var(--tecno-line); border-radius: var(--tecno-radius); }
.tecno-list-card__image { aspect-ratio: 16/10; overflow: hidden; border-radius: 11px; background: var(--tecno-accent); }
.tecno-list-card__image img { width: 100%; height: 100%; object-fit: cover; }
.tecno-list-card__title { margin: 8px 0; font-size: 25px; line-height: 1.22; letter-spacing: -.03em; }
.tecno-list-card__title a { color: var(--tecno-text); }
.tecno-list-card__excerpt { margin: 9px 0 0; color: var(--tecno-muted); font-size: 14px; }

.widget { margin-bottom: 22px; padding: 22px; background: var(--tecno-surface); border: 1px solid var(--tecno-line); border-radius: var(--tecno-radius); }
.widget-title { margin: 0 0 16px; font-size: 18px; line-height: 1.25; }
.widget ul { margin: 0; padding-left: 18px; }
.widget li { margin: 7px 0; }
.tecno-sticky { position: sticky; top: 98px; }
.admin-bar .tecno-sticky { top: 130px; }
.tecno-popular { counter-reset: popular; }
.tecno-popular__item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--tecno-line); }
.tecno-popular__item:last-child { border-bottom: 0; padding-bottom: 0; }
.tecno-popular__item::before { counter-increment: popular; content: counter(popular, decimal-leading-zero); color: var(--tecno-primary); font-weight: 850; font-size: 18px; }
.tecno-popular__item a { color: var(--tecno-text); font-size: 14px; font-weight: 750; line-height: 1.35; }

.tecno-breadcrumb { margin-bottom: 18px; color: var(--tecno-muted); font-size: 13px; }
.tecno-breadcrumb a { color: var(--tecno-muted); }
.tecno-breadcrumb__sep { margin: 0 8px; opacity: .55; }
.tecno-article { overflow: hidden; background: var(--tecno-surface); border: 1px solid var(--tecno-line); border-radius: 20px; box-shadow: var(--tecno-shadow); }
.tecno-article__header { padding: clamp(25px, 5vw, 54px) clamp(22px, 6vw, 68px) 28px; }
.tecno-article__title { max-width: 900px; margin: 12px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 6vw, 62px); line-height: 1.06; letter-spacing: -.045em; }
.tecno-article__dek { max-width: 800px; margin: 0 0 20px; color: var(--tecno-muted); font-size: 19px; line-height: 1.6; }
.tecno-author { display: flex; align-items: center; gap: 10px; }
.tecno-author img { border-radius: 50%; }
.tecno-author__name { color: var(--tecno-text); font-weight: 750; }
.tecno-article__featured { margin: 0; }
.tecno-article__featured img { display: block; width: 100%; max-height: 650px; object-fit: cover; }
.tecno-article__content { width: min(calc(100% - 44px), var(--tecno-reading)); margin: 0 auto; padding: 44px 0 52px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.82; }
.tecno-article__content > *:first-child { margin-top: 0; }
.tecno-article__content h2, .tecno-article__content h3, .tecno-article__content h4 { scroll-margin-top: 105px; color: var(--tecno-text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.25; letter-spacing: -.03em; }
.tecno-article__content h2 { margin: 46px 0 16px; font-size: 32px; }
.tecno-article__content h3 { margin: 34px 0 13px; font-size: 25px; }
.tecno-article__content p { margin: 0 0 24px; }
.tecno-article__content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tecno-article__content blockquote { margin: 34px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--tecno-primary); color: var(--tecno-muted); font-size: 22px; font-style: italic; }
.tecno-article__content figure { margin: 32px 0; }
.tecno-article__content figcaption { margin-top: 8px; color: var(--tecno-muted); font-family: Inter, sans-serif; font-size: 12px; text-align: center; }
.tecno-article__content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-family: Inter, sans-serif; font-size: 15px; }
.tecno-article__content th, .tecno-article__content td { padding: 12px; border: 1px solid var(--tecno-line); text-align: left; }
.tecno-article__content pre { overflow: auto; padding: 18px; border-radius: 10px; background: #0d1424; color: #edf2f7; font-size: 14px; }
.tecno-toc { display: none; margin: 0 0 32px; padding: 22px 24px; border: 1px solid var(--tecno-line); border-radius: 14px; background: var(--tecno-accent); font-family: Inter, sans-serif; font-size: 14px; }
.tecno-toc.is-ready { display: block; }
.tecno-toc__title { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 16px; }
.tecno-toc__toggle { border: 0; background: transparent; color: var(--tecno-primary); font-size: 12px; font-weight: 800; cursor: pointer; }
.tecno-toc ol { margin: 14px 0 0; padding-left: 20px; }
.tecno-toc li { margin: 7px 0; }
.tecno-toc li.is-h3 { margin-left: 18px; }
.tecno-toc a { text-decoration: none; }
.tecno-reading-progress { position: fixed; top: 0; left: 0; z-index: 2000; width: 0; height: 3px; background: var(--tecno-primary); }
.admin-bar .tecno-reading-progress { top: 32px; }
.tecno-tags { width: min(calc(100% - 44px), var(--tecno-reading)); margin: -24px auto 44px; display: flex; flex-wrap: wrap; gap: 8px; }
.tecno-tags a { padding: 6px 10px; border: 1px solid var(--tecno-line); border-radius: 99px; color: var(--tecno-muted); font-size: 12px; }
.tecno-author-box { width: min(calc(100% - 44px), var(--tecno-reading)); margin: 0 auto 46px; display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--tecno-line); border-radius: 14px; background: var(--tecno-accent); }
.tecno-author-box img { border-radius: 50%; }
.tecno-author-box h3 { margin: 0 0 5px; }
.tecno-author-box p { margin: 0; color: var(--tecno-muted); font-size: 14px; }
.tecno-related { margin-top: 34px; }

.tecno-page-header { margin-bottom: 24px; padding: 30px; background: var(--tecno-surface); border: 1px solid var(--tecno-line); border-radius: var(--tecno-radius); }
.tecno-page-title { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.15; letter-spacing: -.04em; }
.tecno-page-description { margin-top: 10px; color: var(--tecno-muted); }
.tecno-page-description p { margin: 0; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 6px; border: 1px solid var(--tecno-line); border-radius: 9px; background: var(--tecno-surface); color: var(--tecno-text); }
.page-numbers.current { background: var(--tecno-primary); border-color: var(--tecno-primary); color: #fff; }
.tecno-empty { padding: 40px; background: var(--tecno-surface); border: 1px solid var(--tecno-line); border-radius: var(--tecno-radius); text-align: center; }

.tecno-comments { margin-top: 32px; padding: 28px; background: var(--tecno-surface); border: 1px solid var(--tecno-line); border-radius: var(--tecno-radius); }
.comment-list { padding-left: 22px; }
.comment-body { margin-bottom: 18px; padding: 18px; border: 1px solid var(--tecno-line); border-radius: 12px; }
.comment-form-comment label { display: block; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 11px; border: 1px solid var(--tecno-line); border-radius: 9px; background: var(--tecno-surface); color: var(--tecno-text); }
.form-submit .submit { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 9px; background: var(--tecno-primary); color: #fff; font-weight: 750; cursor: pointer; }

.tecno-footer { background: #0b1120; color: #aab4c5; }
.tecno-footer__widgets { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding: 52px 0 38px; }
.tecno-footer .widget { padding: 0; border: 0; background: transparent; }
.tecno-footer .widget-title { color: #fff; }
.tecno-footer a { color: #cbd3df; }
.tecno-footer__brand { margin-bottom: 14px; color: #fff; font-size: 25px; font-weight: 850; letter-spacing: -.04em; }
.tecno-footer__about { max-width: 380px; margin: 0; font-size: 14px; }
.tecno-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 66px; border-top: 1px solid #222c40; font-size: 12px; }
.tecno-footer__bottom p { margin: 0; }
.tecno-footer-menu { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }

.alignwide { width: min(1000px, calc(100vw - 44px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.sticky { border-color: rgba(21,94,239,.35); }
.bypostauthor { position: relative; }

@media (max-width: 1024px) {
  .tecno-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .tecno-nav a { padding-inline: 9px; }
  .tecno-hero { grid-template-columns: 1.25fr .75fr; }
  .tecno-list-card { grid-template-columns: 220px 1fr; }
}

@media (max-width: 820px) {
  .admin-bar .tecno-header { top: 46px; }
  .tecno-container { width: min(calc(100% - 28px), var(--tecno-container)); }
  .tecno-topbar { display: none; }
  .tecno-header__main { min-height: 64px; }
  .tecno-menu-toggle { display: grid; }
  .tecno-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 10px 14px 18px; background: var(--tecno-header); border-top: 1px solid rgba(255,255,255,.08); }
  .tecno-nav.is-open { display: block; }
  .tecno-nav ul { display: block; }
  .tecno-nav a { padding: 11px 10px; }
  .tecno-nav .sub-menu { position: static; display: block; width: auto; margin-left: 14px; padding: 0; border: 0; box-shadow: none; }
  .tecno-grid { grid-template-columns: 1fr; }
  .tecno-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .tecno-sidebar .widget { margin-bottom: 0; }
  .tecno-sticky { position: static; }
  .tecno-hero { grid-template-columns: 1fr; }
  .tecno-hero__primary { min-height: 430px; }
  .tecno-hero__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .tecno-footer__widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .tecno-main { padding-top: 20px; }
  .tecno-brand__tagline { display: none; }
  .tecno-brand__name { font-size: 22px; }
  .tecno-actions { margin-left: auto; }
  .tecno-hero__primary { min-height: 400px; }
  .tecno-hero__side { grid-template-columns: 1fr; }
  .tecno-hero__secondary { min-height: 240px; }
  .tecno-hero__primary .tecno-hero__body, .tecno-hero__body { padding: 22px; }
  .tecno-hero__title { font-size: 32px; }
  .tecno-hero__secondary .tecno-hero__title { font-size: 23px; }
  .tecno-post-grid { grid-template-columns: 1fr; }
  .tecno-list-card { grid-template-columns: 120px 1fr; gap: 14px; padding: 12px; }
  .tecno-list-card__title { font-size: 18px; }
  .tecno-list-card__excerpt { display: none; }
  .tecno-list-card .tecno-meta { display: none; }
  .tecno-sidebar { display: block; }
  .tecno-sidebar .widget { margin-bottom: 18px; }
  .tecno-article__header { padding-inline: 22px; }
  .tecno-article__title { font-size: 38px; }
  .tecno-article__dek { font-size: 17px; }
  .tecno-article__content { width: calc(100% - 36px); padding-top: 32px; font-size: 18px; }
  .tecno-article__content h2 { font-size: 28px; }
  .tecno-tags, .tecno-author-box { width: calc(100% - 36px); }
  .tecno-footer__widgets { grid-template-columns: 1fr; }
  .tecno-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .tecno-page-header { padding: 22px; }
}

@media (max-width: 782px) {
  .admin-bar .tecno-reading-progress { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .tecno-topbar, .tecno-header, .tecno-ad, .tecno-sidebar, .tecno-footer, .tecno-reading-progress, .tecno-related, .tecno-comments { display: none !important; }
  body, .tecno-article { background: #fff; color: #000; box-shadow: none; border: 0; }
  .tecno-main { padding: 0; }
}
