/* NatterFly The Wall — clean two-column stylesheet */
/* Desktop width and sidebar width: edit these two values. */
.site-shell.wall-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 0 65px;
    box-sizing: border-box;
}
.wall-sidebar, .wall-main { min-width: 0; }
.wall-main { width: 100%; }
.wall-card {
    min-width: 0;
    margin: 0 0 14px;
    padding: 18px;
    background: #fff;
    color: #183447;
    border: 1px solid #dbe5eb;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(22,55,75,.035);
}
.wall-muted, .wall-stats { color: #617586; font-size: 12px; }
.wall-muted { margin-top: 4px; }
.wall-error { padding: 14px; margin-bottom: 14px; background: #fee2e2; color: #7f1d1d; border-radius: 4px; }

/* Explore navigation */
.wall-side-nav { padding: 13px 10px; position: sticky; top: 14px; }
.wall-explore-title { font-size: 15px; font-weight: 700; color: #173a4e; padding: 7px 12px 12px; }
.wall-side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 3px;
    color: #25465a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.wall-side-nav a i { width: 18px; text-align: center; }
.wall-side-nav a:hover, .wall-side-nav a.is-current { background: #eaf4f8; color: #07546f; }

/* Member avatars and post composer */
.wall-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    overflow: hidden;
    border-radius: 50%;
    background: #d8edf4;
    color: #07546f;
    font-size: 19px;
    font-weight: 700;
}
.wall-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wall-composer { padding: 17px 20px; }
.wall-composer-top { display: flex; align-items: center; gap: 12px; }
.wall-compose-trigger {
    width: 100%;
    min-height: 43px;
    padding: 13px 18px;
    border: 1px solid #e1e7eb;
    border-radius: 24px;
    background: #f4f7f9;
    color: #5c6c79;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.wall-compose-trigger:hover { background: #e2eef3; }
.wall-compose-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 5px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8eef1;
}
.wall-compose-shortcuts button {
    min-width: 0;
    padding: 11px 5px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #28566d;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.wall-compose-shortcuts button i { color: #07819d; margin-right: 5px; }
.wall-compose-shortcuts button:hover { background: #e2eef3; }

/* Posts, shared events, and photographs */
.wall-post { padding: 20px 23px; }
.wall-post-header { display: flex; align-items: center; gap: 12px; }
.wall-post-header strong { font-size: 15px; }
.wall-post-text { overflow-wrap: anywhere; margin: 19px 0; font-size: 15px; line-height: 1.75; }
.wall-emoji { font-family: 'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif; font-size: 1.14em; vertical-align: -.08em; }
.wall-share-info { padding: 12px; margin: 12px 0; border: 1px solid #cbd8e6; border-radius: 3px; background: rgba(50,110,170,.06); }
.wall-share-info div { margin-top: 6px; }
.wall-photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 12px 0; }
.wall-photo-grid.wall-photo-count-1 { grid-template-columns: 1fr; }
.wall-photo-grid a { display: block; min-width: 0; overflow: hidden; }
.wall-photo-grid .wall-post-image { display: block; width: 100%; height: 100%; max-height: 390px; object-fit: cover; border-radius: 4px; }
.wall-stats { padding: 11px 0; border-bottom: 1px solid #e2e8ed; }
.wall-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 7px 0; margin: 0 0 10px; border-bottom: 1px solid #e7edf0; }
.wall-controls form { margin: 0; }
.wall-quiet-button { padding: 9px 12px; border: 0; border-radius: 3px; background: transparent; color: #22536c; font: inherit; font-weight: 600; cursor: pointer; }
.wall-quiet-button:hover { background: #edf5f8; }
.wall-danger { color: #b91c1c; }

/* Expandable comments and reply field */
.wall-comments { margin-top: 7px; }
.wall-comments summary { padding: 9px 0; color: #24536b; font-weight: 600; cursor: pointer; list-style: none; }
.wall-comments summary::-webkit-details-marker { display: none; }
.wall-comments summary i { margin-right: 6px; }
.wall-comments[open] summary { margin-bottom: 12px; border-bottom: 1px solid #e6edf1; }
.wall-comment { padding: 12px 15px; margin: 8px 0; border-radius: 4px; background: #f4f7f9; overflow-wrap: anywhere; }
.wall-comment strong, .wall-comment span, .wall-comment small { display: block; }
.wall-comment span { margin: 5px 0; font-size: 14px; line-height: 1.5; }
.wall-comment small { font-size: 11px; opacity: .65; }
.wall-comment-form { display: flex; gap: 8px; margin-top: 12px; }
.wall-comment-form input { flex: 1; min-width: 0; padding: 10px; border: 1px solid #cbd5e1; border-radius: 3px; background: #fff; color: inherit; }
.wall-button { display: inline-block; padding: 10px 15px; border: 0; border-radius: 3px; background: #07546f; color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.wall-login a { color: #07546f; text-decoration: underline; }
.wall-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.wall-pagination a { padding: 9px 14px; border: 1px solid #cbd5e1; border-radius: 3px; }

/* Post creation modal */
.wall-modal-backdrop[hidden], #wall-link-fields[hidden], #wall-event-field[hidden], #wall-photo-field[hidden] { display: none !important; }
.wall-modal-backdrop { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(13,27,42,.58); }
.wall-modal { width: min(100%,540px); max-height: 90vh; overflow: auto; border-radius: 4px; background: #fff; color: #183447; box-shadow: 0 18px 55px rgba(0,0,0,.2); }
.wall-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 19px; border-bottom: 1px solid #e0e6eb; font-size: 17px; }
.wall-modal-close { width: 32px; height: 32px; border: 0; border-radius: 3px; background: #f0f3f6; font-size: 24px; cursor: pointer; }
.wall-modal-form { padding: 18px; }
.wall-modal-form textarea { width: 100%; min-height: 155px; padding: 12px; border: 1px solid #cbd5de; border-radius: 3px; color: #183447; font: inherit; line-height: 1.6; resize: vertical; box-sizing: border-box; }
.wall-modal-photo { display: block; margin-top: 13px; padding: 12px; border: 1px solid #dce4e9; border-radius: 3px; font-weight: 600; }
.wall-modal-photo input { display: block; max-width: 100%; margin-top: 8px; font-weight: 400; }
.wall-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.wall-cancel { padding: 10px 15px; border: 0; border-radius: 3px; background: #eef2f5; color: #304a5a; cursor: pointer; }
#wall-link-fields { margin: 12px 0; }
#wall-link-fields label { display: block; margin: 8px 0 4px; font-weight: 600; }
#wall-link-fields input { width: 100%; padding: 10px; border: 1px solid #bbc7d4; border-radius: 3px; box-sizing: border-box; }
body.wall-modal-open { overflow: hidden; }

/* Responsive layout — only overrides needed for smaller screens */
@media (max-width: 850px) {
    .site-shell.wall-layout { grid-template-columns: 155px minmax(0,1fr); gap: 12px; }
    .wall-compose-shortcuts button { font-size: 12px; }
}
@media (max-width: 650px) {
    .site-shell.wall-layout { grid-template-columns: minmax(0,1fr); padding-top: 12px; }
    .wall-left { display: none; }
    .wall-post { padding: 15px; }
    .wall-composer { padding: 13px; }
    .wall-compose-shortcuts button { font-size: 11px; white-space: normal; }
    .wall-comment-form { flex-wrap: wrap; }
    .wall-comment-form input { flex-basis: 100%; }
    .wall-photo-grid .wall-post-image { max-height: 260px; }
}
