/* Pace Calculator Styles - Calculator Archive
 * Exact pixel-perfect match for Calculator.net Pace Calculator & Calculator Archive theme
 */

.pace-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 15px 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
}

/* Top Bar: Breadcrumbs & Print / Saved */
.pace-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.pace-breadcrumbs {
  color: #0844a4;
}

.pace-breadcrumbs a {
  color: #0844a4;
  text-decoration: none;
}

.pace-breadcrumbs a:hover {
  text-decoration: underline;
}

.pace-breadcrumbs .sep {
  color: #777777;
  margin: 0 4px;
}

.pace-breadcrumbs .current {
  color: #333333;
}

.pace-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pace-saved-btn {
  background: #f4f6f8;
  border: 1px solid #b5c7d8;
  color: #003366;
  font-size: 11.5px;
  font-weight: bold;
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.pace-saved-btn:hover {
  background: #e2eaf1;
}

.pace-saved-badge {
  background: #003366;
  color: #ffffff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
}

.pace-print-link {
  color: #0844a4;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pace-print-link:hover {
  text-decoration: underline;
}

/* Main Layout Grid */
.pace-main-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
}

@media (max-width: 860px) {
  .pace-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Content Column */
.pace-content-col {
  min-width: 0;
}

.pace-page-title {
  font-size: 26px;
  color: #0844a4;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.pace-intro-text {
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 16px;
}

/* Tabbed Calculator Container */
.pace-calculator-box {
  background: #f2f4f7;
  border: 1px solid #c2c9d4;
  border-radius: 4px;
  padding: 0;
  margin-bottom: 25px;
  overflow: hidden;
}

.pace-tabs-header {
  display: flex;
  background: #e2e6eb;
  border-bottom: 1px solid #c2c9d4;
}

.pace-tab-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: bold;
  color: #0844a4;
  background: transparent;
  border: none;
  border-right: 1px solid #c2c9d4;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease;
}

.pace-tab-btn:hover {
  background: #f0f2f5;
}

.pace-tab-btn.active {
  background: #f2f4f7;
  color: #000000;
  border-bottom: 1px solid #f2f4f7;
  margin-bottom: -1px;
}

.pace-tab-content {
  padding: 16px 20px 20px;
}

.pace-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.pace-label {
  width: 90px;
  font-weight: normal;
  color: #333333;
  flex-shrink: 0;
}

.pace-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pace-input-text {
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #8ba1b7;
  border-radius: 2px;
  background: #ffffff;
  color: #111111;
  width: 100px;
}

.pace-select {
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #8ba1b7;
  border-radius: 2px;
  background: #ffffff;
  color: #111111;
}

.pace-unit-label {
  font-size: 12px;
  color: #555555;
}

/* Action Buttons */
.pace-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.pace-btn-calc {
  background: #5c9038;
  color: #ffffff;
  border: 1px solid #4a752d;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 16px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pace-btn-calc:hover {
  background: #4a752d;
}

.pace-btn-clear {
  background: #a0a0a0;
  color: #ffffff;
  border: 1px solid #888888;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
}

.pace-btn-clear:hover {
  background: #8e8e8e;
}

.pace-form-note {
  font-size: 11.5px;
  color: #555555;
  line-height: 1.45;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dotted #ccc;
}

/* Results Box */
.pace-results-card {
  background: #eef5e8;
  border: 1px solid #c2dcb4;
  border-radius: 4px;
  padding: 16px 18px;
  margin-top: 16px;
}

.pace-res-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid #c2dcb4;
  padding-bottom: 6px;
}

.pace-res-title {
  font-size: 15px;
  font-weight: bold;
  color: #2b551b;
}

.pace-res-primary {
  font-size: 22px;
  font-weight: bold;
  color: #1a4d0f;
  margin-bottom: 8px;
}

.pace-res-sub {
  font-size: 13px;
  color: #333333;
  line-height: 1.6;
}

.pace-res-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
  background: #ffffff;
}

.pace-res-table th {
  background: #003366;
  color: #ffffff;
  padding: 6px 10px;
  text-align: left;
  font-weight: bold;
}

.pace-res-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e0e0e0;
}

.pace-res-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* Secondary Section Headers */
.pace-section-title {
  font-size: 18px;
  color: #0844a4;
  margin: 28px 0 8px 0;
  font-weight: bold;
  border-bottom: 1px solid #c2c9d4;
  padding-bottom: 4px;
}

.pace-section-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 14px;
}

/* Multipoint Table */
.pace-multipoint-card {
  background: #f8fafc;
  border: 1px solid #c2c9d4;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 25px;
}

.pace-multi-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

.pace-multi-table th {
  background: #003366;
  color: #ffffff;
  font-size: 12.5px;
  padding: 6px 8px;
  text-align: left;
  border: 1px solid #003366;
}

.pace-multi-table td {
  padding: 5px 6px;
  font-size: 12.5px;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
}

.pace-multi-table tr:nth-child(even) {
  background: #f1f5f9;
}

.pace-row-num {
  font-weight: bold;
  color: #475569;
  width: 25px;
  text-align: center;
}

.pace-multi-input {
  padding: 4px 6px;
  font-size: 12.5px;
  border: 1px solid #8ba1b7;
  border-radius: 2px;
  background: #ffffff;
  width: 70px;
}

.pace-multi-select {
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid #8ba1b7;
  border-radius: 2px;
  background: #ffffff;
}

.pace-multi-time {
  padding: 4px 6px;
  font-size: 12.5px;
  border: 1px solid #8ba1b7;
  border-radius: 2px;
  background: #ffffff;
  width: 85px;
}

.pace-pref-unit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 12px;
}

/* Pace Converter Card */
.pace-converter-card {
  background: #f2f4f7;
  border: 1px solid #c2c9d4;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 25px;
}

.pace-conv-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
}

.pace-equal-sign {
  font-size: 16px;
  font-weight: bold;
  color: #003366;
}

/* Finish Time Calculator */
.pace-finish-card {
  background: #f2f4f7;
  border: 1px solid #c2c9d4;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 25px;
}

/* Typical Races & World Records Table */
.pace-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
  margin-bottom: 30px;
  border: 1px solid #cbd5e1;
}

.pace-records-table th {
  background: #003366;
  color: #ffffff;
  padding: 8px 12px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #002244;
}

.pace-records-table td {
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  color: #333333;
}

.pace-records-table tr:nth-child(even) td {
  background: #f8fafc;
}

.pace-records-table tr:hover td {
  background: #eef3f8;
}

/* Sidebar Column */
.pace-sidebar-col {
  width: 280px;
  flex-shrink: 0;
}

.pace-search-box {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.pace-search-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  background: #ffffff;
}

.pace-search-btn {
  background: #2b5a88;
  color: #ffffff;
  border: 1px solid #1f4266;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 2px;
  cursor: pointer;
}

.pace-search-btn:hover {
  background: #1f4266;
}

.pace-sidebar-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.pace-sidebar-header {
  background: #003366;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: bold;
}

.pace-sidebar-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 12px;
  gap: 8px 12px;
  font-size: 12px;
}

.pace-sidebar-links a {
  color: #0844a4;
  text-decoration: none;
}

.pace-sidebar-links a:hover {
  text-decoration: underline;
}

.pace-sidebar-links a.active {
  font-weight: bold;
  color: #000000;
}

.pace-sidebar-footer {
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
  font-size: 11.5px;
  text-align: center;
  background: #f8fafc;
  color: #64748b;
}

.pace-sidebar-footer a {
  color: #0844a4;
  text-decoration: none;
  margin: 0 4px;
}

.pace-sidebar-footer a:hover {
  text-decoration: underline;
}

/* Modals */
.pace-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 15px;
}

.pace-modal-card {
  background: #ffffff;
  border-radius: 6px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.pace-modal-header {
  background: #003366;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pace-modal-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.pace-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.pace-modal-body {
  padding: 18px;
  overflow-y: auto;
  font-size: 13px;
  color: #333333;
}

.pace-modal-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pace-btn-modal-action {
  background: #5c9038;
  color: #ffffff;
  border: 1px solid #48722b;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

.pace-btn-modal-close {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

/* Toast Notifications */
.pace-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #003366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 10000;
  display: none;
  animation: fadeInToast 0.25s ease-out;
}

@keyframes fadeInToast {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SEO Educational Articles Container */
.pace-seo-section {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #cbd5e1;
  font-size: 13.5px;
  line-height: 1.65;
  color: #2d3748;
}

.pace-seo-section h2 {
  font-size: 20px;
  color: #003366;
  margin: 20px 0 10px;
  font-weight: bold;
}

.pace-seo-section h3 {
  font-size: 16px;
  color: #0844a4;
  margin: 16px 0 8px;
  font-weight: bold;
}

.pace-seo-section p {
  margin-bottom: 12px;
}

.pace-seo-section ul, .pace-seo-section ol {
  margin: 0 0 14px 24px;
  padding: 0;
}

.pace-seo-section li {
  margin-bottom: 6px;
}

.pace-formula-card {
  background: #f8fafc;
  border-left: 4px solid #003366;
  padding: 12px 16px;
  margin: 14px 0;
  font-family: monospace;
  font-size: 13px;
}

/* Print Stylesheet */
@media print {
  body.pace-printing-modal .site-header,
  body.pace-printing-modal .site-footer,
  body.pace-printing-modal .pace-page-container,
  body.pace-printing-modal .pace-top-actions,
  body.pace-printing-modal .pace-sidebar-col,
  body.pace-printing-modal #pace-saved-modal,
  body.pace-printing-modal .pace-modal-header,
  body.pace-printing-modal .pace-modal-footer,
  body.pace-printing-modal .pace-modal-close {
    display: none !important;
  }

  body.pace-printing-modal #pace-print-modal {
    display: block !important;
    position: static !important;
    background: transparent !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.pace-printing-modal .pace-modal-card {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-header,
  .site-footer,
  .pace-top-actions,
  .pace-sidebar-col,
  .pace-btn-row,
  .pace-tabs-header,
  .pace-modal-backdrop,
  .pace-toast {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .pace-page-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .pace-main-grid {
    display: block !important;
  }

  .pace-calculator-box,
  .pace-multipoint-card,
  .pace-converter-card,
  .pace-finish-card {
    border: 1px solid #999 !important;
    background: #ffffff !important;
    page-break-inside: avoid;
    margin-bottom: 20px !important;
  }
}
