/* Farm journal and a task-focused, mobile owner editor. */
.diary-intro { padding-block: clamp(36px,6vw,80px); }
.diary-public .peony-breadcrumb [aria-current="page"] { min-width: 0; overflow-wrap: anywhere; }
.diary-intro h1 { max-width: 850px; font-size: clamp(2.3rem,5vw,4.4rem); line-height: 1.12; margin-block: 24px; }
.diary-intro .lead { max-width: 680px; }
.diary-content { padding-bottom: 64px; }
.diary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-block: 28px; }
.diary-card { background: #fff; border: 1px solid #f4d4e4; border-radius: 18px; overflow: hidden; min-width: 0; }
.diary-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; height: auto; display: block; }
.diary-card-copy { padding: 24px; }
.diary-card h2 { font-size: 1.7rem; line-height: 1.2; margin-block: 12px; overflow-wrap: anywhere; }
.diary-card time { font-size: .85rem; }
.diary-empty { padding: clamp(24px,4vw,48px); border: 1px solid #efc6da; border-radius: 20px; background: #fff9fc; }
.diary-empty h2 { font-size: clamp(1.7rem,3vw,2.5rem); }
.diary-pagination { display: flex; justify-content: space-between; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.diary-story { max-width: 900px; padding-block: 40px 80px; }
.diary-story h1 { font-size: clamp(2.2rem,5vw,4rem); line-height: 1.12; overflow-wrap: anywhere; margin-block: 20px; }
.diary-prose { max-width: 740px; margin-block: 32px; font-size: 1.125rem; line-height: 1.85; overflow-wrap: anywhere; }
.diary-prose p + p { margin-top: 1.2em; }
.diary-photos { display: grid; gap: 24px; margin-block: 32px; }
.diary-photos figure { margin: 0; }
.diary-photos img { width: 100%; height: auto; max-height: 1000px; object-fit: contain; border-radius: 16px; background: #fbe6f0; }
.diary-preview { padding-block: 16px; border-bottom: 2px solid #bd477e; }
.diary-home { background: #ffedf6; }
.owner-body { background: #fff6fb; color: #513343; }
.owner-header { padding: 16px max(20px,calc((100vw - 1100px)/2)); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid #efc6da; }
.owner-header img { display: block; }
.owner-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.owner-header nav a, .owner-link { min-height: 44px; display: inline-flex; align-items: center; }
.owner-link { border: 0; background: none; color: #a22b60; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.owner-main { max-width: 1100px; margin: auto; padding: 32px 20px 80px; }
.owner-main h1 { font-size: clamp(2rem,4vw,3.3rem); line-height: 1.15; margin-block: 20px; overflow-wrap: anywhere; }
.owner-main h2 { font-size: 1.8rem; }
.owner-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.owner-login { max-width: 520px; margin: 20px auto; }
.owner-main label { display: block; font-weight: 600; margin-block: 10px 6px; }
.owner-main input:not([type=checkbox]), .owner-main textarea { display: block; width: 100%; min-width: 0; border: 1px solid #b47a96; border-radius: 8px; padding: 12px; font: inherit; font-size: 16px; background: #fff; color: #513343; box-sizing: border-box; }
.owner-main input[type=file] { padding: 12px 8px; max-width: 100%; }
.owner-main input[type=checkbox] { width: 20px; height: 20px; vertical-align: middle; accent-color: #b9437c; margin-right: 8px; }
.owner-main textarea { min-height: 180px; resize: vertical; }
.owner-main p { margin-bottom: 16px; }
.owner-hint, .owner-main .helptext { display: block; color: #765267; font-size: .9rem; }
.owner-panel { padding: clamp(18px,3vw,28px); margin-block: 24px; background: #fff; border: 1px solid #efc6da; border-radius: 16px; min-width: 0; }
.owner-language summary { cursor: pointer; font-weight: 700; min-height: 44px; align-content: center; }
.owner-language[open] summary { margin-bottom: 16px; }
.owner-entry { padding: 24px; background: #fff; border: 1px solid #efc6da; border-radius: 12px; margin-top: 20px; overflow-wrap: anywhere; }
.owner-badge { display: inline-block; padding: 3px 10px; background: #ffedf6; border-radius: 20px; font-size: .85rem; }
.owner-photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.owner-photo { min-width: 0; padding-block: 16px; }
.owner-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.owner-error, .owner-main .errorlist { color: #851a3c; background: #ffe5ef; padding: 16px 24px; border: 1px solid #b9437c; border-radius: 8px; }
.owner-success { color: #6d2147; background: #fbe1ee; border-left: 4px solid #a22b60; padding: 20px; }
.owner-save { display: grid; gap: 16px; justify-items: start; }
.owner-save p { max-width: 660px; }
.owner-main :focus-visible { outline: 3px solid #9e2b60; outline-offset: 3px; }
@media(max-width:1000px) { .diary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .diary-grid, .owner-photo-grid { grid-template-columns: 1fr; } .owner-header nav { gap: 8px 16px; font-size: .9rem; } .owner-main { padding-top: 20px; } .diary-card-copy { padding: 20px; } .owner-save .btn { width: 100%; } }
