/*
Theme Name: Kinslow Portal
Theme URI: https://kinslowgroup.com/
Author: Kinslow Group
Description: Minimal operations portal theme for Kinslow Group.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: kinslow-portal
*/

:root {
  --kp-bg: #f6f7f9;
  --kp-surface: #ffffff;
  --kp-text: #172033;
  --kp-muted: #536179;
  --kp-border: #d9dee7;
  --kp-red: #c1121f;
  --kp-red-dark: #8f0d17;
  --kp-dark: #111827;
  --kp-link: #b91c1c;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--kp-bg);
  color: var(--kp-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: var(--kp-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--kp-red-dark);
}

.kp-site-header {
  background: var(--kp-dark);
  border-bottom: 4px solid var(--kp-red);
  color: #fff;
}

.kp-header-inner,
.kp-main,
.kp-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.kp-header-inner {
  padding: 20px 0 18px;
}

.kp-brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.kp-site-title {
  margin: 0;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.kp-site-title a {
  color: inherit;
  text-decoration: none;
}

.kp-site-description {
  margin: 5px 0 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.kp-nav {
  margin-top: 16px;
}

.kp-menu,
.kp-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #475569;
  border-radius: 4px;
  background: #1f2937;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.kp-menu a:hover,
.kp-menu .current-menu-item > a {
  background: #374151;
  color: #fff;
}

.kp-main {
  padding: 28px 0 46px;
}

.kp-page-title,
.kp-post-title {
  margin: 0 0 16px;
  color: var(--kp-text);
  font-size: 2rem;
  line-height: 1.15;
}

.kp-card,
.portal-hero,
.portal-card {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: 6px;
  padding: 22px;
}

.portal-hero {
  margin-bottom: 18px;
}

.portal-hero h1,
.entry-content .portal-hero h1 {
  margin: 0 0 10px;
  color: var(--kp-text);
  font-size: 1.95rem;
  line-height: 1.15;
}

.portal-hero p,
.portal-card p,
.entry-content p,
.entry-content li {
  color: var(--kp-muted);
  font-size: 1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.portal-card h2,
.entry-content .portal-card h2 {
  margin: 0 0 12px;
  color: var(--kp-text);
  font-size: 1.35rem;
  line-height: 1.2;
}

.portal-card h3,
.entry-content .portal-card h3 {
  margin: 18px 0 8px;
  color: var(--kp-text);
  font-size: 1.05rem;
}

.portal-list {
  margin: 0;
  padding-left: 20px;
}

.portal-list li {
  margin: 7px 0;
}

.portal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.portal-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.portal-button-primary {
  border: 1px solid var(--kp-red);
  background: var(--kp-red);
  color: #fff;
}

.portal-button-primary:hover {
  background: var(--kp-red-dark);
  color: #fff;
}

.portal-button-secondary {
  border: 1px solid #94a3b8;
  background: #fff;
  color: var(--kp-text);
}

.portal-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--kp-red);
  background: #fff7ed;
  color: var(--kp-muted);
  font-size: 0.95rem;
}

.kp-post-meta {
  margin: -8px 0 18px;
  color: var(--kp-muted);
  font-size: 0.9rem;
}

.kp-footer {
  border-top: 1px solid var(--kp-border);
  background: #fff;
}

.kp-footer-inner {
  padding: 18px 0;
  color: var(--kp-muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .kp-brand-row {
    display: block;
  }

  .kp-site-title {
    font-size: 1.55rem;
  }

  .kp-menu a {
    justify-content: center;
    width: 100%;
  }

  .kp-menu li {
    flex: 1 1 calc(50% - 8px);
  }

  .portal-grid,
  .portal-actions {
    grid-template-columns: 1fr;
  }

  .portal-hero,
  .portal-card,
  .kp-card {
    padding: 18px;
  }
}
