/* Scoped UKHO detail panel. Does not alter dashboard cards or grid.
   The existing #tidal-conditions card/navigation links reveal this panel. */
.tbanav-ukho-tidal-conditions {
    display: none; /* Keep the detail panel closed until its anchor is selected. */
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0 24px;
    padding: clamp(16px, 2.5vw, 28px);
    border: 1px solid #b7cbe5;
    border-radius: 16px;
    background: #fff;
    color: #172c47;
    font-family: inherit;
    scroll-margin-top: 18px;
}
/* Clicking an existing href="#tidal-conditions" reveals the detail panel. */
.tbanav-ukho-tidal-conditions:target {
    display: block;
}

.tbanav-ukho-tidal-conditions *, .tbanav-ukho-tidal-conditions *::before,
.tbanav-ukho-tidal-conditions *::after { box-sizing: border-box; }
.tbanav-ukho-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid #dce5f0; padding-bottom: 16px; }
.tbanav-ukho-eyebrow { margin: 0 0 7px; color: #37648f; font-size: .73rem; font-weight: 700; letter-spacing: .08em; }
.tbanav-ukho-tidal-conditions h2 { margin: 0 0 8px; color: #0a408c; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.25; }
.tbanav-ukho-intro { margin: 0; font-size: .92rem; line-height: 1.5; }
.tbanav-ukho-year { border-radius: 999px; padding: 7px 12px; background: #eaf2fc; color: #0a408c; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.tbanav-ukho-date-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.tbanav-ukho-date-form label { font-weight: 700; }
.tbanav-ukho-date-form input { min-height: 42px; max-width: 100%; padding: 8px 10px; border: 1px solid #aabbd0; border-radius: 8px; background: #fff; color: #172c47; font: inherit; }
.tbanav-ukho-date-form button { min-height: 42px; padding: 9px 16px; border: 1px solid #0a408c; border-radius: 8px; background: #0a408c; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tbanav-ukho-date-form button:hover { background: #07336f; }
.tbanav-ukho-date-form input:focus-visible, .tbanav-ukho-date-form button:focus-visible, .tbanav-ukho-details summary:focus-visible { outline: 3px solid #e0a735; outline-offset: 2px; }
.tbanav-ukho-message { padding: 14px 16px; border: 1px solid #c7d9ec; border-radius: 10px; background: #f2f7fc; line-height: 1.5; }
.tbanav-ukho-results { border-top: 1px solid #dce5f0; padding-top: 18px; }
.tbanav-ukho-results-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.tbanav-ukho-tidal-conditions h3 { margin: 0; color: #0a408c; font-size: 1.15rem; }
.tbanav-ukho-results-heading span { font-size: .85rem; font-weight: 700; color: #37648f; }
.tbanav-ukho-time-note { margin: 9px 0 18px; font-size: .9rem; }
.tbanav-ukho-tidal-conditions h4 { margin: 0 0 10px; color: #0a408c; }
.tbanav-ukho-table-scroll { overflow-x: auto; }
.tbanav-ukho-tidal-conditions table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
.tbanav-ukho-tidal-conditions th, .tbanav-ukho-tidal-conditions td { padding: 10px 12px; border-bottom: 1px solid #e0e8f2; }
.tbanav-ukho-tidal-conditions th { background: #edf4fc; color: #0a408c; font-weight: 700; }
.tbanav-ukho-tidal-conditions tbody tr:nth-child(even) { background: #f8fbff; }
.tbanav-ukho-details { margin-top: 18px; border: 1px solid #dce5f0; border-radius: 10px; padding: 12px 14px; }
.tbanav-ukho-details summary { cursor: pointer; color: #0a408c; font-weight: 700; }
.tbanav-ukho-details p { font-size: .88rem; }
.tbanav-ukho-readings-scroll { max-height: 24rem; overflow: auto; }
.tbanav-ukho-readings-scroll th { position: sticky; top: 0; }
.tbanav-ukho-disclaimer { margin: 18px 0 0; padding-top: 13px; border-top: 1px solid #dce5f0; font-size: .82rem; line-height: 1.5; }
@media (max-width: 600px) { .tbanav-ukho-date-form { align-items: stretch; flex-direction: column; } .tbanav-ukho-date-form input, .tbanav-ukho-date-form button { width: 100%; } .tbanav-ukho-tidal-conditions th, .tbanav-ukho-tidal-conditions td { padding: 9px 7px; } }
