/* Original layouts. Photos and typography use the project's own licensed assets. */
.editor-preview-document .is-editor-selected { outline: none; }
.editor-preview-document .iv-section, .editor-preview-document .iv-hero { cursor: pointer; }
.iv-editorial .iv-hero, .iv-garden .iv-hero, .iv-letter .iv-hero { color: #363e37; background: var(--paper); min-height: 660px; gap: 20px; }
.iv-editorial .iv-hero.has-photo, .iv-garden .iv-hero.has-photo, .iv-letter .iv-hero.has-photo { color: #363e37; }
.iv-editorial .iv-hero.has-photo::after, .iv-garden .iv-hero.has-photo::after, .iv-letter .iv-hero.has-photo::after { display: none; }
.iv-editorial .iv-hero .iv-kicker, .iv-garden .iv-hero .iv-kicker, .iv-letter .iv-hero .iv-kicker { color: var(--accent); }
.iv-editorial .iv-names .amp, .iv-garden .iv-names .amp, .iv-letter .iv-names .amp { color: var(--accent); }
.iv-editorial .iv-hero { padding: 32px 24px; justify-content: flex-start; align-items: stretch; text-align: left; }
.iv-editorial .iv-art { position: relative; z-index: 0; inset: auto; width: 100%; height: 360px; order: 2; background: var(--paper); }
.iv-editorial .iv-art svg { position: static; }
.iv-editorial .iv-kicker { order: 1; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb,var(--accent) 25%,transparent); }
.iv-editorial .iv-hero-main { order: 3; margin: 4px 0; }
.iv-editorial .iv-names { font-size: clamp(30px,9vw,40px); letter-spacing: .03em; }
.iv-editorial .iv-names .amp { display: inline-block; padding: 0 8px; font-size: 24px; }
.iv-editorial .iv-hero-bottom { order: 4; border-top: 1px solid color-mix(in srgb,var(--accent) 25%,transparent); padding-top: 16px; }
.iv-editorial .iv-scroll { display: none; }
.iv-editorial .iv-section { text-align: left; padding: 58px 28px; }
.iv-editorial .iv-divider { margin-left: 0; }
.iv-editorial .iv-title { font-size: 25px; }
.iv-editorial .iv-gallery { gap: 12px; }
.iv-editorial .iv-timeline { margin-left: 6px; }
.iv-garden .iv-hero { padding: 32px 24px; justify-content: flex-start; }
.iv-garden .iv-kicker { order: 1; }
.iv-garden .iv-art { position: relative; z-index: 0; inset: auto; width: min(280px,100%); height: 310px; border-radius: 160px 160px 2px 2px; order: 2; outline: 1px solid color-mix(in srgb,var(--accent) 35%,transparent); outline-offset: 7px; margin: 12px 0; background: var(--paper); }
.iv-garden .iv-art svg { position: static; }
.iv-garden .iv-hero-main { order: 3; margin: 4px 0; }
.iv-garden .iv-names { font-size: 34px; }
.iv-garden .iv-names .amp { display: inline-block; margin: 0 10px; font-size: 24px; }
.iv-garden .iv-hero-bottom { order: 4; }
.iv-garden .iv-section:nth-of-type(2n) { background: color-mix(in srgb,var(--accent) 5%,var(--paper)); }
.iv-garden .iv-location-card, .iv-garden .iv-notice { border-radius: 140px 140px 8px 8px; padding-top: 50px; }
.iv-letter .iv-hero { padding: 40px 28px; margin: 0; min-height: 650px; border: 0; outline: none; justify-content: space-between; }
.iv-letter .iv-art { background: none; }
.iv-letter .iv-art svg { display: none; }
.iv-letter .iv-letter-heading { color: var(--accent); font: 400 clamp(32px,10vw,44px)/1.1 'Planner Editorial',Georgia,serif; letter-spacing: -.03em; }
.iv-letter .iv-letter-heading em { font-weight: 400; }
.iv-letter .iv-hero-main { margin: 20px 0; }
.iv-letter .iv-names { font-size: 32px; letter-spacing: .1em; }
.iv-letter .iv-hero.has-photo .iv-art { position: relative; z-index: 0; inset: auto; width: 100%; height: 220px; order: 2; }
.iv-letter .iv-hero.has-photo .iv-letter-heading { order: 1; }
.iv-letter .iv-hero.has-photo .iv-kicker { order: 0; }
.iv-letter .iv-hero.has-photo .iv-hero-main { order: 3; }
.iv-letter .iv-hero.has-photo .iv-hero-bottom { order: 4; }
.iv-letter .iv-title { font-size: 26px; }
.iv-letter .iv-eyebrow { letter-spacing: .2em; }
.iv-letter .iv-section { border-top: 1px solid color-mix(in srgb,var(--accent) 15%,transparent); margin: 0 24px; padding-inline: 12px; }
.cover-editorial, .cover-garden, .cover-letter { background: #f7f8f8; }
.cover-editorial::before, .cover-garden::before, .cover-letter::before { display: none; }
.cover-garden { background: #f1f3e8; }
.cover-letter { background: #fff5f2; color: #783d50; }
.mini-editorial, .mini-garden, .mini-letter { position: absolute; inset: 38px 28px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; }
.mini-editorial > span, .mini-garden > span, .mini-letter > span { font-size: 9px; letter-spacing: .16em; }
.mini-editorial img, .mini-garden img { width: 100%; min-height: 0; flex: 1; object-fit: cover; object-position: center; }
.mini-editorial { align-items: stretch; text-align: left; }
.mini-editorial > span { border-bottom: 1px solid #b6c4c8; padding-bottom: 10px; }
.mini-editorial strong, .mini-garden strong, .mini-letter strong { font: 400 24px/1.5 var(--serif); letter-spacing: .03em; }
.mini-editorial small, .mini-garden small, .mini-letter small { font-size: 10px; }
.mini-garden img { width: min(210px,100%); border-radius: 160px 160px 2px 2px; outline: 1px solid #88926a80; outline-offset: 5px; }
.mini-letter { inset: 28px; padding: 34px 12px; border: 1px solid #783d5050; }
.mini-letter em { font: 400 clamp(32px,3.5vw,48px)/1.1 'Planner Editorial',Georgia,serif; letter-spacing: -.03em; }
.mini-letter strong { display: block; max-width: 100%; }
.collection-filters { flex-wrap: wrap; }
.collection-toolbar { gap: 16px; }
.editor-palette-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0 24px; }
.editor-shell .editor-palette { display: flex; gap: 9px; align-items: center; padding: 10px; min-height: 56px; text-align: left; font-size: 12px; border: 1px solid #d9dfcf; border-radius: 5px; background: #fffef9; }
.editor-palette[aria-pressed=true] { border-color: #758b65; background: #edf2e5; }
.editor-palette .palette-swatch { width: 24px; height: 24px; }
.editor-palette > span:last-child { font-size: 12px; }
.custom-colors { margin-bottom: 24px; }
.custom-colors summary { font-size: 14px; cursor: pointer; padding: 10px 0; }
.custom-colors .two-fields { margin-top: 12px; }
.format-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.format-options > button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; min-width: 0; }
.format-options > button > .icon { position: absolute; right: 10px; bottom: 10px; width: 15px; }
.format-options b { font-size: 13px; }
.format-options > button > span:not(.design-thumb) { font-size: 12px; }
.design-thumb { width: 100%; height: 95px; background: #f4f0e6; display: grid; place-items: center; color: #466456; font: italic 26px 'Planner Display',Georgia,serif; overflow: hidden; }
.design-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.thumb-simple { border: 1px solid #c4cdb7; border-radius: 70px 70px 0 0; }
.thumb-letter { border: 4px double #a78488; background: #fff4f1; color: #783d50; }
.thumb-editorial { padding: 8px 8px 18px; background: #edf0f0; }
.thumb-garden { padding: 8px 16px; background: #f0f3e7; }
.thumb-garden img { border-radius: 70px 70px 0 0; }
.thumb-story img { filter: saturate(.55); }
@media (max-width:760px) {
  .mini-letter em { font-size: 44px; }
  .editor-palette > span:last-child { font-size: 13px; }
  .mini-editorial, .mini-garden { inset: 38px 28px; }
}
@media (max-width:340px) {
  .mini-letter em { font-size: 36px; }
  .iv-letter .iv-hero { margin: 0; padding: 28px 18px; }
  .iv-garden .iv-hero { padding-inline: 24px; }
}
/* Preserve the explicit editor anchor when a section's DOM is replaced. */
.preview-body { overflow-anchor: none; }
.format-options .design-thumb { width: 100%; height: 95px; font: italic 26px 'Planner Display',Georgia,serif; }
.format-options > button > span:not(.design-thumb) { width: auto; max-width: 100%; }
.format-options b { font-weight: 500; }
.iv-kicker, .iv-eyebrow, .iv-calendar th { font-family: 'Studio Sans','Apple SD Gothic Neo',Arial,sans-serif; }
