.homepage-updates-workspace { margin: 28px 0; }
.homepage-update-editor-grid { display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.home-update-list { display: grid; gap: 8px; min-width: 0; }
.home-update-list h3 { margin: 0 0 8px; }
.home-update-list-item { display: grid; gap: 4px; text-align: left; background: #fff; color: #18233a; border: 1px solid #ded5cb; border-radius: 5px; padding: 12px; min-height: 44px; overflow-wrap: anywhere; }
.home-update-list-item.active { border-color: #4f263d; background: #f5edf2; }
.home-update-list-item span, .home-update-list-item small { font-size: 14px; color: #68615d; }
.home-update-form-card, .home-update-preview { margin-bottom: 18px; min-width: 0; }
.home-update-fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; border: 1px solid #e4dbd2; border-radius: 5px; padding: 14px; min-width: 0; }
.home-update-fieldset legend { font-weight: 600; padding: 0 6px; }
.home-update-fieldset label { min-width: 0; }
.home-update-fieldset label:has(textarea), .home-update-photo { grid-column: 1/-1; }
.home-update-fieldset input, .home-update-fieldset select, .home-update-fieldset textarea { width: 100%; min-width: 0; font-size: 16px; }
.home-update-photo { border: 1px solid #e5dcd2; padding: 12px; border-radius: 5px; overflow-wrap: anywhere; }
.home-update-photo p { margin: 5px 0 10px; }
.home-update-frame-wrap { margin: 14px auto 0; width: 100%; border: 1px solid #ded5ca; background: #fff; }
.home-update-frame-wrap.mobile { max-width: 390px; }
.home-update-frame-wrap iframe { border: 0; width: 100%; height: 650px; display: block; }
.homepage-public-updates { display: grid; gap: 24px; padding: clamp(24px,4vw,60px) 6%; max-width: 1500px; margin: auto; }
.homepage-public-updates:empty { display: none; }
.homepage-update { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: #f6f1e8; color: #4f263d; overflow-wrap: anywhere; }
.homepage-update-image { width: 100%; height: 100%; max-height: 430px; min-height: 240px; background: #ece4db; }
.homepage-update-copy { padding: clamp(22px,4vw,55px); min-width: 0; }
.homepage-update-copy h2 { font: clamp(30px,3vw,48px)/1.08 Newsreader,serif; margin: 12px 0; }
.homepage-update-copy p { white-space: pre-wrap; line-height: 1.6; }
.homepage-update-kicker { font-size: 14px; letter-spacing: .12em; }
.homepage-update-cta { min-height: 44px; padding: 10px 16px; color: #fff; background: #4f263d; border: 1px solid #4f263d; }
.homepage-update--card { max-width: 850px; margin: auto; border: 1px solid #e1d6cd; }
.homepage-update--banner { grid-template-columns: minmax(0,1fr); background: #4f263d; color: #fff; }
.homepage-update--banner .homepage-update-image { height: 240px; min-height: 0; }
.homepage-update--banner .homepage-update-cta { color: #4f263d; background: #fff; }
.homepage-update:not(:has(.homepage-update-image)) { grid-template-columns: minmax(0,1fr); }
.preview-site.site-dark .homepage-update:not(.homepage-update--banner) { background: #3d1d30; color: #fff8ef; }
.update-photo-dialog { width: min(900px,calc(100vw - 24px)); max-height: 88dvh; border: 1px solid #d8ccc0; border-radius: 7px; padding: 20px; color: #18233a; background: #fffdfa; }
.update-photo-dialog::backdrop { background: #24101db3; }
.update-photo-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
.update-photo-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.update-photo-filters label, .update-photo-dialog > label { display: grid; gap: 4px; }
.update-photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 10px; overflow-y: auto; min-height: 150px; }
.update-photo-choice { border: 1px solid #ded4ca; border-radius: 5px; padding: 8px; display: grid; gap: 5px; overflow-wrap: anywhere; }
.update-photo-choice label { display: grid; gap: 5px; cursor: pointer; }
.update-photo-choice input { width: 20px; min-height: 20px; }
.update-photo-choice img { width: 100%; height: 100px; object-fit: contain; background: #eee7de; }
.update-photo-choice button { min-height: 44px; }
@container content (max-width: 800px) { .homepage-update-editor-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) { .homepage-update-editor-grid, .homepage-update { grid-template-columns: minmax(0,1fr); } .home-update-fieldset { grid-template-columns: minmax(0,1fr); } .update-photo-filters { grid-template-columns: minmax(0,1fr); } .update-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.homepage-updates-workspace > .section-head, .home-update-form-card > .section-head { flex-wrap: wrap; }
.homepage-updates-workspace button, .update-photo-dialog button { min-height: 44px; }
@container content (max-width: 420px) { .home-update-fieldset { grid-template-columns: minmax(0,1fr); } }
/* Put the update list above the editor and keep preview visible on wider screens. */
.homepage-update-editor-grid { display: block; }
.home-update-list { display: flex; flex-wrap: wrap; align-items: stretch; margin-bottom: 18px; }
.home-update-list h3 { flex-basis: 100%; }
.home-update-list-item { flex: 1 1 180px; max-width: 300px; }
.home-update-list details { flex-basis: 100%; }
.home-update-panels { display: grid; gap: 18px; min-width: 0; }
.update-mobile-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.update-mobile-tabs button[aria-pressed="true"] { background: #4f263d; color: #fff; }
.home-update-panels[data-mobile-panel="edit"] .home-update-preview,
.home-update-panels[data-mobile-panel="preview"] .home-update-form-card { display: none; }
.home-update-frame-wrap { height: 650px; overflow: hidden; position: relative; }
.home-update-frame-wrap iframe { position: absolute; top: 0; left: 0; max-width: none; transform-origin: top left; }
@container content (min-width: 900px) {
  .home-update-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .home-update-panels[data-mobile-panel="edit"] .home-update-preview,
  .home-update-panels[data-mobile-panel="preview"] .home-update-form-card { display: block; }
  .home-update-preview { position: sticky; top: 16px; }
  .update-mobile-tabs { display: none; }
}
.update-photo-dialog { overflow: hidden; }
.update-photo-dialog > :not(.update-photo-grid) { flex-shrink: 0; }
.update-photo-dialog .update-photo-grid { flex: 1 1 auto; min-height: 0; }
.update-photo-dialog > [role="status"] { max-height: 4.2em; overflow: auto; overflow-wrap: anywhere; }
.update-photo-dialog > .row { background: #fffdfa; padding-top: 8px; }
@media (max-width: 480px) { .update-photo-dialog { padding: 12px; gap: 8px; } .update-photo-dialog .section-head { margin-bottom: 0; } .update-photo-dialog > label input { min-height: 44px; } }
.home-update-help { grid-column: 1 / -1; border: 1px solid #e3dacf; border-radius: 5px; padding: 9px 11px; background: #faf7f2; font-size: 14px; }
.home-update-help summary { color: #4f263d; font-weight: 600; cursor: pointer; }
.home-update-help p { margin: 8px 0 2px; line-height: 1.5; }

.home-update-form-card { container:update-form / inline-size; }
@container update-form (max-width:550px) { .home-update-fieldset {grid-template-columns:minmax(0,1fr);} }
.home-update-preview button[aria-pressed="true"] { background:#4f263d; color:#fff; }
