.tn-tide-widget, .tn-tide-widget * { box-sizing: border-box; }
.tn-tide-widget { width: 100%; max-width: 880px; margin: 24px auto; padding: 24px; border: 1px solid #d4e5e9; border-radius: 16px; background: #fff; color: #17333e; line-height: 1.7; font-size: 16px; font-family: inherit; min-width: 0; }
.tn-tide-widget .tn-tide-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tn-tide-widget .tn-tide-title { margin: 0; padding: 0; font-size: 1.3em; line-height: 1.5; color: #17333e; }
.tn-tide-widget .tn-tide-badge { padding: 3px 10px; border-radius: 20px; background: #fff2cc; color: #644800; font-size: 12px; }
.tn-tide-widget .tn-tide-date { margin: 10px 0 16px; font-size: 13px; color: #526b75; }
.tn-tide-widget .tn-tide-chart-wrap { position: relative; height: 300px; width: 100%; min-width: 0; }
.tn-tide-widget .tn-tide-canvas { display: block; max-width: 100%; }
.tn-tide-widget .tn-tide-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.tn-tide-widget .tn-tide-summary-item { padding: 12px 14px; border-radius: 8px; background: #f1f8fa; min-width: 0; overflow-wrap: anywhere; }
.tn-tide-widget .tn-tide-label { margin: 0; font-size: 13px; color: #526b75; }
.tn-tide-widget .tn-tide-value { margin: 4px 0 0; font-weight: 700; }
.tn-tide-widget .tn-tide-table-toggle { cursor: pointer; font-size: 14px; }
.tn-tide-widget .tn-tide-table-wrap { overflow-x: auto; }
.tn-tide-widget .tn-tide-table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.tn-tide-widget .tn-tide-th, .tn-tide-widget .tn-tide-td { border: 1px solid #d4e5e9; padding: 5px 10px; text-align: left; }
.tn-tide-widget .tn-tide-note { padding: 12px 14px; background: #fff8e8; border-left: 3px solid #e5b348; font-size: 14px; margin: 16px 0; }
.tn-tide-widget .tn-tide-demo-note, .tn-tide-widget .tn-tide-disclaimer { margin: 12px 0 0; font-size: 12px; color: #526b75; overflow-wrap: anywhere; }
.tn-tide-widget .tn-tide-disclaimer { border-top: 1px solid #d4e5e9; padding-top: 12px; }
.tn-tide-error, .tn-tide-widget .tn-tide-chart-error { color: #9c3030; }
.tn-tide-widget .tn-tide-chart-error[hidden] { display: none; }
@media (max-width: 600px) {
    .tn-tide-widget { padding: 16px; margin: 16px auto; font-size: 15px; }
    .tn-tide-widget .tn-tide-summary { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .tn-tide-widget .tn-tide-chart-wrap { height: 250px; }
    .tn-tide-widget .tn-tide-title { font-size: 1.2em; }
}

/* v0.3.0: only the fishing-spot memo inside the tide widget. */
.tn-tide-widget .tn-tide-spot-memo { margin: 20px 0; padding: 16px; border: 1px solid #d4e5e9; border-radius: 10px; background: #f8fbfc; min-width: 0; overflow-wrap: anywhere; }
.tn-tide-widget .tn-tide-spot-title { margin: 0 0 10px; padding: 0; font-size: 1.05em; line-height: 1.5; color: #17333e; }
.tn-tide-widget .tn-tide-spot-name { margin: 0 0 6px; font-weight: 700; }
.tn-tide-widget .tn-tide-spot-text { margin: 10px 0; font-size: 14px; }
.tn-tide-widget .tn-tide-spot-summary { margin: 12px 0; }
