/*
Theme Name: 알려줄태니 Support
Theme URI: https://taeny.kr
Author: 알려줄태니
Description: 공공지원 공고의 자격, 실제 비용, 일정, 공식 출처를 모바일에서 빠르게 확인하는 테마.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: taeny-support
*/

:root {
  --taeny-bg: #f8f7f2;
  --taeny-surface: #fffef9;
  --taeny-ink: #161c19;
  --taeny-muted: #647069;
  --taeny-green: #075d46;
  --taeny-green-deep: #034f3c;
  --taeny-green-soft: #edf5f0;
  --taeny-line: #d9e5dd;
  --taeny-warm: #8a682d;
  --taeny-warm-soft: #faf5e9;
  --taeny-table: #f3f6f3;
  --taeny-shadow: 0 14px 36px rgba(24, 55, 44, 0.08);
  --taeny-radius: 14px;
  --taeny-content: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--taeny-ink);
  background: var(--taeny-bg);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--taeny-green); text-underline-offset: 0.18em; }
a:hover { color: var(--taeny-green-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid #71b89e; outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(7, 93, 70, 0.12);
  background: rgba(248, 247, 242, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--taeny-ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: 23px;
}

.site-brand small {
  color: var(--taeny-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: #39433e; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: var(--taeny-green); }

.site-main { min-height: calc(100vh - 250px); }

.article-shell {
  width: min(var(--taeny-content), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 96px;
}

.article-header { margin-bottom: 26px; }

.article-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 15px;
  color: var(--taeny-green);
  font-size: 14px;
  font-weight: 800;
}

.article-eyebrow span + span::before { content: "·"; margin-right: 12px; color: #97aaa1; }

.article-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(35px, 6vw, 52px);
  line-height: 1.19;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.article-description {
  margin: 17px 0 0;
  color: var(--taeny-green);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 750;
}

.decision-panel {
  margin: 30px 0 38px;
  padding: 26px;
  border: 1px solid #c6dcd0;
  border-radius: var(--taeny-radius);
  background: var(--taeny-surface);
  box-shadow: var(--taeny-shadow);
}

.decision-list { display: grid; margin: 0; padding: 0; list-style: none; }

.decision-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 0;
  border-bottom: 1px solid var(--taeny-line);
}

.decision-item:last-child { border-bottom: 0; }

.decision-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--taeny-green);
  font-size: 15px;
  font-weight: 900;
}

.decision-question { font-weight: 820; letter-spacing: -0.025em; }

.decision-tag {
  padding: 4px 9px;
  border: 1px solid #b8d4c6;
  border-radius: 6px;
  color: var(--taeny-green);
  background: #f8fcf9;
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 800;
}

.decision-caution {
  margin: 18px 0 0;
  color: var(--taeny-warm);
  font-size: 14px;
  font-weight: 750;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.cost-card {
  padding: 22px 18px 20px;
  border: 1px solid #eadfca;
  border-radius: 10px;
  background: var(--taeny-warm-soft);
  text-align: center;
}

.cost-card strong { display: block; color: var(--taeny-green); font-size: 31px; line-height: 1.2; letter-spacing: -0.035em; }
.cost-card strong small { font-size: 14px; }
.cost-card > span { display: block; margin-top: 2px; font-size: 17px; font-weight: 850; }
.cost-card hr { width: 74%; margin: 14px auto 12px; border: 0; border-top: 1px solid #e3d7c1; }
.cost-card p { margin: 0; font-size: 13px; line-height: 1.55; }
.cost-card p b { display: block; margin-top: 3px; color: var(--taeny-green); font-size: 19px; }

.deadline-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--taeny-green);
  border-radius: 8px;
  color: var(--taeny-green);
  background: var(--taeny-green-soft);
}

.deadline-bar span { font-size: 15px; font-weight: 800; }
.deadline-bar strong { justify-self: end; font-size: clamp(20px, 5vw, 27px); letter-spacing: -0.035em; }

.official-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  margin-top: 14px;
  padding: 13px 20px;
  border-radius: 7px;
  color: #fff;
  background: var(--taeny-green);
  text-decoration: none;
  font-weight: 850;
}

.official-cta:hover { color: #fff; background: var(--taeny-green-deep); }

.calendar-shortcuts {
  margin: 0 0 46px;
  padding: 24px;
  border: 1px solid var(--taeny-line);
  border-radius: var(--taeny-radius);
  background: #fff;
}

.calendar-kicker { margin: 0; color: var(--taeny-green); font-size: 13px; font-weight: 900; }
.calendar-shortcuts h2 { margin: 3px 0 7px !important; padding: 0 !important; border: 0 !important; font-size: 23px !important; }
.calendar-intro { margin: 0 0 19px; color: var(--taeny-muted); font-size: 14px; }
.calendar-event + .calendar-event { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--taeny-line); }
.calendar-event__title { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.calendar-event__title span { color: var(--taeny-green); font-size: 13px; font-weight: 850; }
.calendar-event__title strong { text-align: right; font-size: 16px; }
.calendar-event p { margin: 6px 0 12px; color: var(--taeny-muted); font-size: 13px; line-height: 1.6; }
.calendar-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.calendar-button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 7px;
  border: 1px solid #cbd9d1;
  border-radius: 7px;
  color: #2f3b35;
  background: #fbfdfb;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.calendar-button:hover { border-color: var(--taeny-green); color: var(--taeny-green); }
.calendar-note { display: block; margin-top: 14px; color: #707a75; font-size: 12px; line-height: 1.55; }

.article-content > *:first-child { margin-top: 0; }

.article-content h2 {
  margin: 68px 0 20px;
  padding-top: 12px;
  border-top: 2px solid var(--taeny-green);
  font-size: clamp(28px, 5vw, 35px);
  line-height: 1.32;
  letter-spacing: -0.045em;
}

.article-content h3 {
  margin: 38px 0 13px;
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.article-content p { margin: 0 0 18px; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 1.3em; }
.article-content li + li { margin-top: 8px; }
.article-content strong { font-weight: 850; }
.article-content code { padding: 0.12em 0.34em; border-radius: 4px; background: #eef2ef; font-size: 0.9em; }

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--taeny-green);
  border-radius: 0 10px 10px 0;
  background: var(--taeny-green-soft);
}
.article-content blockquote p:last-child { margin-bottom: 0; }

.table-scroll {
  width: 100%;
  margin: 20px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--taeny-line);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.table-scroll th, .table-scroll td { padding: 13px 14px; border-right: 1px solid #e5ebe7; border-bottom: 1px solid #e5ebe7; vertical-align: top; }
.table-scroll th:last-child, .table-scroll td:last-child { border-right: 0; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll thead th { color: var(--taeny-green-deep); background: var(--taeny-table); font-weight: 850; text-align: left; }
.table-scroll tbody tr:nth-child(even) { background: #fbfcfb; }
.table-scroll td[align="right"], .table-scroll th[align="right"] { text-align: right; white-space: nowrap; }

.article-disclaimer {
  margin-top: 70px;
  padding: 22px;
  border-radius: 10px;
  color: #53605a;
  background: #eef1ef;
  font-size: 13px;
  line-height: 1.7;
}

.article-footer { margin-top: 26px; padding-top: 22px; border-top: 1px solid #d9dedb; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { padding: 5px 10px; border-radius: 999px; color: #496057; background: #e9efeb; font-size: 12px; text-decoration: none; }

.site-footer { padding: 44px 0 58px; border-top: 1px solid #dde3df; color: #68736d; background: #f1f2ee; }
.site-footer__inner { display: grid; gap: 8px; }
.site-footer strong { color: #34423b; font-size: 18px; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.65; }

.archive-shell { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 96px; }
.archive-title { margin: 0 0 30px; font-size: 40px; letter-spacing: -0.05em; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card { padding: 24px; border: 1px solid var(--taeny-line); border-radius: var(--taeny-radius); background: #fff; box-shadow: var(--taeny-shadow); }
.post-card h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.4; }
.post-card h2 a { color: var(--taeny-ink); text-decoration: none; }
.post-card p { margin: 0 0 14px; color: var(--taeny-muted); font-size: 14px; }
.post-card time { color: var(--taeny-green); font-size: 12px; font-weight: 800; }

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.72; }
  .site-header__inner { width: min(100% - 30px, 1120px); min-height: 60px; }
  .site-brand { font-size: 20px; }
  .site-brand small { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .article-shell { width: min(100% - 30px, var(--taeny-content)); padding: 34px 0 72px; }
  .article-title { font-size: 36px; line-height: 1.22; }
  .article-description { font-size: 15px; }
  .decision-panel { margin-top: 24px; padding: 15px; box-shadow: none; }
  .decision-item { grid-template-columns: 31px minmax(0, 1fr) auto; gap: 10px; min-height: 58px; }
  .decision-number { width: 29px; height: 29px; font-size: 13px; }
  .decision-question { font-size: 14px; }
  .cost-grid { gap: 10px; }
  .cost-card { padding: 18px 10px 16px; }
  .cost-card strong { font-size: 28px; }
  .cost-card > span { font-size: 15px; }
  .deadline-bar { gap: 10px; padding: 14px 15px; }
  .deadline-bar strong { font-size: 21px; }
  .calendar-shortcuts { padding: 19px 15px; }
  .calendar-event__title { display: grid; gap: 2px; }
  .calendar-event__title strong { text-align: left; }
  .calendar-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-content h2 { margin-top: 54px; font-size: 29px; }
  .article-content h3 { margin-top: 32px; font-size: 21px; }
  .table-scroll { margin-right: -15px; width: calc(100% + 15px); border-radius: 9px 0 0 9px; }
  .post-list { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .article-title { font-size: 33px; }
  .decision-panel { margin-left: -2px; margin-right: -2px; }
  .decision-question { font-size: 13.5px; }
  .decision-tag { padding: 4px 7px; }
  .cost-card strong { font-size: 26px; }
  .deadline-bar { grid-template-columns: 1fr; gap: 2px; }
  .deadline-bar strong { justify-self: start; }
}

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