/* Section accents identify content while keeping the page itself black. */
body.pk-home .pk-training { --pk-section-accent: #e6bd75; }
body.pk-home .pk-stats-section { --pk-section-accent: #85c8b7; }
body.pk-home .pk-selected-work { --pk-section-accent: #8eb9f7; }
body.pk-home .pk-extensions { --pk-section-accent: #79cdbb; }
body.pk-home .pk-articles { --pk-section-accent: #e6bd75; }
body.pk-home .pk-capabilities { --pk-section-accent: #b6a5e8; }
body.pk-home .pk-restored-skills { --pk-section-accent: #b6a5e8; }
body.pk-home .experience { --pk-section-accent: #ef9b8d; }
body.pk-home .service { --pk-section-accent: #e6bd75; }
body.pk-home .pk-repository-section { --pk-section-accent: #79cdbb; }
body.pk-home .pk-heatmap-section { --pk-section-accent: #8eb9f7; }
body.pk-home .contact { --pk-section-accent: #85c8b7; }
body.pk-home section :is(.pk-section-heading h2, .section__header h2, .pk-training-panel h2, .pk-repo-head h2) {
  color: var(--pk-section-accent, #f3f3f3) !important;
}
body.pk-home section :is(.pk-section-heading .pk-eyebrow, .section__header > .sub-title) {
  color: var(--pk-section-accent, #c4c4c4) !important;
  border-left-color: var(--pk-section-accent, #ee3d36);
}

/* All supporting text uses the articleship paragraph's 16px minimum. */
body.pk-home :is(p, a, button, label, input, textarea, select, small, span, dt, dd, li, td, th, strong, b, em, time):not(:is(h1, h2, h3, h4, h5, h6) *):not(.title-xl, .title-xxl, .title-lg) {
  font-size: 16px !important;
}
body.pk-home :is(.pk-eyebrow, .pk-keyword-label, .pk-intro-label, .pk-block-label, .pk-stat-label, .pk-stat-detail, .pk-repo-badge, .pk-repo-status, .pk-repo-count, .pk-hm-subheading, .pk-hm-tip, .pkl-text, .pk-extension-mark-tax) {
  font-size: 16px !important;
}
body.pk-home .pk-capability-grid h3 { font-size: 18px !important; }
body.pk-home .contact__info-single h5 { font-size: 18px !important; }
body.pk-home .footer__inner h4 { font-size: 16px !important; }
.pk-home .footer__intro .pk-footer-invitation { margin: 24px 0 0; color: #f3f3f3; font-size: clamp(28px, 3.5vw, 44px); font-weight: 500; line-height: 1.3; letter-spacing: -.04em; }
.pk-home .pk-footer-contact { margin-top: 24px; }
body.pk-home :is(.pk-eyebrow, .pk-extension-category, .pk-extension-store, .pk-work-category, .pk-index, .pk-status, .pk-intro-label, .pk-repo-status, .pk-repo-meta span, .pk-capability-number) {
  line-height: 1.7 !important;
  letter-spacing: .02em !important;
  opacity: 1 !important;
}
body.pk-home :is(.pk-extension-link, .pk-text-link, .pk-app-launch, .pk-intro-contact, .pk-extension-store, .pk-tech-stack span, .pk-credentials span) { line-height: 1.7 !important; }

/* Cards stretch together and their final links share a baseline. */
.pk-home .pk-extension-grid { align-items: stretch; }
.pk-home .pk-extension-card { height: 100%; }
.pk-home .pk-extension-description { margin-bottom: 24px; }
.pk-home .pk-extension-link { margin-top: auto; min-height: 56px; padding-top: 18px; }
.pk-home .pk-extension-category { min-height: 55px; }
.pk-home .pk-extension-top { flex-wrap: wrap; }
.pk-home .pk-extension-store { flex-wrap: wrap; }
.pk-home .pk-section-heading { align-items: end; }
.pk-home .pk-section-heading > p { max-width: 430px; }
.pk-home .pk-section-heading > div { min-width: 0; }

/* Remove the oversized space between the About bar and its content. */
.pk-home .pk-about-top { align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; }
.pk-home .pk-status { flex-wrap: wrap; }
.pk-home .pk-about-intro { margin-top: 0; padding: 32px 0 36px; }
.pk-home .pk-intro-label { margin-bottom: 18px; }
.pk-home .pk-intro-big { margin-top: 20px; }
.pk-home .pk-profile { margin-top: 0; }
.pk-home .pk-experience-strip > span { max-width: none; }
.pk-home .pk-credentials { gap: 8px 16px; }
.pk-home .pk-tech-stack { gap: 10px 0; }
.pk-home .pk-portrait-caption { gap: 16px; }
.pk-home .pk-keyword-band { grid-template-columns: 165px minmax(0, 1fr) 36px; }
.pk-home .pk-keyword-label { letter-spacing: .02em; line-height: 1.6; }
.pk-home .pk-preview-bar { flex-wrap: wrap; letter-spacing: .02em; line-height: 1.6; }
.pk-home .pk-repo-toolbar, .pk-home .pk-repo-footer { flex-wrap: wrap; }
.pk-home .pk-repo-badge { letter-spacing: .02em; }
.pk-home .pk-hm-tip { max-width: min(320px, calc(100vw - 50px)); white-space: normal; }

@media (max-width: 1199px) {
  .pk-home .pk-extension-top { align-items: start; }
}
@media (max-width: 767px) {
  .pk-home .pk-section-heading { align-items: start; }
  .pk-home .pk-extension-category { min-height: 0; }
  .pk-home .pk-extension-link { margin-top: 0; }
  .pk-home .pk-about-intro { padding: 26px 0 30px; }
  .pk-home .pk-status { line-height: 1.8 !important; }
  .pk-home .pk-experience-strip { grid-template-columns: minmax(0, 1fr); }
  .pk-home .pk-keyword-band { grid-template-columns: minmax(0, 1fr) 36px; }
  .pk-home .pk-keyword-label { display: none; }
  .pk-home .pk-extension-store { font-size: 16px !important; }
  .pk-home .pk-repo-action { width: 100%; justify-content: space-between; }
  .pk-home .pk-credentials span + span::before { display: none; }
  .pk-home .pk-credentials span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .pk-home .pk-keyword-band { grid-template-columns: minmax(0, 1fr); }
}

/* Professional layout refinement: balanced measures, real work and clear rhythm. */
.pk-home :is(.pk-selected-work, .pk-extensions, .pk-capabilities) { padding-top: 80px; }
.pk-home .pk-intro-grid { align-items: center; gap: 64px; }
.pk-home .pk-intro h1 { margin-bottom: 0; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.13; letter-spacing: -.06em; }
.pk-home .pk-intro h1 span { color: #bdbdbd; }
.pk-home .pk-intro-description { max-width: 550px; margin-top: 26px; }
.pk-home .pk-intro-actions { gap: 14px; margin-top: 28px; }
.pk-home .pk-intro-actions .pk-button { min-height: 54px; padding: 14px 22px; gap: 24px; }
.pk-home .pk-intro-quick-links { gap: 0 28px; }
.pk-home .pk-portrait-card { max-width: 460px; justify-self: end; padding: 12px 0 0; }
.pk-home .pk-portrait-image { height: 420px; }
.pk-home .pk-portrait-caption { border-top-color: #525252; padding-top: 20px; }
.pk-home .pk-section-heading { gap: 40px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #303030; }
.pk-home .pk-section-heading h2 { max-width: 680px; font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1.25; letter-spacing: -.045em; }
.pk-home .pk-section-heading .pk-eyebrow { margin-bottom: 14px; padding-left: 13px; border-left: 2px solid #ee3d36; }
.pk-home .pk-section-heading > p { flex: 0 1 390px; margin-bottom: 0; }
.pk-home .pk-heading-compact { border-bottom: 0; padding-bottom: 0; }
.pk-home .pk-training-panel { display: grid; grid-template-columns: .8fr 1.5fr; gap: 28px 40px; padding-block: 34px; border-block: 1px solid #343434; }
.pk-home .pk-training-panel h2 { font-size: 30px; line-height: 1.3; }
.pk-home .pk-training-details { margin: 0; gap: 28px; }
.pk-home .pk-training-details dt { margin-bottom: 12px; color: #eee; }
.pk-home .pk-training-links { grid-column: 1 / -1; padding-top: 22px; gap: 16px 34px; }
.pk-home .pk-stat-card { padding: 28px 24px; }
.pk-home .pk-stat-value { font-size: 34px; font-weight: 500; line-height: 1.25; letter-spacing: -.045em; }
.pk-home .pk-stat-label { margin-top: 15px; }
.pk-home .pk-stat-detail { margin-top: 8px; }

/* Each application gets a full-width feature row, rather than a crowded card. */
.pk-home .pk-project-editorial { grid-template-columns: minmax(0, 1fr); gap: 42px; }
.pk-home .pk-project-editorial .pk-app-card { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; overflow: visible; padding-bottom: 34px; }
.pk-home .pk-project-editorial .pk-app-preview { min-width: 0; border: 1px solid #373737; border-radius: 5px; overflow: hidden; }
.pk-home .pk-project-editorial .pk-preview-bar { padding: 13px 15px; border-top: 0; }
.pk-home .pk-project-editorial .pk-work-body { min-width: 0; padding: 0; }
.pk-home .pk-project-editorial h3 { color: #f4f4f4; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.3; font-weight: 500; letter-spacing: -.035em; }
.pk-home .pk-project-editorial .pk-project-details { margin-block: 22px; }
.pk-home .pk-project-editorial .pk-project-details > div + div { margin-top: 18px; }
.pk-home .pk-project-editorial .pk-sample-note { margin-bottom: 0; }
.pk-home .pk-project-editorial .pk-app-links { margin-top: 24px; gap: 16px; padding-top: 20px; }
.pk-home .pk-project-editorial .pk-app-card:nth-child(even) .pk-app-preview { order: 2; }
.pk-home .pk-project-editorial .pk-app-card:nth-child(even) .pk-work-body { order: 1; }
.pk-home .pk-extension-grid { gap: 36px; }
.pk-home .pk-extension-card { padding-top: 26px; border-top: 0; }
.pk-home .pk-extension-card h3 { font-size: 28px; letter-spacing: -.035em; }
.pk-home .pk-extension-top { margin-bottom: 22px; }
.pk-home .pk-extension-mark { width: 56px; height: 56px; flex-basis: 56px; border-radius: 6px; }
.pk-home .pk-extension-link { margin-top: auto; padding-top: 20px; }

/* Restored skill icons, presented as a consistent, readable tool collection. */
.pk-home .pk-restored-skills .skill__tab-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pk-home .pk-restored-skills .skill__tab { width: 100%; min-width: 0; margin: 0; padding: 24px 16px; border: 1px solid #353535; border-radius: 6px; }
.pk-home .pk-restored-skills .skill__tab .thumb { width: 88px; height: 88px; min-width: 0; background: #000; border-radius: 0; }
.pk-home .pk-restored-skills .skill__tab .content { margin-top: 20px !important; }
.pk-home .pk-restored-skills .skill__tab.active { background: #000; color: #fff; border-color: #888; }
.pk-home .pk-restored-skills .skill__tab::before { display: none; }
.pk-home .pk-restored-skills .skill__tab-btns { padding: 5px; border-radius: 6px; }
.pk-home .pk-restored-skills .skill-tab-btn { border-radius: 3px; padding: 11px 22px; }
.pk-home .pk-capability-grid article { padding-top: 28px; padding-bottom: 28px; }
.pk-home .experience__single-content { border-radius: 5px; }
.pk-home .contact__inner { padding: 40px; border-top: 2px solid #666; }
.pk-home .contact__form input:focus, .pk-home .contact__form textarea:focus { border-color: #aaa; outline: 1px solid #aaa; }
.pk-home .footer__intro .pk-footer-invitation { font-size: clamp(32px, 4vw, 54px); margin-top: 22px; }
.pk-home .pk-footer-contact { min-height: 54px; padding-inline: 26px; }
@media (max-width: 991px) {
  .pk-home .pk-intro-grid { gap: 30px; }
  .pk-home .pk-intro h1 { font-size: 42px; }
  .pk-home .pk-portrait-image { height: 340px; }
  .pk-home .pk-project-editorial .pk-app-card { gap: 26px; }
  .pk-home .pk-training-panel { grid-template-columns: minmax(0, 1fr); }
  .pk-home .pk-section-heading { gap: 24px; }
  .pk-home .pk-restored-skills .skill__tab-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pk-home :is(.pk-selected-work, .pk-extensions, .pk-capabilities) { padding-top: 52px; }
  .pk-home .pk-intro h1 { font-size: clamp(31px, 7.8vw, 46px); }
  .pk-home .pk-intro-description { margin-top: 20px; }
  .pk-home .pk-portrait-card { width: 100%; justify-self: center; }
  .pk-home .pk-portrait-image { height: 330px; }
  .pk-home .pk-intro-actions .pk-button { flex: 1 1 auto; padding-inline: 16px; gap: 14px; }
  .pk-home .pk-section-heading { gap: 18px; padding-bottom: 20px; margin-bottom: 25px; }
  .pk-home .pk-section-heading > p { flex: 0 1 auto; }
  .pk-home .pk-section-heading h2 { font-size: 30px; }
  .pk-home .pk-training-panel { padding-block: 28px; gap: 24px; }
  .pk-home .pk-stat-card { padding: 24px 16px; }
  .pk-home .pk-stat-value { font-size: 28px; }
  .pk-home .pk-project-editorial .pk-app-card { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: 28px; }
  .pk-home .pk-project-editorial .pk-app-card:nth-child(even) .pk-app-preview,
  .pk-home .pk-project-editorial .pk-app-card:nth-child(even) .pk-work-body { order: initial; }
  .pk-home .pk-extension-grid { gap: 26px; }
  .pk-home .pk-restored-skills .skill__tab-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pk-home .pk-restored-skills .skill__tab { padding: 20px 12px; }
  .pk-home .contact__inner { padding: 26px 18px; }
}

/* Year-by-year calendar grows automatically, without squeezing month labels. */
.pk-home .pk-hm-year { margin-bottom: 26px; }
.pk-home .pk-hm-year-title { margin: 0 0 12px; font-size: 18px; font-weight: 500; color: #ddd; }
.pk-home .pk-hm-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.pk-home .pk-hm-cell { position: relative; width: 100%; display: grid; place-items: center; padding: 6px 0; border: 1px solid #ffffff25; color: #fff; cursor: pointer; font-family: var(--template-font); }
.pk-home .pk-hm-cell.pk-hm-current { outline: 1px solid #fff; outline-offset: 2px; }
.pk-home .pk-hm-cell.pk-hm-l5 { color: #07160b; }
.pk-home .pk-hm-month { font-size: 16px; line-height: 1.5; }
.pk-home .pk-hm-cell .pk-hm-tip { top: calc(100% + 10px); bottom: auto; max-width: 320px; z-index: 20; color: #e5e5e5; background: #111; }
.pk-home .pk-hm-cell:first-child .pk-hm-tip { left: 0; transform: none; }
.pk-home .pk-hm-cell:last-child .pk-hm-tip { left: auto; right: 0; transform: none; }
.pk-home .pk-hm-legend { flex-wrap: wrap; opacity: 1; gap: 9px; color: #ccc; }
.pk-home .pk-hm-legend i { flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid #ffffff25; }
@media (max-width: 767px) {
  .pk-home .pk-hm-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pk-home .pk-hm-cell .pk-hm-tip,
  .pk-home .pk-hm-cell:first-child .pk-hm-tip,
  .pk-home .pk-hm-cell:last-child .pk-hm-tip { position: fixed; left: 22px; right: 22px; bottom: 22px; top: auto; transform: none; width: auto; max-width: none; white-space: normal; padding: 16px; }
}
