/* Website screen (content module). Builds on labwolf-os.css + xtazy.css. */
.ct-tab { display: grid; gap: 18px; }
.ct-notice { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0; }
.ct-notice > span { flex: 1 1 280px; font-size: 13px; line-height: 1.6; color: #40413e; margin: 0; }
.ct-notice > span strong { font-size: 13px; color: #111210; margin-bottom: 3px; }
.ct-notice > a { font-size: 13px !important; display: inline-flex !important; min-height: 40px; align-items: center; }

/* bilingual pair: English | Spanish */
.ct-bi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ct-bi label, .ct-link label, .ct-dates label, .ct-slide-photo > label:not(.button):not(.woo-toggle), .ct-tab .settings-form > label:not(.woo-toggle) { display: grid; gap: 6px; font-size: 12px; font-weight: 550; color: #41483d; }
.ct-bi small { font-weight: 450; color: #6b7066; }
.ct-tab input:not([type=checkbox]):not([type=file]), .ct-tab select, .ct-tab textarea { width: 100%; min-height: 40px; font: inherit; font-size: 14px; }
.ct-tab textarea { min-height: 0; }
.ct-tab .footnote { margin: 0; }
.ct-group { border: 1px solid var(--os-line, #e1e4dc); border-radius: 10px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.ct-group legend { padding: 0 6px; font-size: 13px; font-weight: 650; color: #111210; }
.ct-toggle { min-height: 40px; font-size: 13px; color: #111210; }
.ct-ready { align-items: flex-start; line-height: 1.5; padding: 12px 14px; border: 1px solid #e1e4dc; border-radius: 10px; background: #fafaf7; }
.ct-ready input { margin-top: 2px; flex: none; }
.ct-link { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ct-url[hidden] { display: none !important; }

/* list cards */
.ct-cards { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.ct-card { border: 1px solid var(--os-line, #e1e4dc); border-radius: 12px; padding: 16px; background: #fff; display: grid; gap: 14px; min-width: 0; }
.ct-card.is-off { background: #fafaf7; }
.ct-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ct-card-head strong { font-size: 14px; }
.ct-row-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ct-row-tools .button, .ct-file, .ct-tab .button.small { min-height: 40px; display: inline-flex; align-items: center; }
.ct-del { color: var(--xz-bad); }
.ct-head-tools { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* slides */
.ct-slide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.ct-slide-photo { display: grid; gap: 10px; }
.ct-thumb { aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: #eef0ea; border: 1px solid var(--os-line, #e1e4dc); }
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-thumb-sq { aspect-ratio: 4 / 3; }
.ct-file { justify-content: center; cursor: pointer; }
.ct-add-drop { min-height: 56px; display: flex; align-items: center; justify-content: center; font-size: 13px; margin-bottom: 14px; }
.ct-add-drop.is-busy, .ct-file.is-busy { opacity: .6; pointer-events: none; }
.ct-add-drop.is-busy::after, .ct-file.is-busy::after { content: " · uploading…"; }
.ct-add-drop:focus-within, .ct-file:focus-within { outline: 2px solid #2563eb; outline-offset: 2px; }

/* gallery */
.ct-gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ct-gallery .ct-bi { grid-template-columns: 1fr; }
.ct-gallery .ct-row-tools { margin-left: 0; }

/* hours */
.ct-week { display: grid; gap: 8px; }
.ct-day { display: grid; grid-template-columns: 120px 90px 220px 220px; gap: 10px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef0ea; }
.ct-day strong { font-size: 14px; }
.ct-day .ct-time { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; font-size: 12px; color: #41483d; }
.ct-day .ct-time[hidden], .ct-dates .ct-time[hidden] { display: none; }
.ct-closed { color: #6b7066; font-size: 13px; }
.ct-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.ct-inline { display: flex; align-items: center; gap: 8px; font-weight: 450; }
.ct-inline input { width: 80px !important; }

.ct-save { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.ct-save .button { min-height: 44px; }
.ct-dirty { font-size: 12px; color: var(--xz-warn); }

@media (max-width: 900px) {
  .ct-slide { grid-template-columns: 1fr; }
  .ct-dates { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ct-bi, .ct-link, .ct-dates { grid-template-columns: 1fr; }
  .ct-day { grid-template-columns: 1fr auto; }
  .ct-day .ct-time { grid-column: span 1; }
  .ct-row-tools { margin-left: 0; width: 100%; }
  .ct-group { padding: 12px; }
}

/* keep the hidden file pickers inside their buttons (no sideways scrolling on phones) */
.ct-add-drop, .ct-file { position: relative; overflow: hidden; }
.ct-tab input[type=file].sr-only { left: 0; top: 0; padding: 0; border: 0; min-height: 0; }
.ct-tab input[type=time] { min-width: 150px; }
@media (max-width: 700px) { .ct-day .ct-time { grid-column: 1 / -1; } }
