/* ============================================
   LENGTH CONVERTER — page-specific styles
   Accent: teal / emerald — Converters category
   Inherits variables from css/styles.css
   ============================================ */

/* ---- Page wrapper ---- */
.calc-page {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 460px;
  grid-template-rows: auto auto;
  gap: 48px; align-items: start;
}
.calc-page-info {
  position: static;
}

/* ---- Breadcrumb ---- */
.calc-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim); margin-bottom: 20px; flex-wrap: wrap;
}
.calc-breadcrumb a { color: var(--text-dim); transition: color var(--transition); }
.calc-breadcrumb a:hover { color: #10b981; }
.calc-breadcrumb i { font-size: 10px; }

/* ---- Category tag — teal for Converters ---- */
.calc-page-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 8px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.26);
  border-radius: 100px; font-size: 12px; font-weight: 600; color: #10b981;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px;
}
body.light-theme .calc-page-tag {
  background: rgba(5,150,105,0.07); border-color: rgba(5,150,105,0.2); color: #059669;
}

/* ---- Page title ---- */
.calc-page-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 3.2vw, 44px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px; color: var(--text); margin-bottom: 16px;
}
.calc-page-title span { color: #10b981; }
body.light-theme .calc-page-title span { color: #059669; }

.calc-page-desc { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 32px; }

/* ---- Feature pills ---- */
.calc-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.calc-feature-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.calc-feature-pill i { color: #10b981; font-size: 12px; }
body.light-theme .calc-feature-pill i { color: #059669; }

/* ---- SEO Content blocks ---- */
.calc-page-content {
  margin-top: 0;
  min-width: 0;
}

.calc-page-content.fade-up {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
  visibility: visible;
}
.content-block { margin-bottom: 40px; }
.content-block h2 {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px; color: var(--text); margin-bottom: 14px;
}
.content-block p { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin-bottom: 10px; }
.content-block strong { color: var(--text); font-weight: 600; }

/* ============================================
   CONVERSION REFERENCE TABLE
   ============================================ */
.len-ref-table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin: 16px 0;
}
.len-ref-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.len-ref-table thead tr { background: var(--bg-3); }
.len-ref-table th {
  padding: 10px 14px; text-align: left;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); border-bottom: 1px solid var(--border);
}
.len-ref-table td {
  padding: 9px 14px; color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.len-ref-table tbody tr:last-child td { border-bottom: none; }
.len-ref-table tbody tr:nth-child(even) { background: var(--bg-2); }
.lval  { font-family: 'DM Mono', monospace; font-weight: 600; color: var(--text) !important; }
.lhigh { color: #10b981 !important; }
body.light-theme .lhigh { color: #059669 !important; }

/* ============================================
   FORMULA CARDS GRID
   ============================================ */
.len-formula-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 16px;
}
.len-formula-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid #10b981; border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
body.light-theme .len-formula-card { border-left-color: #059669; }
.len-formula-card:hover { border-color: rgba(16,185,129,0.4); box-shadow: var(--shadow); }
.lfc-from { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); }
.lfc-formula { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 600; color: #10b981; }
body.light-theme .lfc-formula { color: #059669; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--transition); }
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: transparent; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--text); text-align: left; transition: color var(--transition);
}
.faq-question:hover { color: #10b981; }
body.light-theme .faq-question:hover { color: #059669; }
.faq-question i { font-size: 12px; color: var(--text-dim); flex-shrink: 0; transition: transform var(--transition), color var(--transition); }
.faq-item.open .faq-question i { transform: rotate(180deg); color: #10b981; }
body.light-theme .faq-item.open .faq-question i { color: #059669; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; font-size: 14px; line-height: 1.75; color: var(--text-muted); padding: 0 18px; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 18px 16px; }

/* ---- Also search chips ---- */
.also-search-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.also-search-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.also-search-chip:hover { background: rgba(16,185,129,0.09); border-color: #10b981; color: #10b981; }
body.light-theme .also-search-chip:hover { background: rgba(5,150,105,0.06); border-color: #059669; color: #059669; }

/* ============================================
   CALC CARD
   ============================================ */
.calc-panel { position: sticky; top: calc(var(--header-h) + 24px); }
.calc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg), 0 0 60px rgba(16,185,129,0.05);
}
.calc-card-header {
  padding: 20px 24px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border);
  display: none; align-items: center; gap: 12px;
}
@media (max-width: 1024px) { .calc-card-header { display: flex; } }
.calc-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #10b981; flex-shrink: 0;
}
body.light-theme .calc-card-icon { background: rgba(5,150,105,0.07); border-color: rgba(5,150,105,0.2); color: #059669; }
.calc-card-header-text h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.calc-card-header-text p  { font-size: 12px; color: var(--text-dim); }
.calc-card-body { padding: 24px; }

/* ---- Form elements ---- */
.form-group { margin-bottom: 14px; }
.form-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}
.form-label i { color: #10b981; font-size: 12px; }
body.light-theme .form-label i { color: #059669; }

/* Value input — large and inviting */
.conv-input {
  width: 100%; padding: 14px 18px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 22px; font-weight: 700;
  outline: none; -moz-appearance: textfield; appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.conv-input::-webkit-outer-spin-button,
.conv-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.conv-input:hover  { border-color: var(--border-hover); }
.conv-input:focus  {
  border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); background: var(--surface);
}
body.light-theme .conv-input:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }

/* Standard select */
.form-input {
  width: 100%; padding: 11px 14px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 15px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:hover { border-color: var(--border-hover); }
.form-input:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
body.light-theme .form-input:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }

.form-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}

/* ---- Swap row ---- */
.swap-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 4px; }
.swap-line { flex: 1; height: 1px; background: var(--border); }
.swap-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3);
  color: #10b981; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-bottom: 0;
}
body.light-theme .swap-btn {
  background: rgba(5,150,105,0.08); border-color: rgba(5,150,105,0.25); color: #059669;
}
.swap-btn:hover {
  background: rgba(16,185,129,0.22); box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
body.light-theme .swap-btn:hover { background: rgba(5,150,105,0.15); box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
.swap-btn.spinning i { animation: spin-once 0.35s ease; }
@keyframes spin-once { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }

/* Error toast */
.calc-error {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--pink-dim); border: 1px solid rgba(251,113,133,0.3);
  border-radius: var(--radius-sm); color: var(--pink); font-size: 14px; font-weight: 500;
  margin-bottom: 16px; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none;
}
.calc-error.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ============================================
   RESULTS GRID
   ============================================ */
.conv-results {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 4px;
}

/* Placeholder state */
.conv-results-placeholder {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 20px; color: var(--text-dim); font-size: 13px; font-weight: 500;
}
.conv-results-placeholder i { font-size: 18px; color: rgba(16,185,129,0.3); }
body.light-theme .conv-results-placeholder i { color: rgba(5,150,105,0.25); }

/* Each result row */
.conv-row {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.conv-row:last-child { border-bottom: none; }
.conv-row:hover { background: var(--surface); }

/* Highlighted (source unit) row */
.conv-row.is-source {
  background: rgba(16,185,129,0.06);
  border-left: 3px solid #10b981;
}
body.light-theme .conv-row.is-source {
  background: rgba(5,150,105,0.05);
  border-left-color: #059669;
}
.conv-row.is-target {
  background: rgba(99,102,241,0.06);
  border-left: 3px solid #6366f1;
}
body.light-theme .conv-row.is-target {
  background: rgba(79,70,229,0.05);
  border-left-color: #4f46e5;
}
.conv-row.is-target .conv-row-unit  { color: #6366f1; }
.conv-row.is-target .conv-row-symbol { color: #6366f1; }
.conv-row.is-target .conv-row-val   { color: #6366f1; font-size: 15px; }
body.light-theme .conv-row.is-target .conv-row-unit  { color: #4f46e5; }
body.light-theme .conv-row.is-target .conv-row-symbol { color: #4f46e5; }
body.light-theme .conv-row.is-target .conv-row-val   { color: #4f46e5; }

.conv-row-unit {
  flex: 0 0 100px; padding: 12px 14px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); white-space: nowrap; border-right: 1px solid var(--border);
}
.conv-row.is-source .conv-row-unit { color: #10b981; }
body.light-theme .conv-row.is-source .conv-row-unit { color: #059669; }

.conv-row-symbol {
  flex: 0 0 36px; padding: 12px 0 12px 10px;
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 700;
  color: var(--text-dim); border-right: 1px solid var(--border);
}
.conv-row.is-source .conv-row-symbol { color: #10b981; }
body.light-theme .conv-row.is-source .conv-row-symbol { color: #059669; }

.conv-row-val {
  flex: 1; padding: 12px 14px;
  font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 600;
  color: var(--text); word-break: break-all;
}
.conv-row.is-source .conv-row-val {
  color: #10b981; font-size: 15px;
}
body.light-theme .conv-row.is-source .conv-row-val { color: #059669; }

.conv-row-copy {
  flex-shrink: 0; width: 36px; height: 100%; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-left: 1px solid var(--border);
  cursor: pointer; color: var(--text-dim); font-size: 12px;
  transition: color var(--transition), background var(--transition);
}
.conv-row-copy:hover { color: #10b981; background: rgba(16,185,129,0.07); }
body.light-theme .conv-row-copy:hover { color: #059669; background: rgba(5,150,105,0.05); }
.conv-row-copy.copied { color: #10b981; }
body.light-theme .conv-row-copy.copied { color: #059669; }

/* ============================================
   SCALE REFERENCE BARS
   ============================================ */
.scale-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 14px; overflow: hidden;
}
.scale-title {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); border-bottom: 1px solid var(--border); background: var(--bg-3);
}
.scale-title i { color: #10b981; }
body.light-theme .scale-title i { color: #059669; }

.scale-rows { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }

.scale-row { display: flex; flex-direction: column; gap: 4px; }
.scale-row-header { display: flex; justify-content: space-between; align-items: baseline; }
.scale-row-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.scale-row-val   { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.scale-bar-track { height: 6px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.scale-bar-fill  {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 2px;
}
body.light-theme .scale-bar-fill { background: linear-gradient(90deg, #059669, #10b981); }

/* ============================================
   TOPIC CLUSTER
   ============================================ */
.topic-cluster-section {
  position: relative; z-index: 1;
  background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.topic-cluster-inner { max-width: 1320px; margin: 0 auto; padding: 56px 24px; }
.topic-cluster-header { max-width: 680px; margin-bottom: 40px; }
.topic-cluster-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 8px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.22);
  border-radius: 100px; font-size: 12px; font-weight: 600; color: #10b981;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
body.light-theme .topic-cluster-tag { background: rgba(5,150,105,0.07); border-color: rgba(5,150,105,0.2); color: #059669; }
.topic-cluster-header h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(22px,2.5vw,30px); font-weight: 800; letter-spacing: -0.8px; color: var(--text); margin-bottom: 12px; }
.topic-cluster-header p { font-size: 15px; line-height: 1.75; color: var(--text-muted); }

.cluster-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin-bottom: 40px; align-items: start; }
.cluster-primary {
  background: var(--surface); border: 2px solid #10b981; border-radius: var(--radius); padding: 22px; position: relative;
}
body.light-theme .cluster-primary { border-color: #059669; }
.cluster-primary::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(16,185,129,0.07) 0%, transparent 60%); pointer-events: none; }
.cluster-primary-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #10b981; margin-bottom: 10px; }
body.light-theme .cluster-primary-label { color: #059669; }
.cluster-primary h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; position: relative; }
.cluster-primary p { font-size: 13px; line-height: 1.65; color: var(--text-muted); margin-bottom: 14px; position: relative; }
.cluster-keywords { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.cluster-keywords span { padding: 3px 9px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: 100px; font-size: 11px; font-weight: 600; color: #10b981; }
body.light-theme .cluster-keywords span { background: rgba(5,150,105,0.07); border-color: rgba(5,150,105,0.18); color: #059669; }

.cluster-links { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cluster-links h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-3); }
.cluster-link-list { display: flex; flex-direction: column; }
.cluster-link-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.cluster-link-item:last-child { border-bottom: none; }
.cluster-link-item:hover { background: var(--bg-3); }
.cluster-link-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: rgba(16,185,129,0.1); display: flex; align-items: center; justify-content: center; font-size: 15px; color: #10b981; }
body.light-theme .cluster-link-icon { background: rgba(5,150,105,0.07); color: #059669; }
.cluster-link-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cluster-link-text strong { font-size: 14px; font-weight: 600; color: var(--text); }
.cluster-link-text span   { font-size: 12px; color: var(--text-dim); }
.cluster-link-arrow { color: var(--text-dim); font-size: 12px; transition: transform var(--transition), color var(--transition); }
.cluster-link-item:hover .cluster-link-arrow { transform: translateX(3px); color: #10b981; }
body.light-theme .cluster-link-item:hover .cluster-link-arrow { color: #059669; }
.cluster-link-all { background: var(--bg-2); }

.cluster-crosslinks { padding-top: 32px; border-top: 1px solid var(--border); }
.cluster-crosslinks h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); margin-bottom: 6px; }
.cluster-crosslinks > p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.crosslink-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.crosslink-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.crosslink-card:hover { border-color: #10b981; transform: translateY(-3px); box-shadow: var(--shadow); }
body.light-theme .crosslink-card:hover { border-color: #059669; }
.crosslink-card i { font-size: 20px; color: #10b981; }
body.light-theme .crosslink-card i { color: #059669; }
.crosslink-card strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); }
.crosslink-card span { font-size: 12px; line-height: 1.5; color: var(--text-dim); }

/* Ad slot */
.ad-slot { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 24px 40px; }
.ad-slot > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* Fade-up */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .calc-page { grid-template-columns: 1fr; padding: 32px 20px 60px; gap: 32px; }
  .calc-page-info { position: static; }
  .calc-panel { position: static; order: 2; }
  .calc-page-content { order: 3; }
  .cluster-grid { grid-template-columns: 1fr; }
  .crosslink-grid { grid-template-columns: 1fr 1fr; }
  .len-formula-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .calc-page { padding: 24px 16px 48px; }
  .len-formula-grid { grid-template-columns: 1fr; }
  .crosslink-grid { grid-template-columns: 1fr; }
  .conv-input { font-size: 18px; padding: 12px 14px; }
  .conv-row-unit { flex: 0 0 80px; font-size: 11px; padding: 10px 10px; }
  .conv-row-symbol { display: none; }
  .conv-row-val { font-size: 13px; }
  .topic-cluster-inner { padding: 36px 16px; }
}

@media (min-width: 1025px) {
  .calc-page-info {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
  }
  .calc-page-content {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
  }
  .calc-panel {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
