/* colour palette (hardcoded)
   #1a1a1a = black
   #ffffff = white
   #4a4a47 = accent (dark grey)
   #eeeeeb = accent-light
   #f5f5f3 = gray-100
   #e8e8e5 = gray-200
   #b0b0aa = gray-400
   #6b6b66 = gray-600
   #2e2e2b = gray-800
*/

.ra-calc-wrap {
  width: 60%;
  margin: 16px auto 28px;
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
}
/* Override any site-level h1/h2/h3/h4 font styles bleeding in */
.ra-calc-wrap h1,
.ra-calc-wrap h2,
.ra-calc-wrap h3,
.ra-calc-wrap h4,
.ra-calc-wrap p,
.ra-calc-wrap span,
.ra-calc-wrap button,
.ra-calc-wrap td,
.ra-calc-wrap th {
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
}
.ra-calc-page-title {
  font-family: garamond, 'Times New Roman', serif;
}
@media (max-width: 991px) {
  .ra-calc-wrap { width: 80%; }
}
@media (max-width: 767px) {
  .ra-calc-wrap { width: 100%; margin: 10px auto 30px; }
}

.ra-calc-skip {
  position: absolute; top: -40px; left: 0;
  background: #1a1a1a; color: #ffffff;
  padding: 8px 16px; font-family: Arial, Helvetica, sans-serif; font-size: 14px;
  z-index: 1000; text-decoration: none;
}
.ra-calc-skip:focus { top: 0; }

.ra-calc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Page title */
.ra-calc-page-title {
  font-family: garamond, 'Times New Roman', serif;
  font-size: 30px;
  text-align: center;
  border: solid black;
  margin: 0 0 6px 0;
  padding: 10px 0 8px;
}
.ra-calc-page-subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  text-align: center;
  color: #6b6b66;
  margin-bottom: 6px;
}

/* Section headings — use table trick for the ruled line instead of flex+gap */
.ra-calc-section-heading {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b66;
  margin: 6px 0 6px;
  font-style: normal;
  display: table;
  width: 100%;
  white-space: nowrap;
}
.ra-calc-section-heading::after {
  content: '';
  display: table-cell;
  width: 100%;
  border-bottom: 1px solid #e8e8e5;
  vertical-align: middle;
  padding-left: 10px;
}

/* Weight guide */
.ra-calc-weight-guide { margin-bottom: 5px; }
.ra-calc-callout-group { margin-bottom: 6px; }

.ra-calc-trigger {
  width: 100%;
  display: table;
  table-layout: fixed;
  background: #ffffff;
  border: 1px solid #e8e8e5;
  padding: 9px 12px;
  cursor: pointer;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}
.ra-calc-trigger:hover { background: #f5f5f3; border-color: #b0b0aa; }
.ra-calc-trigger:focus { outline: 3px solid #4a4a47; }
.ra-calc-trigger[aria-expanded="true"] { border-bottom-color: transparent; background: #eeeeeb; }

.ra-calc-trigger-inner {
  display: table-cell;
  vertical-align: middle;
  overflow: hidden;
}
.ra-calc-trigger-inner-flex {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.ra-calc-tier {
  display: table-cell;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: #4a4a47;
  padding: 3px 9px;
  vertical-align: middle;
}
.ra-calc-range {
  display: table-cell;
  width: 200px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #6b6b66;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 8px;
}
.ra-calc-summary {
  display: table-cell;
  font-size: 13px;
  color: #2e2e2b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 8px;
}
.ra-calc-chevron-cell {
  display: table-cell;
  width: 20px;
  vertical-align: middle;
  text-align: right;
  color: #b0b0aa;
  font-size: 10px;
}

.ra-calc-panel {
  background: #eeeeeb;
  border: 1px solid #e8e8e5;
  border-top: none;
  padding: 10px 12px 12px;
}
.ra-calc-panel p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #2e2e2b;
  margin: 0;
  text-align: left;
}
.ra-calc-examples {
  margin-top: 9px;
  font-size: 13px;
  color: #6b6b66;
  font-style: italic;
  text-align: left;
}

/* Converter */
.ra-calc-converter {
  background: #ffffff;
  border: 1px solid #e8e8e5;
  padding: 16px;
  margin-bottom: 5px;
}
.ra-calc-mode-row { margin-bottom: 20px; }
.ra-calc-mode-btn {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 2px solid #e8e8e5;
  background: #ffffff;
  color: #6b6b66;
  cursor: pointer;
  margin-right: 10px;
}
.ra-calc-mode-btn:hover { border-color: #b0b0aa; color: #1a1a1a; }
.ra-calc-mode-btn:focus { outline: 3px solid #4a4a47; }
.ra-calc-mode-btn.active { background: #1a1a1a; border-color: #1a1a1a; color: #ffffff; }

/* Converter input/result — float-based two-column */
.ra-calc-grid { margin-bottom: 24px; overflow: hidden; }
.ra-calc-grid-input { float: left; width: 46%; }
.ra-calc-grid-arrow { float: left; width: 8%; text-align: center; padding-top: 32px; color: #b0b0aa; }
.ra-calc-grid-result { float: left; width: 46%; }
.ra-calc-grid-clear { clear: both; }

.ra-calc-field-label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6b66;
  margin-bottom: 8px;
  text-align: left;
  font-style: normal;
}
.ra-calc-input-wrap { position: relative; }
.ra-calc-input-wrap input {
  width: 100%;
  font-family: garamond, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  border: 2px solid #e8e8e5;
  background: #ffffff;
  padding: 12px 50px 10px 14px;
  outline: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
}
.ra-calc-input-wrap input::-webkit-inner-spin-button,
.ra-calc-input-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ra-calc-input-wrap input:focus { border-color: #4a4a47; }
.ra-calc-input-unit {
  position: absolute; right: 12px; bottom: 14px;
  font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #b0b0aa; pointer-events: none;
}
.ra-calc-result-box {
  border: 2px solid #e8e8e5;
  background: #f5f5f3;
  padding: 12px 50px 10px 14px;
  position: relative;
  box-sizing: border-box;
}
.ra-calc-result-value {
  font-family: garamond, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 700;
  color: #4a4a47;
  min-height: 40px;
  display: block;
}
.ra-calc-result-unit {
  position: absolute; right: 12px; bottom: 14px;
  font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #b0b0aa;
}
.ra-calc-formula {
  font-family: Arial, Helvetica, sans-serif; font-size: 12px;
  color: #b0b0aa; border-top: 1px solid #e8e8e5; padding-top: 14px;
  text-align: left;
}

/* Tabs */
.ra-calc-tab-bar {
  border-bottom: 2px solid #e8e8e5;
  margin-bottom: 22px;
  overflow: hidden;
}
.ra-calc-tab-btn {
  font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 22px; border: none; background: none;
  color: #b0b0aa; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  display: inline-block;
}
.ra-calc-tab-btn:hover { color: #1a1a1a; }
.ra-calc-tab-btn:focus { outline: 3px solid #4a4a47; }
.ra-calc-tab-btn.active { color: #4a4a47; border-bottom-color: #4a4a47; }

/* Fabric table */
.ra-calc-table-wrap { overflow-x: auto; }
.ra-calc-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
}
.ra-calc-table thead tr { border-bottom: 2px solid #1a1a1a; }
.ra-calc-table th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #6b6b66; padding: 9px 10px 9px 0; text-align: left; white-space: nowrap;
  font-style: normal;
}
.ra-calc-table th:last-child { text-align: right; padding-right: 0; }
.ra-calc-table td {
  padding: 7px 10px 7px 0; color: #2e2e2b;
  border-bottom: 1px solid #e8e8e5; vertical-align: middle; line-height: 1.4;
}
.ra-calc-table td:last-child { text-align: right; padding-right: 0; }
.ra-calc-table tbody tr { cursor: pointer; }
.ra-calc-table tbody tr:hover { background: #eeeeeb; }
.ra-calc-table tbody tr:focus { background: #eeeeeb; outline: 2px solid #4a4a47; }

.ra-calc-code {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: #b0b0aa; white-space: nowrap;
}
.ra-calc-fname { font-weight: 700; color: #1a1a1a; display: block; }
.ra-calc-fcomp { font-size: 12px; color: #6b6b66; display: block; margin-top: 2px; }
.ra-calc-woz { font-size: 15px; font-weight: 700; color: #1a1a1a; white-space: nowrap; display: block; }
.ra-calc-wgsm { font-size: 11px; color: #b0b0aa; white-space: nowrap; display: block; margin-top: 2px; }
.ra-calc-bar-wrap { text-align: right; }
.ra-calc-bar-bg {
  width: 70px; height: 4px; background: #e8e8e5;
  overflow: hidden; display: inline-block; vertical-align: middle;
  margin-top: 4px;
}
.ra-calc-bar-fill { height: 100%; background: #4a4a47; display: block; }
.ra-calc-eco {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; background: #e6f4ea; color: #1b5e20;
  padding: 2px 5px; margin-left: 5px; vertical-align: middle;
}

/* About block */
.ra-calc-about { margin-top: 20px; border-top: 1px solid #e8e8e5; padding-top: 14px; }
.ra-calc-about h2 {
  font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #6b6b66;
  margin-bottom: 10px; font-style: normal; text-align: left;
}
.ra-calc-about p {
  font-family: Arial, Helvetica, sans-serif; font-size: 13px;
  color: #6b6b66; line-height: 1.7; text-align: left;
}
.ra-calc-about a { color: #2e2e2b; }

/* Two-column guides — float based */
.ra-calc-guides-row { overflow: hidden; margin-bottom: 2px; }
.ra-calc-guide-col-left {
  float: left;
  width: 48%;
  margin-right: 2%;
  box-sizing: border-box;
  overflow: hidden;
}
.ra-calc-guide-col-right {
  float: left;
  width: 48%;
  margin-left: 2%;
  box-sizing: border-box;
  overflow: hidden;
}
.ra-calc-guides-clear { clear: both; }

@media (max-width: 767px) {
  .ra-calc-guide-col-left,
  .ra-calc-guide-col-right {
    float: none;
    width: 100%;
    margin: 0 0 16px 0;
  }
  .ra-calc-grid-input,
  .ra-calc-grid-arrow,
  .ra-calc-grid-result { float: none; width: 100%; }
  .ra-calc-grid-arrow { display: none; }
  .ra-calc-tab-btn { padding: 9px 12px; font-size: 12px; }
  .ra-calc-summary, .ra-calc-range { display: none; }
  .ra-calc-page-title { font-size: 24px; }
}

