﻿/* GRTEdit page — brand red / dark look, wide layout */
.grt-record-page,
.grt-edit-page,
.container.inc.grt-record-page,
.container.inc.grt-edit-page {
  width: min(1760px, calc(100vw - 32px)) !important;
  max-width: none !important;
  margin: 0 auto 48px !important;
  padding: 0 12px 48px !important;
  float: none !important;
}
.grt-record-page > .row,
.grt-edit-page > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.grt-record-page #content,
.grt-edit-page #content,
.grt-record-page .col-sm-12,
.grt-edit-page .col-sm-12 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.grt-record-page h1,
.grt-edit-page h1 {
  font-family: "Play", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 10px 0 20px;
  letter-spacing: 0.01em;
  color: #111;
  position: relative;
  padding-bottom: 12px;
}
.grt-record-page h1::after,
.grt-edit-page h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e10600, #ff4d4d);
}

.grt-record-page .blog-record-description,
.grt-edit-page .blog-record-description,
.grt-article-body {
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid #e10600;
  border-radius: 14px;
  padding: 28px 26px 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Hero */
.grt-hero {
  display: grid;
  gap: 14px;
  margin: 0 0 32px;
  padding: 28px 26px 30px;
  border-radius: 14px;
  background:
    radial-gradient(1200px 280px at 90% -20%, rgba(225, 6, 0, 0.45), transparent 55%),
    linear-gradient(135deg, #141414 0%, #1c1c1c 45%, #2a0a0a 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(225, 6, 0, 0.18);
}
.grt-hero p {
  margin: 0;
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}
.grt-hero strong { color: #fff; }
.grt-hero .grt-badge,
.grt-hero span.grt-badge {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.22);
  border: 1px solid rgba(255, 120, 120, 0.55);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd0d0;
}
.grt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.grt-cta a {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 9px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.grt-cta a:hover { transform: translateY(-1px); }
.grt-cta a.primary {
  background: #e10600;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(225, 6, 0, 0.35);
}
.grt-cta a.ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Sections */
.grt-section-title,
h2.grt-section-title {
  font-family: "Play", "Open Sans", sans-serif;
  font-size: 23px;
  margin: 34px 0 16px;
  padding: 0 0 10px 14px;
  border-bottom: none;
  border-left: 4px solid #e10600;
  color: #111;
}

/* Feature cards */
.grt-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.grt-features li {
  margin: 0;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border-left: 4px solid #e10600;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  list-style: none;
}
.grt-features li:hover {
  box-shadow: 0 8px 22px rgba(225, 6, 0, 0.1);
}

/* Brand + table as one card */
.grt-brand {
  margin: 22px 0 0;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #1a1a1a 0%, #2b0d0d 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-left: 4px solid #e10600;
}
.grt-brand + .grt-ecu-table {
  margin-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

/* Fixed columns: all brand tables share the same grid */
.grt-ecu-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 8px;
  font-size: 13px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
}
.grt-ecu-table thead th {
  background: #f3f3f3;
  color: #444;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5e5e5;
}
.grt-ecu-table th,
.grt-ecu-table td {
  border-bottom: 1px solid #ececec;
  border-right: none;
  border-left: none;
  border-top: none;
  padding: 11px 14px;
  vertical-align: middle;
  color: #1a1a1a;
  box-sizing: border-box;
}
.grt-ecu-table tr:last-child th,
.grt-ecu-table tr:last-child td {
  border-bottom: none;
}

/* Left column fixed — same edge in every table */
.grt-ecu-table thead th:first-child,
.grt-ecu-table tbody th {
  width: 340px;
  max-width: 340px;
  background: #fafafa;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  font-weight: 700;
  color: #111;
  border-right: 1px solid #f0f0f0;
}

/* Right column takes the rest — tags start on one vertical line */
.grt-ecu-table thead th:last-child,
.grt-ecu-table tbody td {
  width: auto;
}

.grt-ecu-table tbody tr:hover th,
.grt-ecu-table tbody tr:hover td {
  background: #fff5f5;
}
.grt-ecu-table td { color: #333; }

/* Function chips */
.grt-tag {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffe8e8;
  color: #a10000;
  border: 1px solid #ffc9c9;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .grt-ecu-table thead th:first-child,
  .grt-ecu-table tbody th {
    width: 40%;
    max-width: 40%;
  }
}
@media (max-width: 640px) {
  .grt-ecu-table,
  .grt-ecu-table thead th:first-child,
  .grt-ecu-table tbody th {
    width: 100%;
    max-width: none;
  }
  .grt-ecu-table thead { display: none; }
  .grt-ecu-table tbody th,
  .grt-ecu-table tbody td {
    display: block;
    width: 100% !important;
    max-width: none !important;
    border-right: none;
  }
  .grt-ecu-table tbody th {
    background: #f3f3f3;
    padding-bottom: 6px;
  }
  .grt-ecu-table tbody td {
    padding-top: 4px;
    padding-bottom: 14px;
  }
  .grt-article-body,
  .grt-record-page .blog-record-description,
  .grt-edit-page .blog-record-description {
    padding: 18px 14px 24px;
  }
  .grt-hero { padding: 22px 18px; }
}

/* News list: stop broken date spill */
.newsmod .date,
.blog-content .date,
.content-records .date {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 12px;
  margin: 6px 0 4px;
}

/* Header: logo "GRT" text must stay visible when zoomed / narrow */
header .movedmenu,
header .tophead,
header .topsupmenu {
  overflow: visible !important;
}
header #logo {
  z-index: 120 !important;
  overflow: visible !important;
  max-width: min(280px, 32vw);
}
header #logo a,
header #logo img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 56px !important;
  width: auto !important;
}
header #supermenu {
  padding-left: 260px !important;
}
header .tophead.fixed #supermenu {
  padding-left: 240px !important;
}
@media (max-width: 1400px) {
  header #supermenu {
    padding-left: 230px !important;
  }
  header .tophead.fixed #supermenu {
    padding-left: 220px !important;
  }
}
@media (max-width: 1100px) {
  header #supermenu {
    padding-left: 200px !important;
  }
  header .tophead.fixed #supermenu {
    padding-left: 190px !important;
  }
}
/* Mobile supermenu — keep zero padding from theme */
@media (max-width: 991px) {
  header #supermenu,
  header .tophead.fixed #supermenu {
    padding-left: 0 !important;
  }
  header #logo {
    max-width: 180px;
  }
  header #logo img {
    max-height: 40px !important;
  }
}
