/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://missionpeoplesystems.com
 Description:  Child theme for GeneratePress — Karl Paizer
 Author:       Karl Paizer
 Template:     generatepress
 Version:      1.1.0
 Text Domain:  generatepress-child
*/

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@100;300;400;700;900&family=Noto+Sans+JP:wght@300;400;500;700&family=DM+Sans:wght@400;500;700&display=swap');

/* ── BRAND VARIABLES ── */
:root {
  --kp-blue:        #0033cc;
  --kp-blue-dark:   #002299;
  --kp-blue-pale:   #e8eeff;
  --kp-orange:      #ff8000;
  --kp-orange-pale: #fff3e6;
  --kp-ink:         #0f0f1a;
  --kp-mid:         #4a4a5e;
  --kp-light:       #8888a0;
  --kp-rule:        #e0e0ea;
  --kp-bg:          #f7f7fb;
}

/* ── PROGRESS BAR ── */
#kp-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--kp-orange);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── FULL-WIDTH CONTENT AREA FOR OUR TEMPLATE ── */
.page-template-template-karl-article .content-area,
.page-template-template-karl-article #primary {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
  padding: 0 !important;
}
.page-template-template-karl-article .widget-area,
.page-template-template-karl-article #secondary {
  display: none !important;
}
.page-template-template-karl-article .site-main {
  padding: 0 !important;
  margin: 0 !important;
}
.page-template-template-karl-article .entry-header,
.page-template-template-karl-article .entry-footer {
  display: none !important;
}

/* ── ARTICLE HERO ── */
.kp-hero {
  display: block;
  width: 100%;
  background: #fff;
  padding: 48px 40px 36px;
  border-bottom: 1px solid var(--kp-rule);
  box-sizing: border-box;
}

.kp-category-tag {
  display: inline-block;
  background: var(--kp-blue);
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 18px;
  text-decoration: none;
}

.kp-hero-title {
  font-family: 'M PLUS 1p', sans-serif !important;
  font-size: clamp(22px, 4vw, 30px) !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  color: var(--kp-ink) !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: none !important;
  letter-spacing: 0.01em;
}

.kp-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.kp-meta-item {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--kp-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kp-meta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--kp-orange);
  flex-shrink: 0;
}

/* ── ARTICLE CONTENT ── */
.kp-content {
  display: block;
  width: 100%;
  background: #fff;
  padding: 44px 40px 48px;
  box-sizing: border-box;
}

.kp-content p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15.5px;
  line-height: 2;
  color: #2a2a3a;
  margin-bottom: 20px;
}
.kp-content strong { font-weight: 700; }
.kp-content em     { font-style: italic; }
.kp-content cite   { display: block; font-size: 12px; color: var(--kp-light); font-style: italic; margin-top: 8px; }

/* ── HEADINGS ── */
.kp-content h2 {
  font-family: 'M PLUS 1p', sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: var(--kp-blue) !important;
  margin: 44px 0 18px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--kp-blue-pale) !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  background: none !important;
}
.kp-content h3 {
  font-family: 'M PLUS 1p', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--kp-ink) !important;
  margin: 28px 0 12px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kp-content h3::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--kp-orange);
  flex-shrink: 0;
}

/* ── LISTS ── */
.kp-content ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.kp-content ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: #2a2a3a;
}
.kp-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kp-orange);
}
.kp-content ol { list-style: none; padding: 0; margin: 16px 0 20px; counter-reset: ol-counter; }
.kp-content ol li {
  counter-increment: ol-counter;
  padding: 10px 0 10px 44px;
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: #2a2a3a;
  border-bottom: 1px solid var(--kp-rule);
}
.kp-content ol li:first-child { border-top: 1px solid var(--kp-rule); }
.kp-content ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0; top: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--kp-blue);
}

/* ── BLOCKQUOTE ── */
.kp-content blockquote {
  background: var(--kp-blue-pale);
  border-left: 4px solid var(--kp-blue);
  border-right: none;
  border-top: none;
  border-bottom: none;
  padding: 16px 24px;
  margin: 24px 0;
  font-style: normal;
  color: var(--kp-blue-dark);
  font-size: 15px;
  line-height: 1.85;
}
.kp-content blockquote p {
  color: var(--kp-blue-dark) !important;
  margin-bottom: 0 !important;
}

/* ── CALLOUT ── */
.kp-callout {
  background: var(--kp-orange-pale);
  border-left: 4px solid var(--kp-orange);
  padding: 16px 20px;
  margin: 24px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--kp-ink);
  line-height: 1.75;
}

/* ── SECTION RULE ── */
.kp-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, var(--kp-blue-pale), transparent);
  margin: 36px 0;
}

/* ── POINT BLOCKS ── */
.kp-point-block { margin: 44px 0; border-top: 3px solid var(--kp-blue); }
.kp-point-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--kp-blue);
  padding: 8px 20px 8px 16px;
  margin-bottom: 20px;
}
.kp-point-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.kp-point-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 24px;
  color: #fff; line-height: 1;
}
.kp-point-block > h2 {
  border-bottom: none !important;
  margin-top: 0 !important;
}

/* ── GWC ITEMS ── */
.kp-gwc-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 24px; }
.kp-gwc-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px;
  background: var(--kp-bg);
  border: 1px solid var(--kp-rule);
}
.kp-gwc-badge {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em;
  color: #fff; background: var(--kp-orange);
  padding: 4px 11px; flex-shrink: 0;
  margin-top: 1px; white-space: nowrap;
}
.kp-gwc-text { font-family: 'Noto Sans JP', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--kp-ink); line-height: 1.5; }
.kp-gwc-text span { display: block; font-size: 12px; font-weight: 400; color: var(--kp-mid); margin-top: 3px; line-height: 1.6; }

/* ── LEVEL BLOCKS ── */
.kp-level-blocks { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.kp-level-block { display: grid; grid-template-columns: 80px 1fr; border: 1px solid var(--kp-rule); overflow: hidden; }
.kp-level-label { background: var(--kp-blue); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 8px; text-align: center; }
.kp-level-label-top { font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 500; letter-spacing: 0.18em; color: rgba(255,255,255,0.55); text-transform: uppercase; margin-bottom: 4px; }
.kp-level-label-num { font-family: 'DM Sans', sans-serif; font-size: 28px; font-weight: 700; color: #fff; line-height: 1; }
.kp-level-content { padding: 18px 22px; background: #fff; }
.kp-level-content h4 { font-family: 'M PLUS 1p', sans-serif; font-size: 14px; font-weight: 700; color: var(--kp-blue); margin: 0 0 8px; }
.kp-level-content p { font-size: 14px !important; line-height: 1.85 !important; margin-bottom: 0 !important; color: #3a3a4a !important; }

/* ── AUTHOR BIO ── */
.kp-author { display: flex; gap: 24px; align-items: flex-start; margin-top: 52px; padding-top: 36px; border-top: 2px solid var(--kp-rule); }
.kp-author-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--kp-blue); display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 22px; color: #fff; flex-shrink: 0; border: 3px solid var(--kp-orange); }
.kp-author-role { font-family: 'DM Sans', sans-serif; font-size: 10px; color: var(--kp-orange); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 5px; }
.kp-author-name { font-family: 'M PLUS 1p', sans-serif; font-size: 16px; font-weight: 700; color: var(--kp-ink); margin-bottom: 8px; }
.kp-author-bio { font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; color: var(--kp-mid); line-height: 1.8; }

/* ── BOTTOM CTA ── */
.kp-cta { background: var(--kp-blue); padding: 30px 32px; margin-top: 44px; text-align: center; }
.kp-cta p { color: rgba(255,255,255,0.8) !important; font-size: 14px !important; margin-bottom: 16px !important; }
.kp-cta a { display: inline-block; background: var(--kp-orange); color: #fff !important; text-decoration: none; font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; padding: 13px 32px; }
.kp-cta a:hover { background: #e67000; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .kp-hero    { padding: 28px 20px; }
  .kp-content { padding: 28px 20px 36px; }
  .kp-author  { flex-direction: column; }
  .kp-level-block { grid-template-columns: 64px 1fr; }
  .kp-cta     { padding: 24px 20px; }
}
