/* Public custom promotions and administrator-only front-end editing controls. */
.graham-custom-ad { background: #075da8; color: #fff; }
.graham-custom-ad > .graham-page-container { align-items: stretch; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); min-height: 330px; padding-bottom: 0; padding-top: 0; }
.graham-custom-ad-media { min-width: 0; overflow: hidden; }
.graham-custom-ad-media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.graham-custom-ad-copy { align-self: center; padding: clamp(30px, 5vw, 64px); }
.graham-custom-ad-copy .graham-page-kicker { color: #a6edb8; margin: 0 0 9px; }
.graham-custom-ad-copy h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: 0; line-height: 1.1; margin: 0 0 14px; }
.graham-custom-ad-copy > p:not(.graham-page-kicker) { color: #e8f2f8; line-height: 1.65; margin: 0 0 24px; }
.graham-custom-ad-no-image > .graham-page-container { grid-template-columns: minmax(0, 900px); justify-content: center; min-height: 0; }
.graham-custom-ad-no-image .graham-custom-ad-copy { text-align: center; }
.graham-custom-ad-no-image .graham-page-kicker { margin-left: auto; margin-right: auto; }
.graham-custom-ad-button { background: #fff !important; color: #064677 !important; }
.graham-custom-ad-green { background: #168d45; }
.graham-custom-ad-green .graham-page-kicker { color: #d8f8df; }
.graham-custom-ad-light { background: #eef5f8; color: #17324a; }
.graham-custom-ad-light .graham-page-kicker { color: #12833c; }
.graham-custom-ad-light h2 { color: #064677; }
.graham-custom-ad-light .graham-custom-ad-copy > p:not(.graham-page-kicker) { color: #435e72; }
.graham-custom-ad-light .graham-custom-ad-button { background: #075da8 !important; color: #fff !important; }
.graham-home-promotion-status { background: rgba(255,255,255,.92); border-radius: 4px; color: #0b385b; display: inline-flex; font-size: .76rem; font-weight: 800; margin-bottom: 12px; padding: 6px 9px; }
.graham-home-promotion-status.is-expired { color: #7b2d23; }
.graham-home-promotion-status.is-scheduled { color: #075da8; }

.graham-home-editor-toolbar { align-items: center; background: #fff; border: 2px solid #075da8; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; margin-top: 18px; padding: 12px; }
.graham-home-editor-toolbar strong { color: #064677; margin-right: auto; }
.graham-home-editor-toolbar .graham-button { align-items: center; border-radius: 4px; display: inline-flex; gap: 7px; margin: 0; min-height: 40px; padding: 8px 12px; }
.graham-home-editor-section { position: relative; }
.graham-home-section-controls { align-items: center; background: #073d67; color: #fff; display: flex; gap: 3px; min-height: 42px; padding: 5px max(14px, calc((100vw - 1340px) / 2)); position: relative; z-index: 20; }
.graham-home-section-controls strong { font-size: .78rem; margin-right: auto; }
.graham-home-section-controls button,
.graham-footer-edit-bar button { align-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px; color: #fff; cursor: pointer; display: inline-flex; height: 32px; justify-content: center; padding: 0; width: 34px; }
.graham-home-section-controls button:hover,
.graham-home-section-controls button:focus-visible,
.graham-footer-edit-bar button:hover,
.graham-footer-edit-bar button:focus-visible { background: #fff; color: #064677; outline: 0; }
.graham-home-section-controls button:disabled { cursor: default; opacity: .35; }
.graham-home-editor-empty { background: #f4f8fb; color: #52697b; padding-bottom: 28px; padding-top: 28px; }
.graham-footer-edit-bar { background: #073d67; display: flex; justify-content: center; padding: 7px 14px; }
.graham-footer-edit-bar button { font-weight: 800; gap: 8px; padding: 0 14px; width: auto; }
.graham-company-info-edit-bar { background: #073d67; display: flex; justify-content: center; padding: 8px 14px; }
.graham-company-info-edit-bar button { align-items: center; background: #fff; border: 1px solid #fff; border-radius: 4px; color: #064677; cursor: pointer; display: inline-flex; font-weight: 800; gap: 8px; min-height: 34px; padding: 6px 13px; }
.graham-company-info-edit-bar button:hover,
.graham-company-info-edit-bar button:focus-visible { background: #e9f3f9; border-color: #e9f3f9; outline: 0; }
.graham-home-editor-help { background: #eef6fa; border-left: 4px solid #0874bd; color: #31566f; font-size: .84rem; line-height: 1.45; margin: 0 0 16px; padding: 9px 11px; }

.graham-home-editor-modal[hidden] { display: none !important; }
.graham-home-editor-modal { inset: 0; position: fixed; z-index: 100000; }
.graham-home-editor-backdrop { background: rgba(9, 31, 49, .68); inset: 0; position: absolute; }
.graham-home-editor-dialog { background: #fff; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); color: #17324a; left: 50%; max-height: min(820px, calc(100vh - 40px)); max-width: 760px; overflow: auto; position: absolute; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); }
.graham-home-editor-dialog > header { align-items: center; background: #075da8; color: #fff; display: flex; justify-content: space-between; padding: 17px 20px; }
.graham-home-editor-dialog h2 { color: #fff; font-size: 1.25rem; letter-spacing: 0; margin: 0; }
.graham-home-editor-close { align-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .65); border-radius: 4px; color: #fff; cursor: pointer; display: flex; height: 34px; justify-content: center; padding: 0; width: 34px; }
.graham-home-editor-body { padding: 22px; }
.graham-home-editor-body label { color: #17324a; display: block; font-size: .82rem; font-weight: 800; margin: 0 0 16px; }
.graham-home-editor-body input[type="text"],
.graham-home-editor-body input[type="url"],
.graham-home-editor-body input[type="email"],
.graham-home-editor-body textarea,
.graham-home-editor-body select { background: #fff; border: 1px solid #aebfcb; border-radius: 4px; box-sizing: border-box; color: #17324a; display: block; font: inherit; margin-top: 6px; min-height: 43px; padding: 9px 10px; width: 100%; }
.graham-home-editor-body textarea { min-height: 92px; resize: vertical; }
.graham-home-editor-fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.graham-home-editor-body fieldset { border: 1px solid #d6e1e8; margin: 0 0 16px; padding: 14px 14px 0; }
.graham-home-editor-body legend { color: #064677; font-size: .82rem; font-weight: 800; padding: 0 7px; }
.graham-home-editor-check { align-items: center; display: flex !important; gap: 9px; }
.graham-home-editor-check input { height: 20px; margin: 0; width: 20px; }
.graham-home-layout-row,
.graham-home-campaign-row { align-items: center; border-bottom: 1px solid #dce6ee; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; padding: 11px 0; }
.graham-home-layout-row:first-child,
.graham-home-campaign-row:first-child { border-top: 1px solid #dce6ee; }
.graham-home-layout-row strong,
.graham-home-campaign-row strong { min-width: 0; overflow-wrap: anywhere; }
.graham-home-layout-actions { align-items: center; display: flex; gap: 5px; }
.graham-home-layout-actions button { align-items: center; background: #fff; border: 1px solid #aebfcb; border-radius: 4px; color: #064677; cursor: pointer; display: flex; height: 35px; justify-content: center; padding: 0; width: 35px; }
.graham-home-layout-actions button:disabled { opacity: .35; }
.graham-home-layout-actions label { align-items: center; display: flex; gap: 5px; margin: 0; padding: 0 5px; }
.graham-home-layout-actions input { height: 18px; margin: 0; width: 18px; }
.graham-home-editor-image-field { align-items: center; border: 1px solid #d6e1e8; display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; padding: 12px; }
.graham-home-editor-image-preview { align-items: center; background: #eef3f6; display: flex; height: 78px; justify-content: center; overflow: hidden; width: 110px; }
.graham-home-editor-image-preview:empty::after { color: #63778a; content: "No image"; font-size: .75rem; }
.graham-home-editor-image-preview img { height: 100%; object-fit: cover; width: 100%; }
.graham-home-editor-actions { align-items: center; border-top: 1px solid #dce6ee; display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; padding-top: 18px; }
.graham-home-editor-actions .graham-button { border-radius: 4px; margin: 0; }
.graham-home-editor-delete { color: #a51e25 !important; margin-right: auto !important; }
.graham-home-editor-status { color: #075da8; font-size: .84rem; font-weight: 700; margin: 14px 0 0; min-height: 1.3em; }
body.graham-home-editor-open { overflow: hidden; }

@media (max-width: 700px) {
    .graham-custom-ad > .graham-page-container { grid-template-columns: minmax(0, 1fr); padding-left: 0; padding-right: 0; }
    .graham-custom-ad-no-image > .graham-page-container { width: 100%; }
    .graham-custom-ad-media { aspect-ratio: 3 / 2; }
    .graham-custom-ad-copy { padding: 27px 20px 31px; }
    .graham-home-editor-toolbar { align-items: stretch; flex-direction: column; margin-left: 14px; margin-right: 14px; width: calc(100% - 28px); }
    .graham-home-editor-toolbar strong { margin: 0 0 4px; }
    .graham-home-editor-toolbar .graham-button { justify-content: center; width: 100%; }
    .graham-home-section-controls { padding-left: 10px; padding-right: 10px; }
    .graham-home-section-controls strong { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .graham-home-editor-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .graham-home-editor-dialog { max-height: calc(100vh - 20px); width: calc(100% - 20px); }
    .graham-home-editor-body { padding: 17px; }
    .graham-home-layout-row,
    .graham-home-campaign-row { align-items: start; grid-template-columns: minmax(0, 1fr); }
    .graham-home-layout-actions { justify-content: flex-start; }
}
