/*
 * Phone-first layout for the separate /mobile/ site.
 * This stylesheet intentionally overrides the desktop presentation without
 * changing the original site's CSS.
 */
:root {
  --mobile-edge: 14px;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  padding-bottom: 58px;
  background-attachment: scroll;
}

.site-header {
  min-height: 51px;
  align-items: center;
  gap: 10px;
  padding: 6px var(--mobile-edge);
  border-bottom-width: 3px;
}

.brand img {
  width: auto;
  height: 39px;
  max-width: 180px;
}

.nav-toggle {
  display: inline-flex;
  min-width: 76px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.site-nav {
  position: fixed;
  top: 51px;
  right: 10px;
  left: 10px;
  max-height: calc(100dvh - 65px);
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 1rem;
  text-align: center;
}

.social-links-bar {
  display: grid;
  gap: 5px;
  min-height: 0;
  padding: 7px var(--mobile-edge) 8px;
  text-align: center;
}

.social-links-bar__label {
  font-size: 0.72rem;
}

.social-links-bar__links {
  width: 100%;
  gap: 5px;
}

.social-link {
  min-width: 0;
  min-height: 32px;
  flex: 1 1 0;
  gap: 5px;
  padding: 4px 7px 4px 5px;
  font-size: 0.72rem;
}

.social-link span {
  width: 21px;
  height: 21px;
  font-size: 0.82rem;
}

.hero {
  min-height: calc(100dvh - 51px);
  align-items: end;
}

.hero img {
  object-position: 58% center;
}

.hero__shade {
  background: linear-gradient(180deg, rgba(5, 27, 34, 0.12) 20%, rgba(5, 27, 34, 0.88) 70%);
}

.hero__content {
  width: 100%;
  padding: 34px var(--mobile-edge) 42px;
}

h1 {
  font-size: clamp(1.6125rem, 8.25vw, 2.5125rem);
  line-height: 1.02;
}

.hero__title--compact {
  font-size: clamp(1.209375rem, 6.1875vw, 1.884375rem);
}

h2 {
  font-size: 1.65rem;
}

.page-shell {
  width: 100%;
  padding: 28px var(--mobile-edge) 52px;
}

.page-heading {
  margin-bottom: 24px;
}

.hero__actions,
.button-row {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-slideshow-controls {
  right: 10px;
  bottom: 10px;
  gap: 4px;
  padding: 4px;
}

.hero-slideshow-controls button {
  min-width: 32px;
  min-height: 32px;
  padding: 3px 7px;
}

.hero-slideshow-status {
  min-width: 68px;
  font-size: 0.7rem;
}

.button {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
}

.quick-links,
.split-section,
.about-layout,
.gallery-layout,
.forum-layout,
.ramp-reviews,
.tide-dashboard,
.tide-moon-grid,
.bait-list,
.bait-notes-grid,
.rig-card-grid,
.gallery-grid {
  grid-template-columns: minmax(0, 1fr);
}

.quick-links {
  padding: 24px var(--mobile-edge);
}

.feature-card,
.data-panel,
.contact-form,
.notice,
.map-card,
.radar-card,
.rig-card,
.gallery-card {
  border-radius: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
input,
select,
textarea {
  max-width: 100%;
  min-height: 48px;
  font-size: 16px;
}

textarea {
  min-height: 130px;
}

.star-rating__choices {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.star-rating__choices input {
  width: 1px;
  height: 1px;
  min-height: 0;
}

.star-rating__choices label {
  width: 52px;
  height: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  font-size: 2.55rem;
  line-height: 1;
  touch-action: manipulation;
}

.tide-chart-panel {
  padding: 16px;
}

.tide-chart-panel .panel-heading {
  display: grid;
  grid-template-columns: 1fr;
}

.tide-chart {
  min-height: 245px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tide-chart svg {
  width: 620px;
  max-width: none;
  min-height: 245px;
}

.tide-event-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tide-event {
  padding: 11px 10px;
}

.moon-card {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
}

.moon-disc {
  width: 118px;
  height: 118px;
}

.table-wrap,
.bait-chart-wrap {
  margin-right: calc(var(--mobile-edge) * -1);
  margin-left: calc(var(--mobile-edge) * -1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.map,
#ramp-map {
  min-height: 58dvh;
}

.water-access-filters {
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px;
}

.water-access-filters label {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
}

.water-access-filters input {
  width: 22px;
  height: 22px;
  min-height: 0;
}

.water-access-filters__submit,
.water-access-filters__submit .button {
  width: 100%;
}

.rig-category__photo,
.gallery-card img {
  min-height: 220px;
}

.site-footer {
  padding: 24px var(--mobile-edge) 76px;
}

.desktop-site-link {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  color: #fff;
  background: #0a3f51;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(8, 33, 39, 0.3);
}

@media (min-width: 600px) {
  :root {
    --mobile-edge: 24px;
  }
}

/* Camera fish identifier */
.fish-camera-card,
.fish-identify-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(5, 61, 79, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(4, 49, 63, 0.14);
}

.fish-camera-instructions h2,
.fish-identify-result h2 {
  margin-top: 0;
}

#fish-identifier-form {
  display: grid;
  gap: 14px;
}

#fish-photo {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fish-photo-button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 170px;
  padding: 24px 16px;
  border: 3px dashed #1685a4;
  border-radius: 15px;
  background: #eaf8fc;
  color: #083e50;
  text-align: center;
  cursor: pointer;
}

.fish-photo-button span {
  font-size: 2.7rem;
}

.fish-photo-button small {
  color: #45636c;
}

#fish-photo:focus-visible + .fish-photo-preview,
.fish-photo-button:focus-within {
  outline: 3px solid #f4a62a;
  outline-offset: 3px;
}

.fish-photo-preview {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #d7edf3;
}

.fish-photo-preview img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.fish-photo-preview button {
  width: 100%;
  border-radius: 0;
}

.fish-identify-submit {
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  background: #08718e;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.fish-identify-submit:disabled {
  opacity: 0.5;
}

.fish-identify-status {
  min-height: 1.5rem;
  margin-top: 12px;
  font-weight: 700;
}

.fish-identify-status--working {
  color: #765006;
}

.fish-identify-status--error {
  color: #9d271e;
}

.fish-identify-status--success {
  color: #24632b;
}

.fish-result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fish-confidence {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e7f3d8;
  color: #31571c;
  font-size: 0.76rem;
  font-weight: 800;
}

.fish-identify-result ul {
  padding-left: 1.25rem;
}

.fish-result-regulations {
  margin: 18px 0;
  padding-top: 4px;
  border-top: 1px solid rgba(5, 61, 79, 0.16);
}

.fish-result-warning {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 13px;
  border-left: 5px solid #c64c24;
  border-radius: 9px;
  background: #fff1e8;
  color: #5f2815;
}

#identify-another {
  width: 100%;
  min-height: 50px;
}
