/* SizeWise shared stylesheet — used by all converter pages */
:root {
  --bg: #ffffff; --bg-elevated: #f8fafc; --bg-card: #ffffff;
  --border: #e2e8f0; --text: #0f172a; --text-muted: #64748b;
  --primary: #4f46e5; --primary-hover: #4338ca; --primary-soft: #eef2ff;
  --success: #10b981; --warning: #f59e0b; --danger: #ef4444;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.05); --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08);
  --transition: 150ms ease;
}
[data-theme="dark"] {
  --bg: #0f172a; --bg-elevated: #1e293b; --bg-card: #1e293b;
  --border: #334155; --text: #f1f5f9; --text-muted: #94a3b8;
  --primary: #818cf8; --primary-hover: #a5b4fc; --primary-soft: #1e1b4b;
  --shadow: 0 1px 3px rgba(0,0,0,0.3); --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  border-bottom: 1px solid var(--border); padding: 16px 0;
  position: sticky; top: 0; background: var(--bg); z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-size: 18px; font-weight: 700; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 28px; height: 28px; background: var(--primary); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
}
.theme-toggle {
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--primary-soft); border-color: var(--primary); }

/* Sub-nav across converters */
.tool-bar {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin: 0 0 24px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.tool-bar a {
  font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: 999px; text-decoration: none; color: var(--text-muted);
  border: 1px solid var(--border); background: var(--bg-elevated);
  transition: all var(--transition);
}
.tool-bar a:hover { color: var(--primary); border-color: var(--primary); }
.tool-bar a.active { color: white; background: var(--primary); border-color: var(--primary); }

/* Hero */
.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.15;
}
.hero p { color: var(--text-muted); font-size: 17px; max-width: 580px; margin: 0 auto; }
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.badge {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px; font-size: 12px;
  font-weight: 600; color: var(--text-muted);
}

/* Ad slot */
.ad-slot {
  background: var(--bg-elevated); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 16px; text-align: center;
  color: var(--text-muted); font-size: 12px; margin: 20px 0;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
}

/* Card / converter */
.converter {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

/* Input fields */
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 540px) { .input-row { grid-template-columns: 1fr; } }
.input-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 600px) { .input-row-3 { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.field select, .field input[type="number"], .field input[type="text"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; transition: all var(--transition);
}
.field select:focus, .field input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Results grid */
.results-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 12px;
}
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 540px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
.result-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 12px; text-align: center;
  transition: all var(--transition);
}
.result-card.match { background: var(--primary-soft); border-color: var(--primary); }
.result-card .region {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.result-card .size { font-size: 24px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.result-card.match .size { color: var(--primary); }

/* Charts and tables */
.full-chart { margin-top: 24px; overflow-x: auto; }
.full-chart table { width: 100%; border-collapse: collapse; font-size: 14px; }
.full-chart th, .full-chart td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.full-chart th {
  background: var(--bg-elevated); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
}
.full-chart tr.highlight td { background: var(--primary-soft); font-weight: 600; }

/* Content sections */
.content-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.content-section h2 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.01em; }
.content-section h3 { font-size: 16px; margin: 16px 0 6px; }
.content-section p { color: var(--text-muted); margin-bottom: 10px; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 15px; margin-bottom: 6px; }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 32px 0; margin-top: 64px;
  text-align: center; color: var(--text-muted); font-size: 13px;
}
footer a { color: var(--text-muted); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--primary); }
.affiliate-note { font-size: 11px; color: var(--text-muted); margin-top: 8px; opacity: 0.7; }
</content>
</invoke>