.bulletin-paper-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0;padding:12px;background:#edf4ef;border-radius:12px;position:sticky;top:0;z-index:3}
.bulletin-paper-tools label{display:flex;align-items:center;gap:6px;font-size:13px}.bulletin-paper-tools input,.bulletin-paper-tools select{width:85px;padding:6px}.bulletin-paper-tools input[type=color]{width:45px;height:34px}
.bulletin-paper-viewport{overflow:auto;background:#dde4df;padding:22px;max-height:1000px;border-radius:12px}
.bulletin-paper{width:var(--paper-width,1202px);min-height:var(--paper-height,826px);padding:12px 9px 12px 8px;background:white;color:#000;display:grid;grid-template-columns:var(--paper-columns,380px 39px 360px 28px 378px);align-items:start;font:14px/1.3 'Malgun Gothic','맑은 고딕',Arial,sans-serif;box-sizing:border-box;box-shadow:0 3px 16px #0002;transform-origin:top left;zoom:var(--paper-zoom,1)}
.bulletin-paper-column:nth-child(1){grid-column:1}.bulletin-paper-column:nth-child(2){grid-column:3}.bulletin-paper-column:nth-child(3){grid-column:5}
.bulletin-paper-column{min-width:0}.bulletin-paper .bulletin-paper-heading{color:#000;font-family:'Batang','바탕',serif;font-size:20px;line-height:1.4;text-align:center;letter-spacing:3px;border-top:2px solid #000;border-bottom:1px solid #000;margin:0 0 12px;padding:2px;font-weight:bold;background:#fff}
.bulletin-paper-column:nth-child(2)>.bulletin-paper-heading{font-size:18px;letter-spacing:0}
.bulletin-paper-time{display:flex;justify-content:space-between;border-top:1px solid #111;border-bottom:1px dotted #dc7676;min-height:27px}.bulletin-paper-time>div{width:48%}.bulletin-paper-time>div:last-child{text-align:right}
.bulletin-paper-host{display:flex;justify-content:flex-end;gap:6px}.bulletin-paper-host>div:last-child{min-width:50px}
.bulletin-paper-table{width:100%;border-collapse:collapse;table-layout:fixed;color:#000;margin:0 0 10px;font:inherit}.bulletin-paper-table td{padding:0;border:1px dotted #dc7676;vertical-align:middle}.bulletin-paper-table td:first-child{width:25%;letter-spacing:0;font-size:13px}.bulletin-paper-table td:nth-child(2){width:47%;text-align:center}.bulletin-paper-table td:last-child{width:28%;text-align:right}.bulletin-paper-table .bulletin-editable{min-height:20px;padding:1px 3px;box-sizing:border-box}
.bulletin-paper-blue{color:#2020ee}.bulletin-paper-table tr:has(.bulletin-paper-blue) td:first-child{font-size:11px}.bulletin-paper-table tr:has(.bulletin-paper-blue) td:last-child{text-align:right}
.bulletin-paper-school-table .bulletin-paper-curriculum{font-size:11px;text-align:left}
.bulletin-paper-school-table .bulletin-paper-blue{font-size:14px;text-align:right}
.bulletin-paper-duty-table,.bulletin-paper-next-table{width:100%;border-collapse:collapse;table-layout:fixed;font:inherit;color:#000}.bulletin-paper-duty-table td,.bulletin-paper-next-table td{border:1px solid #000;padding:0;text-align:center}.bulletin-paper-duty-table td:first-child{width:27%;font-size:13px}.bulletin-paper-duty-table .bulletin-editable,.bulletin-paper-next-table .bulletin-editable{min-height:20px;padding:1px 3px}.bulletin-paper-next-table td:first-child{width:15%}.bulletin-paper-next-table td:last-child{width:22%}.bulletin-paper-next-table{font-size:13px}.bulletin-paper-duties .bulletin-paper-heading{font-size:17px;line-height:1.2;padding:1px}.bulletin-paper-next .bulletin-paper-heading{font-size:16px;line-height:1.2;padding:1px}.bulletin-paper-source-text{font-size:12px;padding:3px 5px;white-space:pre-wrap}.bulletin-paper-memory .bulletin-paper-heading{border:0;font:14px/1.3 sans-serif;letter-spacing:0;padding:0}.bulletin-paper-memory .bulletin-paper-prose{min-height:0;font-size:14px;padding:3px 5px}
.bulletin-paper-box{border:1px solid #000;margin:10px 0 0;padding:0}.bulletin-paper-box .bulletin-paper-heading{font-size:18px;border-top:0;margin:0;letter-spacing:2px}.bulletin-paper-prose{padding:5px 7px;min-height:40px;white-space:pre-wrap;overflow-wrap:anywhere}.bulletin-paper-notices{min-height:500px}.bulletin-paper-notices .bulletin-paper-prose{font-size:13px}.bulletin-paper-notices .bulletin-paper-heading{font-size:15px;text-align:left;letter-spacing:0;padding:5px 7px;border:0;margin:0}.bulletin-paper-sunset{text-align:right;min-height:24px}
.bulletin-editable{white-space:pre-wrap;overflow-wrap:anywhere;outline:none;cursor:text}.bulletin-editable[contenteditable=true]:hover{background:#fff8df}.bulletin-editable[contenteditable=true]:focus{outline:2px solid #23695b;outline-offset:-2px;background:#fffae9}.bulletin-editable[contenteditable=true]:empty:before{content:attr(data-placeholder);color:#aaa;font:11px system-ui;letter-spacing:0}.bulletin-editable[contenteditable=false]{cursor:default}
.bulletin-paper.exporting .bulletin-editable{outline:none!important;background:transparent!important}.bulletin-paper.exporting .bulletin-editable:empty:before{content:none}
.bulletin-paper.exporting .bulletin-paper-table td{border-color:transparent}.bulletin-paper.exporting .bulletin-paper-time{border-bottom-color:transparent}
.bulletin-paper-offering-table{width:100%;border-collapse:collapse;table-layout:fixed;font:inherit}.bulletin-paper-offering-table td{border:1px solid #000;padding:0;vertical-align:middle}.bulletin-paper-offering-table td:first-child{width:18%;text-align:center;font-size:13px}.bulletin-paper-offering-table td:nth-child(3){width:23%;text-align:center;font-size:13px}.bulletin-paper-offering-table .bulletin-editable{min-height:20px;padding:1px 3px}.bulletin-paper-offerings{border:0}.bulletin-paper-offerings .bulletin-paper-source-text{border:1px solid #000;border-top:0}
.bulletin-paper-duty-table{font-size:13px;line-height:1.2}.bulletin-paper-duty-table .bulletin-editable{min-height:18px;box-sizing:border-box}
.bulletin-paper-worship-table td:first-child{width:31%}.bulletin-paper-worship-table td:nth-child(2){width:40%}.bulletin-paper-worship-table td:last-child{width:29%}
.bulletin-paper-column:nth-child(3)>.bulletin-paper-heading{margin-bottom:24px}
.bulletin-paper-memory{margin-top:2px}
.bulletin-paper-memory-title{display:flex;justify-content:center;align-items:baseline;gap:8px;flex-wrap:wrap}
.bulletin-paper-memory-title .bulletin-paper-heading{margin:0}
.bulletin-paper-memory-reference{font-size:12px;min-width:90px;text-align:left}
/* Match the original bulletin's aligned character columns, without storing
   artificial spaces in names or distributing long choir/program names. */
.bulletin-paper-spaced{white-space:nowrap;letter-spacing:max(0px,calc((var(--bulletin-name-width,82px) - var(--bulletin-name-length)*1em)/(var(--bulletin-name-length) - 1)))}
.bulletin-paper-compact-spaced{letter-spacing:3px}
.bulletin-paper-table td:first-child .bulletin-paper-spaced{--bulletin-name-width:82px;text-align:left}
.bulletin-paper-table td:last-child .bulletin-paper-spaced{--bulletin-name-width:82px;text-align:left}
.bulletin-paper-host>.bulletin-paper-spaced{--bulletin-name-width:66px;width:80px;text-align:left}
.bulletin-paper-table td:last-child .bulletin-editable{padding-inline:7px}
.bulletin-paper-table .bulletin-editable{line-height:1.3;min-height:20px}
.bulletin-paper-table.bulletin-paper-worship-table .bulletin-editable{min-height:24.5px}
.bulletin-paper-table.bulletin-paper-worship-table [data-slot="worship.11.value"].bulletin-editable{min-height:58px}
.bulletin-paper-table.bulletin-paper-worship-table [data-slot^="worship.14."].bulletin-editable{min-height:16px}
.bulletin-paper-column:nth-child(3) .bulletin-paper-prose{font-size:13px;line-height:1.25}
.bulletin-paper-table.bulletin-paper-worship-table{margin-bottom:0}
.bulletin-paper-table.bulletin-paper-worship-table+.bulletin-paper-box{margin-top:0}
.bulletin-paper-school-table .bulletin-editable{min-height:18.75px;padding-block:0}
.bulletin-paper-duty-table td,.bulletin-paper-next-table td,.bulletin-paper-offering-table td{border-width:1px}
@media print{body *{visibility:hidden}.bulletin-paper,.bulletin-paper *{visibility:visible}.bulletin-paper{position:absolute;left:0;top:0;zoom:1;box-shadow:none}}
.bulletin-author-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.bulletin-author-layout.resources-wide{grid-template-columns:minmax(0,1fr) clamp(460px,36vw,700px)}
.bulletin-author-layout.resources-wide #author-plan-pdf-frame{height:65vh}
.bulletin-author-resources{padding:18px;background:white;border:1px solid #cddcd5;border-radius:12px;position:sticky;top:100px;max-height:80vh;overflow:auto}
.bulletin-author-resources .button{width:100%;margin:5px 0;text-align:left}
.bulletin-author-resources input{width:100%;box-sizing:border-box}.bulletin-author-resources pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 sans-serif}
.bulletin-author-resources p{font-size:13px;line-height:1.6}.bulletin-author-resources summary{cursor:pointer}
#author-plan-import-preview{max-height:32vh;overflow:auto;padding:10px;background:#f3f7f5;border-radius:6px}
#author-plan-import-preview:empty{display:none}
#author-plan-pdf-frame{width:100%;height:55vh;border:1px solid #cddcd5;border-radius:6px;background:white}
#author-catalog{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}#author-catalog .button{font-size:14px}
@media(max-width:1100px){.bulletin-author-layout,.bulletin-author-layout.resources-wide{grid-template-columns:minmax(0,1fr)}.bulletin-author-resources{position:static;max-height:none}#author-resources-width{display:none}}
.bulletin-author-layout > *, .bulletin-author-resources { min-width: 0; }
#author-person-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
#author-person-results:empty { display: none; }
#author-person-results > p { grid-column: 1 / -1; }
#author-person-results .button { margin: 0; padding: 8px; font-size: 13px; }
.bulletin-paper-tools input:not([type=checkbox]), .bulletin-paper-tools select { min-height: 44px; border: 1px solid #cad9d0; border-radius: 8px; }
.bulletin-paper-tools input[type=checkbox] { width:18px; height:18px; min-height:18px; padding:0; flex:none; accent-color:#216959; }
.bulletin-paper-tools select { width:auto; max-width:100%; }
#author-date { min-height:44px; padding:8px 12px; border:1px solid #cad9d0; border-radius:8px; color:inherit; background:white; max-width:100%; }
.author-plan-notes { margin:12px 0; }
.author-plan-notes pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:1.6; }
#author-selected { flex-basis:100%; font-size:14px; }
.author-date-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:8px 0; }
.author-date-controls > label { flex-basis:100%; margin:0; }
.author-date-controls > .button { margin:0; }
@media(max-width:600px) { .author-date-controls > .button { flex:1 1 180px; } }
#bulletin-authoring-section > h3 { margin:0; }
#bulletin-authoring-section > p { margin:4px 0; font-size:14px; line-height:1.65; }
#author-status { padding:10px 12px; border-radius:8px; background:#edf4ef; color:#365a4b; }
.bulletin-paper-tools input[type=color] { min-height: 44px; }
.bulletin-author-resources input:not([type=checkbox]) { min-height: 44px; }
.bulletin-author-resources > section { border: 1px solid #c9dcd5; border-radius: 12px; padding: 14px; margin-block: 16px; }
.bulletin-author-resources h4 { margin: 0 0 12px; font-size: 18px; }
.bulletin-author-resources select { width: 100%; min-height: 44px; }
.author-resource-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; max-height: 240px; overflow: auto; }
.bulletin-editable.resource-imported { background: #fff2bb; outline: 1px solid #bc8f24; }
.bulletin-author-resources > section > .button { display: block; width: 100%; margin-top: 8px; }
@media(max-width:900px) {
  .bulletin-paper-tools { position: static; }
  .bulletin-paper-viewport { padding: 12px; max-height: 65dvh; overscroll-behavior: contain; }
  .bulletin-author-resources { max-height: none; }
}
@media(max-width:600px) {
  .bulletin-paper-tools { gap: 8px; padding: 10px; }
  .bulletin-paper-tools > label { flex: 1 1 140px; justify-content: space-between; }
  .bulletin-paper-tools > .button { flex: 1 1 100px; }
  #author-catalog { display: grid; grid-template-columns: minmax(0,1fr); }
  #author-catalog .button { text-align: left; justify-content: start; }
  .bulletin-author-resources { padding: 14px; }
}
/* Editor-only affordances: none of these marks appear in the published PNG. */
.bulletin-paper-tools .button{font-size:13px;padding:8px 10px;margin:0}
.author-save-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
#author-save-status{font-size:12px;color:#365a4b;overflow-wrap:anywhere}
#author-save-status[data-state=dirty]{color:#75550a}
#author-save-status[data-state=error]{color:#ad3020}
.bulletin-paper-tools .bulletin-advanced-format{flex-basis:auto}
.bulletin-paper-tools .bulletin-advanced-format[open]{flex-basis:100%}
.bulletin-paper-tools summary{box-sizing:border-box;padding:6px 0;font-size:13px}
.bulletin-paper .bulletin-editable{scroll-margin-top:var(--author-tools-height,170px)}
.bulletin-paper:not(.exporting) .author-cell-selected{outline:2px solid #23695b;outline-offset:-2px;background:#eef8f3}
.bulletin-paper:not(.exporting) .author-cell-overflow{box-shadow:inset 0 -2px #b84b27}
.bulletin-paper.exporting .author-cell-overflow{box-shadow:none}
#author-overflow-fields{display:flex;flex-wrap:wrap;gap:8px}
#author-overflow-fields .button{font-size:13px}
.author-resource-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-block:12px}
.bulletin-author-layout.resources-hidden{grid-template-columns:minmax(0,1fr)}
.author-resource-tabs button{min-height:44px;padding:6px;border:1px solid #cad9d0;border-radius:8px;background:#f6f8f6;color:#365a4b;cursor:pointer;font:inherit;font-size:13px}
.author-resource-tabs button[aria-selected=true]{background:#216959;color:white;border-color:#216959}
.author-resource-tabs button:focus-visible{outline:3px solid #bd8f22;outline-offset:2px}
#author-original-image{display:block;width:100%;height:auto;border:1px solid #c9dcd5;background:white}
#author-original-image[hidden]{display:none}
#author-import-dialog{width:min(700px,calc(100vw - 32px));max-height:85dvh;box-sizing:border-box;padding:24px;border:1px solid #c9dcd5;border-radius:16px;color:#213e35}
#author-import-dialog::backdrop{background:#10291fcc}
#author-import-dialog h3{margin:0 0 12px;font-size:21px}
#author-import-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
#author-import-changes{max-height:45dvh;overflow:auto;overscroll-behavior:contain}
#author-import-changes section{border-top:1px solid #d8e5dd;padding-block:12px}
#author-import-changes h4{margin:0 0 8px;font-size:16px}
#author-import-changes p{margin:4px 0;padding:8px;border-radius:6px;background:#f3f6f4}
#author-import-changes p:last-child{background:#eaf5ef}
.author-import-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}
@media(max-width:900px){.bulletin-paper .bulletin-editable{scroll-margin-top:16px}}
@media(max-width:600px){#author-import-dialog{padding:16px}.author-import-actions .button{flex:1}.author-resource-tabs button{font-size:12px}}
