/*
Theme Name: Techhaedap Editorial
Theme URI: https://techhaedap.com/
Author: Techhaedap
Description: 테크해답을 위한 전문 기술 편집 매거진 블록 테마.
Version: 1.0.3
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: techhaedap-editorial
License: GPL-2.0-or-later
*/

:root {
  --tech-ink: #102033;
  --tech-muted: #607087;
  --tech-navy: #101d2d;
  --tech-blue: #1769d2;
  --tech-blue-deep: #0d4e9c;
  --tech-sky: #eaf3ff;
  --tech-paper: #ffffff;
  --tech-canvas: #f4f7fb;
  --tech-line: #d9e2ed;
  --tech-radius: 16px;
  --tech-shadow: 0 18px 50px rgba(16, 32, 51, .09);
}

html { scroll-behavior: smooth; }
body { background: var(--tech-canvas); color: var(--tech-ink); }
.wp-site-blocks { overflow: clip; }
a { text-underline-offset: .16em; }

.tech-header {
  background: var(--tech-navy);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  position: relative;
  z-index: 20;
}
.tech-header__inner {
  min-height: 84px;
  padding: .85rem clamp(1rem, 3vw, 2rem);
}
.tech-header__brandline { align-items: center; gap: .72rem; }
.tech-header .wp-block-site-title { font-size: clamp(1.45rem, 2.1vw, 1.9rem); font-weight: 850; letter-spacing: -.045em; line-height: 1; margin: 0; }
.tech-header .wp-block-site-title a,
.tech-header .wp-block-navigation-item__content { color: #fff; text-decoration: none; }
.tech-header .wp-block-navigation { font-size: .94rem; font-weight: 650; }
.tech-header .wp-block-navigation-item__content { opacity: .82; }
.tech-header .wp-block-navigation-item__content:hover { color: #8ec2ff; opacity: 1; }
.tech-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--tech-navy); color: #fff; padding: 1.5rem; }
.tech-header__edition { border-left: 1px solid rgba(255,255,255,.28); color: #8ec2ff; font-size: .62rem; font-weight: 750; letter-spacing: .12em; line-height: 1.3; margin: 0; padding-left: .72rem; text-transform: uppercase; }
.tech-header__tagline { color: #a9bbcf; font-size: .76rem; letter-spacing: -.01em; line-height: 1.45; margin: .38rem 0 0; word-break: keep-all; }

.tech-home,
.tech-archive,
.tech-page,
.tech-search { padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem); }
.tech-home__eyebrow,
.tech-section-kicker { color: var(--tech-blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tech-home__intro { margin: 0 0 clamp(2rem, 4vw, 3.75rem); }
.tech-home__intro h1 { font-size: clamp(2.35rem, 5.4vw, 4.9rem); letter-spacing: -.055em; line-height: 1.06; margin: .4rem 0 1rem; max-width: 920px; text-wrap: balance; word-break: keep-all; }
.tech-home__intro p { color: var(--tech-muted); font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.75; max-width: 720px; }

.tech-lead-query { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.tech-lead-query,
.tech-lead-query .wp-block-post-template,
.tech-lead-query .wp-block-post-template > li,
.tech-lead-grid { max-width: none; width: 100%; }
.tech-lead-query .wp-block-post-template { margin: 0; padding: 0; }
.tech-lead-grid { background: var(--tech-navy); border-radius: 22px; box-shadow: var(--tech-shadow); gap: 0; min-height: 520px; overflow: hidden; }
.tech-lead-grid > .wp-block-column { margin: 0; }
.tech-lead-grid .wp-block-post-featured-image { height: 100%; margin: 0; min-height: 520px; }
.tech-lead-grid .wp-block-post-featured-image a { height: 100%; }
.tech-lead-grid .wp-block-post-featured-image img { height: 100%; object-fit: cover; width: 100%; }
.tech-lead-panel { color: #fff; height: 100%; justify-content: center; padding: clamp(2rem, 5vw, 4.6rem); }
.tech-lead-panel .wp-block-post-terms { color: #8ec2ff; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tech-lead-panel .wp-block-post-terms a { color: inherit; text-decoration: none; }
.tech-lead-panel .wp-block-post-title { font-size: clamp(2rem, 3.8vw, 3.7rem); letter-spacing: -.045em; line-height: 1.14; margin: .8rem 0 1.1rem; text-wrap: balance; word-break: keep-all; }
.tech-lead-panel .wp-block-post-title a { color: #fff; text-decoration: none; }
.tech-lead-panel .wp-block-post-excerpt { color: #c7d4e3; line-height: 1.72; }
.tech-lead-panel .wp-block-post-date { color: #9eafc2; font-size: .84rem; }
.tech-lead-panel .wp-block-read-more { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; display: inline-block; font-size: .86rem; font-weight: 700; margin-top: 1rem; padding: .66rem 1rem; text-decoration: none; width: fit-content; }
.tech-lead-panel .wp-block-read-more:hover { background: #fff; color: var(--tech-navy); }

.tech-trust-strip { background: var(--tech-paper); border: 1px solid var(--tech-line); border-radius: var(--tech-radius); box-shadow: 0 8px 26px rgba(16,32,51,.045); gap: 0; margin: 0 0 clamp(3.5rem, 7vw, 6.5rem); padding: 0; }
.tech-trust-strip > .wp-block-column { padding: 1.35rem 1.5rem; }
.tech-trust-strip > .wp-block-column + .wp-block-column { border-left: 1px solid var(--tech-line); }
.tech-trust-strip strong { display: block; font-size: .93rem; margin-bottom: .28rem; }
.tech-trust-strip p { color: var(--tech-muted); font-size: .82rem; line-height: 1.55; margin: 0; }

.tech-section-heading { align-items: end; border-bottom: 2px solid var(--tech-ink); margin-bottom: 1.6rem; padding-bottom: .85rem; }
.tech-section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); letter-spacing: -.04em; margin: 0; }
.tech-section-heading p { color: var(--tech-muted); font-size: .9rem; margin: 0; }
.tech-card-grid { gap: clamp(1.2rem, 2.2vw, 2rem); }
.tech-card { background: var(--tech-paper); border: 1px solid var(--tech-line); border-radius: var(--tech-radius); height: 100%; overflow: hidden; padding: 0 1.2rem 1.25rem; transition: transform .2s ease, box-shadow .2s ease; }
.tech-card:hover { box-shadow: var(--tech-shadow); transform: translateY(-3px); }
.tech-card .wp-block-post-featured-image { background: #dfe8f2; margin: 0 -1.2rem; }
.tech-card .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.tech-card .wp-block-post-terms { color: var(--tech-blue); font-size: .76rem; font-weight: 800; margin-top: 1rem; }
.tech-card .wp-block-post-terms a { color: inherit; text-decoration: none; }
.tech-card .wp-block-post-title { font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.4; margin: .52rem 0; word-break: keep-all; }
.tech-card .wp-block-post-title a { color: var(--tech-ink); text-decoration: none; }
.tech-card .wp-block-post-excerpt { color: var(--tech-muted); font-size: .9rem; line-height: 1.65; }
.tech-card .wp-block-post-date { color: var(--tech-muted); font-size: .78rem; }

.tech-category-deck { margin-top: clamp(3.5rem, 7vw, 6rem); }
.tech-category-links { gap: .75rem; }
.tech-category-links .wp-block-button__link { background: transparent; border: 1px solid var(--tech-line); border-radius: 999px; color: var(--tech-ink); font-size: .9rem; font-weight: 700; padding: .75rem 1.15rem; }
.tech-category-links .wp-block-button__link:hover { background: var(--tech-navy); border-color: var(--tech-navy); color: #fff; }

.tech-single { background: var(--tech-paper); }
.tech-single-hero { background: var(--tech-navy); gap: 0; margin: 0; min-height: 590px; }
.tech-single-hero > .wp-block-column { margin: 0; }
.tech-single-hero .wp-block-post-featured-image { height: 100%; margin: 0; min-height: 590px; }
.tech-single-hero .wp-block-post-featured-image img { height: 100%; object-fit: cover; width: 100%; }
.tech-single-hero__panel { color: #fff; height: 100%; justify-content: center; padding: clamp(2.1rem, 5.8vw, 5.6rem); }
.tech-single-hero__panel .wp-block-post-terms { color: #8ec2ff; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tech-single-hero__panel .wp-block-post-terms a { color: inherit; text-decoration: none; }
.tech-single-hero__panel .wp-block-post-title { font-size: clamp(2.25rem, 4.3vw, 4.35rem); letter-spacing: -.052em; line-height: 1.1; margin: .9rem 0 1.15rem; max-width: 760px; text-wrap: balance; word-break: keep-all; }
.tech-single-hero__panel .wp-block-post-excerpt { color: #c8d4e1; font-size: 1.02rem; line-height: 1.7; }
.tech-single-meta { color: #aab8c8; font-size: .84rem; gap: .5rem; }
.tech-single-meta p,
.tech-single-meta .wp-block-post-author-name { margin: 0; }
.tech-method-strip { background: var(--tech-sky); border-bottom: 1px solid #cfe0f4; color: #28445f; padding: .95rem clamp(1rem, 3vw, 2rem); }
.tech-method-strip p { font-size: .84rem; margin: 0; text-align: center; }
.tech-content-grid { align-items: flex-start; gap: clamp(2.4rem, 5vw, 5rem); margin: 0 auto; max-width: 1180px; padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 3vw, 2rem); }
.tech-content-grid > .wp-block-column { min-width: 0; }
.single-post .entry-content { font-size: clamp(1rem, .97rem + .15vw, 1.08rem); line-height: 1.84; max-width: 760px; }
.single-post .entry-content > :first-child { margin-top: 0; }
.single-post .entry-content p { color: #26384d; }
.single-post .entry-content h2 { border-left: 4px solid var(--tech-blue); font-size: clamp(1.55rem, 2.5vw, 2.05rem); line-height: 1.35; margin-top: 2.7em; padding-left: .7em; word-break: keep-all; }
.single-post .entry-content h3 { font-size: 1.28rem; margin-top: 2.1em; }
.single-post .entry-content a { color: var(--tech-blue-deep); }
.single-post .entry-content blockquote,
.single-post .entry-content .is-style-editorial-note { background: var(--tech-sky); border: 1px solid #cfe0f4; border-radius: 13px; margin: 1.7em 0; padding: 1.15em 1.3em; }
.single-post .entry-content .wp-block-table { overflow-x: auto; }
.single-post .entry-content table { border: 1px solid var(--tech-line); border-collapse: separate; border-radius: 10px; border-spacing: 0; display: table; max-width: 100%; overflow: hidden; width: 100%; }
.single-post .entry-content th { background: #f3f7fb; }
.single-post .entry-content th,
.single-post .entry-content td { border-bottom: 1px solid var(--tech-line); padding: .76em .88em; }
.single-post .entry-content .editorial-sources { border-top: 1px solid var(--tech-line); margin-top: 4.5rem; padding-top: 2rem; }
.single-post .entry-content .editorial-sources h2 { border: 0; font-size: 1.15rem; margin: 0 0 1rem; padding: 0; }
.single-post .entry-content .editorial-disclosure { background: #f7f9fc; border: 1px solid var(--tech-line); border-radius: 10px; color: var(--tech-muted); font-size: .86rem; margin-top: 3rem; padding: 1rem 1.15rem; }
.single-post .entry-content .editorial-disclosure p { margin: 0; }

.tech-sidebar { border-left: 1px solid var(--tech-line); padding-left: clamp(1.3rem, 2.8vw, 2.2rem); position: sticky; top: 1.5rem; }
.tech-sidebar__label { color: var(--tech-blue); font-size: .74rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 .5rem; text-transform: uppercase; }
.tech-sidebar h2 { font-size: 1.3rem; margin: 0 0 1.1rem; }
.tech-sidebar .wp-block-post-template { display: grid; gap: 1rem; }
.tech-sidebar .wp-block-post-template > li { border-bottom: 1px solid var(--tech-line); padding-bottom: 1rem; }
.tech-sidebar .wp-block-post-title { font-size: .98rem; line-height: 1.45; margin: 0; }
.tech-sidebar .wp-block-post-title a { color: var(--tech-ink); text-decoration: none; }
.tech-sidebar .wp-block-post-date { color: var(--tech-muted); font-size: .75rem; margin-top: .35rem; }
.tech-sidebar__trust { background: var(--tech-sky); border-radius: 12px; color: #28445f; font-size: .83rem; line-height: 1.65; margin-top: 2rem; padding: 1.1rem; }
.tech-post-nav { border-top: 1px solid var(--tech-line); margin-top: 3.5rem; padding-top: 1.5rem; }
.tech-post-nav a { color: var(--tech-ink); font-weight: 700; text-decoration: none; }

.tech-archive__header h1,
.tech-search h1,
.tech-page .wp-block-post-title { font-size: clamp(2.25rem, 5vw, 4.4rem); letter-spacing: -.055em; line-height: 1.08; text-wrap: balance; word-break: keep-all; }
.tech-archive__header { border-bottom: 2px solid var(--tech-ink); margin-bottom: 2rem; padding-bottom: 1rem; }
.tech-pagination { border-top: 1px solid var(--tech-line); margin-top: 2.5rem; padding-top: 1.3rem; }
.tech-empty { background: #fff; border: 1px solid var(--tech-line); border-radius: var(--tech-radius); padding: 2rem; }

.tech-footer { background: var(--tech-navy); color: #d3ddea; margin-top: 0; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem); }
.tech-footer .wp-block-site-title { font-size: 1.45rem; font-weight: 800; }
.tech-footer .wp-block-site-title a { color: #fff; text-decoration: none; }
.tech-footer p { color: #9fb0c3; font-size: .84rem; line-height: 1.7; }
.tech-footer a { color: #cfe3fa; }
.tech-footer code { background: transparent; border: 0; color: inherit; font-family: inherit; font-size: inherit; padding: 0; }

@media (max-width: 900px) {
  .tech-lead-grid.wp-block-columns,
  .tech-single-hero.wp-block-columns { display: grid !important; grid-template-columns: minmax(0, 1fr); min-height: 0; width: 100%; }
  .tech-lead-grid.wp-block-columns > .wp-block-column,
  .tech-single-hero.wp-block-columns > .wp-block-column { flex-basis: auto !important; min-width: 0; width: 100%; }
  .tech-lead-grid .wp-block-post-featured-image,
  .tech-single-hero .wp-block-post-featured-image { aspect-ratio: 16/9 !important; height: auto; min-height: 0; width: 100%; }
  .tech-lead-grid .wp-block-post-featured-image a,
  .tech-single-hero .wp-block-post-featured-image a { display: block; height: 100%; }
  .tech-lead-panel,
  .tech-single-hero__panel { height: auto; min-width: 0; }
  .tech-lead-panel .wp-block-post-title,
  .tech-single-hero__panel .wp-block-post-title { font-size: clamp(1.8rem, 6vw, 2.6rem); overflow-wrap: anywhere; }
  .tech-content-grid { display: block; }
  .tech-sidebar { border-left: 0; border-top: 1px solid var(--tech-line); margin-top: 3.5rem; padding: 2rem 0 0; position: static; }
  .tech-trust-strip { display: block; }
  .tech-trust-strip > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--tech-line); }
}

@media (max-width: 700px) {
  .tech-header__edition,
  .tech-header__tagline { display: none; }
  .tech-header__inner { min-height: 64px; }
  .tech-card-grid { grid-template-columns: 1fr !important; }
  .tech-lead-panel,
  .tech-single-hero__panel { padding: 1.75rem 1.25rem 2rem; }
  .tech-home,
  .tech-archive,
  .tech-page,
  .tech-search { padding-inline: 1rem; }
  .single-post .entry-content { line-height: 1.76; }
}
