/**
 * Common styles for NBN statistics pages.
 */

html { color-scheme: light dark; }
body { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 15px; margin: 20px; max-width: 1200px; line-height: 1.4; }
a { text-decoration: none; color: #0066cc; }
a:hover { text-decoration: underline; }
h1 { margin-bottom: 5px; }
.subtitle { color: #666; margin-top: 0; }

/* Info cards grid layout */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.info-card { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; }
.info-card h3 { margin-top: 0; margin-bottom: 10px; color: #333; border-bottom: 2px solid #009879; padding-bottom: 5px; }
.info-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #eee; }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: bold; color: #555; }
.info-value { color: #333; text-align: right; }

/* Technology breakdown bar */
.tech-bar { display: flex; height: 24px; border-radius: 4px; overflow: hidden; margin: 10px 0; }
.tech-segment { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: bold; text-shadow: 0 0 2px rgba(0,0,0,0.5); }

/* Navigation */
.back-link { display: inline-block; margin-bottom: 15px; margin-right: 10px; padding: 8px 15px; background: #009879; color: #fff; border-radius: 4px; }
.back-link:hover { background: #007a63; text-decoration: none; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 8px; text-align: left; border-bottom: 1px solid #eee; }
table th { background: #f8f9fa; }
table td.number { text-align: right; }

/* Technology type colors */
.tech-fttp { color: #A020F0; font-weight: bold; }
.tech-fttc { color: #59A55E; font-weight: bold; }
.tech-fttn { color: #D2691E; font-weight: bold; }
.tech-fttb { color: #964B00; font-weight: bold; }
.tech-hfc { color: #B8860B; font-weight: bold; }
.tech-wireless, .tech-fixed-wireless { color: #FF69B4; font-weight: bold; }
.tech-satellite { color: #FFA500; font-weight: bold; }

/* Map container */
#map { height: 400px; width: 100%; border-radius: 8px; border: 1px solid #dee2e6; margin: 20px 0; }

/* Scrollable table containers */
.sa-table { max-height: 400px; overflow-y: auto; display: block; }
.loc-table { max-height: 500px; overflow-y: auto; display: block; }
.loc-table td:nth-child(2) { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Misc */
.cache-info { font-size: 12px; color: #888; margin-top: 10px; }

/* Footer */
.footer { margin-top: 30px; padding: 15px 0; border-top: 1px solid #dee2e6; text-align: left; font-size: 13px; color: #666; }
.footer a { color: #009879; }
