@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap");

/* =========================================================
   helloworld
   whimsical frutiger aero
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;

    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;

    color: #19536b;

    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(255,255,255,.95) 0,
            rgba(255,255,255,.7) 5%,
            transparent 18%
        ),
        radial-gradient(
            circle at 82% 18%,
            rgba(255,255,255,.8) 0,
            transparent 18%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(255,255,255,.35) 0,
            transparent 20%
        ),
        linear-gradient(
            180deg,
            #bdf3ff 0%,
            #75d8f5 38%,
            #53c5eb 60%,
            #8bdc68 83%,
            #55b94a 100%
        );

    background-attachment: fixed;
    overflow-x: hidden;
}

/* floating bubbles */

body::before {
    content: "";
    position: fixed;
    width: 150px;
    height: 150px;
    left: 4vw;
    bottom: 8vh;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,.95),
            rgba(255,255,255,.4) 12%,
            rgba(75,220,255,.18) 48%,
            transparent 70%
        );

    border: 2px solid rgba(255,255,255,.5);

    box-shadow:
        inset -18px -20px 35px rgba(0,120,180,.12),
        0 15px 35px rgba(0,100,160,.12);

    pointer-events: none;
    z-index: -1;

    animation: float-bubble 7s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    width: 75px;
    height: 75px;
    right: 12vw;
    top: 12vh;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 25%,
            white,
            rgba(255,255,255,.3) 20%,
            rgba(50,210,240,.12) 65%,
            transparent 75%
        );

    border: 2px solid rgba(255,255,255,.55);

    pointer-events: none;
    z-index: -1;

    animation: float-small 5s ease-in-out infinite;
}

@keyframes float-bubble {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

@keyframes float-small {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

/* =========================================================
   links
   ========================================================= */

a {
    color: #087cae;
    text-decoration: none;
}

a:hover {
    color: #045e88;
    text-decoration: underline;
}

/* =========================================================
   sidebar
   ========================================================= */

.site-sidebar {
    position: fixed;

    top: 18px;
    left: 18px;
    bottom: 18px;

    width: 220px;

    z-index: 1000;

    pointer-events: none;
}

.sidebar-inner {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 13px;

    pointer-events: auto;

    border: 2px solid rgba(255,255,255,.9);
    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.9),
            rgba(225,250,255,.72)
        );

    box-shadow:
        0 5px 0 rgba(20,120,160,.1),
        0 15px 35px rgba(20,100,140,.22),
        inset 0 2px 0 white;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* =========================================================
   sidebar brand
   ========================================================= */

.sidebar-brand {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 9px;

    padding: 8px 7px 13px;

    color: #12617f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
    font-weight: 800;

    border-bottom: 1px solid rgba(50,140,160,.2);
}

.sidebar-brand:hover {
    color: #084c68;
    text-decoration: none;
}

/* brand icon */

.brand-mark {
    width: 30px;
    height: 30px;

    min-width: 30px;
    max-width: 30px;

    min-height: 30px;
    max-height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #a9edf5
        );

    border: 1px solid white;

    box-shadow:
        0 2px 5px rgba(30,100,130,.2),
        inset 0 1px 0 white;
}

/* ONLY brand svg */

.brand-mark svg {
    display: block;

    width: 17px;
    height: 17px;

    min-width: 17px;
    max-width: 17px;

    min-height: 17px;
    max-height: 17px;

    flex: 0 0 17px;

    fill: none;
    stroke: #19748d;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   navigation
   ========================================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;

    gap: 4px;

    margin-top: 14px;
}

.sidebar-section-title {
    padding: 5px 9px 6px;

    color: #57909d;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-admin-title {
    margin-top: 12px;
}

/* =========================================================
   sidebar links
   ========================================================= */

.sidebar-link,
.sidebar-logout {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 40px;

    gap: 9px;

    padding: 7px 9px;

    border: 1px solid transparent;
    border-radius: 11px;

    color: #276477;

    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    background: transparent;

    cursor: pointer;
}

.sidebar-link:hover,
.sidebar-logout:hover {
    color: #11536a;

    text-decoration: none;

    border-color: rgba(255,255,255,.9);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.85),
            rgba(186,239,248,.6)
        );

    box-shadow:
        0 3px 7px rgba(40,120,145,.14),
        inset 0 1px 0 white;
}

/* =========================================================
   sidebar icons
   ========================================================= */

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    min-width: 28px;
    max-width: 28px;

    min-height: 28px;
    max-height: 28px;

    flex: 0 0 28px;

    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #b8eef4
        );

    border: 1px solid rgba(255,255,255,.95);

    box-shadow:
        0 2px 5px rgba(30,110,135,.17),
        inset 0 1px 0 white;
}

/*
   IMPORTANT:
   only svg INSIDE sidebar-icon gets this size.
   no global svg width rule.
*/

.sidebar-icon svg {
    display: block;

    width: 16px !important;
    height: 16px !important;

    min-width: 16px !important;
    max-width: 16px !important;

    min-height: 16px !important;
    max-height: 16px !important;

    flex: 0 0 16px;

    fill: none;

    stroke: #18738a;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-label {
    display: block;

    min-width: 0;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-admin-link {
    color: #39717d;
}

/* =========================================================
   sidebar bottom
   ========================================================= */

.sidebar-bottom {
    margin-top: auto;

    padding-top: 12px;

    border-top: 1px solid rgba(53,139,154,.22);
}

.sidebar-user-link {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 9px;

    padding: 7px;

    border-radius: 10px;

    color: #245d68;
}

.sidebar-user-link:hover {
    color: #245d68;
    text-decoration: none;

    background: rgba(255,255,255,.6);
}

/* =========================================================
   sidebar avatar
   ========================================================= */

.sidebar-avatar {
    width: 34px;
    height: 34px;

    min-width: 34px;
    max-width: 34px;

    min-height: 34px;
    max-height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #9de5ed
        );

    border: 1px solid white;

    box-shadow:
        0 2px 5px rgba(30,100,120,.18);

    color: #216a78;

    font-weight: 800;
}

.sidebar-avatar img {
    display: block;

    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    max-width: 34px !important;

    min-height: 34px !important;
    max-height: 34px !important;

    flex: 0 0 34px;

    object-fit: cover;
}

.sidebar-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.sidebar-user-info strong {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 12px;
}

.sidebar-user-info span {
    margin-top: 3px;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: #63919a;

    font-size: 10px;
}

/* =========================================================
   logout
   ========================================================= */

.sidebar-logout-form {
    margin: 5px 0 0;
}

.sidebar-logout {
    font-family: inherit;
    text-align: left;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.container {
    width: 760px;
    max-width: calc(100vw - 280px);

    margin-left: 270px;
    margin-right: auto;

    padding-top: 45px;
    padding-bottom: 70px;
}

/* =========================================================
   feed header
   ========================================================= */

.feed-header {
    margin-bottom: 20px;

    text-align: center;
}

.feed-header .tiny {
    margin-bottom: 4px;

    color: #4e858e;

    font-size: 11px;
}

.feed-header h1 {
    margin: 0;

    color: #155b69;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;
    font-weight: 800;

    text-shadow:
        0 2px 0 white;
}

.feed-header p {
    margin: 5px 0 0;

    color: #4e7c84;
}

/* =========================================================
   cards
   ========================================================= */

.composer,
.community-list,
.post,
.empty {
    margin-bottom: 18px;

    padding: 18px;

    border: 2px solid rgba(255,255,255,.9);

    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.9),
            rgba(225,250,255,.72)
        );

    box-shadow:
        0 4px 0 rgba(40,130,155,.1),
        0 10px 25px rgba(30,110,135,.15),
        inset 0 2px 0 white;

    backdrop-filter: blur(8px);
}

/* =========================================================
   composer
   ========================================================= */

.composer textarea {
    display: block;

    width: 100%;
    min-height: 105px;

    resize: vertical;

    padding: 12px;

    border: 1px solid #8bcbd4;
    border-radius: 11px;

    outline: none;

    background: rgba(255,255,255,.82);

    color: #234d56;

    font: inherit;
}

.composer textarea:focus,
.comment-form input:focus,
select:focus {
    border-color: #4aafbd;

    box-shadow:
        0 0 0 3px rgba(94,203,215,.18);
}

.composer-options {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 10px;
}

.file-upload {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    cursor: pointer;
}

.file-upload input {
    display: none;
}

/* =========================================================
   buttons
   ========================================================= */

button,
select {
    font: inherit;
}

button {
    border: 1px solid white;

    border-radius: 10px;

    padding: 8px 13px;

    color: #155665;

    font-weight: 800;

    cursor: pointer;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #a9eaf0
        );

    box-shadow:
        0 2px 5px rgba(38,112,126,.16),
        inset 0 1px 0 white;

    transition:
        transform .12s ease,
        filter .12s ease;
}

button:hover {
    transform: translateY(-1px);

    filter: brightness(1.04);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #8fe0e8
        );
}

button:active {
    transform: translateY(1px);
}

select {
    padding: 8px 10px;

    border: 1px solid #8bcbd4;

    border-radius: 9px;

    color: #245b65;

    background: rgba(255,255,255,.82);

    outline: none;
}

/* =========================================================
   communities
   ========================================================= */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.section-heading h2 {
    margin: 0;

    color: #276573;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;
}

.community-links {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;
}

.community-link {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    padding: 8px;

    border-radius: 9px;

    color: #286472;

    background: rgba(255,255,255,.4);
}

.community-link:hover {
    text-decoration: none;

    background: rgba(255,255,255,.8);
}

.community-link strong {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.community-link > span:last-child {
    margin-left: auto;

    color: #71969c;

    font-size: 11px;
}

/* =========================================================
   posts
   ========================================================= */

.post {
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;
}

.post-user {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;
}

.post-user a {
    font-weight: 800;
}

.display-name {
    overflow: hidden;

    color: #6b9298;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 12px;
}

.post-date {
    flex-shrink: 0;

    color: #7a9da2;

    font-size: 11px;
}

.post-community {
    margin-bottom: 8px;

    font-size: 12px;
}

.post-content {
    white-space: pre-wrap;

    color: #244f58;

    line-height: 1.6;

    overflow-wrap: anywhere;
}

.post-main-link {
    display: block;

    color: inherit;
}

.post-main-link:hover {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   post attachments
   ========================================================= */

.post-attachment {
    margin-top: 13px;

    overflow: hidden;

    border-radius: 12px;

    border: 2px solid white;

    background: #d7f7f8;

    text-align: center;
}

.post-attachment img {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 600px;

    margin: 0 auto;

    object-fit: contain;
}

/* =========================================================
   post actions
   ========================================================= */

.post-actions {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 13px;
    padding-top: 10px;

    border-top: 1px solid rgba(69,145,157,.18);
}

.post-actions form {
    margin: 0;
}

.post-actions button,
.comments-link,
.delete-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 6px 9px;

    border: 1px solid transparent;
    border-radius: 8px;

    color: #39727d;

    background: transparent;

    box-shadow: none;
}

.post-actions button:hover,
.comments-link:hover,
.delete-post:hover {
    border-color: rgba(255,255,255,.9);

    background: rgba(255,255,255,.7);

    text-decoration: none;
}

.post-actions .liked {
    color: #c05b78;
}

/* =========================================================
   comments
   ========================================================= */

.comment-preview {
    margin-top: 10px;
    padding-top: 9px;

    border-top: 1px solid rgba(69,145,157,.16);
}

.comment-preview-item {
    display: flex;

    gap: 6px;

    margin-bottom: 5px;

    font-size: 12px;
}

.comment-preview-item a {
    flex-shrink: 0;

    font-weight: 800;
}

.view-comments {
    font-size: 11px;
}

.comment-form {
    display: flex;

    gap: 7px;

    margin-top: 10px;
}

.comment-form input {
    flex: 1;

    min-width: 0;

    padding: 8px 10px;

    border: 1px solid #8bcbd4;

    border-radius: 9px;

    outline: none;

    background: rgba(255,255,255,.78);

    color: #244f58;

    font: inherit;
}

/* =========================================================
   auth
   ========================================================= */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 30px;
}

.auth-page {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    padding: 30px;

    border: 2px solid white;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.94),
            rgba(225,255,255,.76)
        );

    box-shadow:
        0 5px 0 rgba(50,130,145,.12),
        0 15px 40px rgba(30,105,120,.2),
        inset 0 2px 0 white;
}

.auth-logo {
    color: #155c6b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;
    font-weight: 800;

    text-align: center;
}

.auth-label {
    margin-top: 4px;

    color: #6a969d;

    font-size: 11px;

    text-align: center;
}

.auth-card h1 {
    margin: 20px 0 5px;

    color: #1c5967;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    text-align: center;
}

.auth-description {
    margin: 0 0 20px;

    color: #6a8f95;

    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.auth-field label {
    color: #3a6f78;

    font-weight: 800;

    font-size: 13px;
}

.auth-field input {
    width: 100%;

    padding: 10px 11px;

    border: 1px solid #8bcbd4;

    border-radius: 9px;

    outline: none;

    background: rgba(255,255,255,.8);

    color: #244f58;

    font: inherit;
}

.auth-field input:focus {
    border-color: #4aafbd;

    box-shadow:
        0 0 0 3px rgba(94,203,215,.2);
}

.auth-submit {
    width: 100%;

    margin-top: 4px;

    padding: 10px;
}

.auth-error {
    margin-bottom: 15px;

    padding: 10px 12px;

    border: 1px solid #e4a6b4;

    border-radius: 9px;

    color: #8c3e51;

    background: rgba(255,225,232,.7);

    font-size: 13px;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 18px;

    color: #70949a;

    font-size: 12px;
}

/* =========================================================
   general images
   ========================================================= */

img {
    max-width: 100%;
}

/*
   do NOT globally set svg width/height.
   svg sizes are controlled by their individual components.
*/

/* =========================================================
   responsive
   ========================================================= */

@media (max-width: 950px) {

    .site-sidebar {
        width: 190px;
    }

    .container {
        width: calc(100vw - 230px);

        max-width: 760px;

        margin-left: 215px;
    }
}

@media (max-width: 700px) {

    .site-sidebar {
        top: 8px;
        left: 8px;
        bottom: 8px;

        width: 64px;
    }

    .sidebar-inner {
        padding: 8px;
    }

    .sidebar-brand {
        justify-content: center;

        padding: 7px 0 11px;
    }

    .brand-text {
        display: none;
    }

    .sidebar-section-title {
        display: none;
    }

    .sidebar-link,
    .sidebar-logout {
        justify-content: center;

        padding: 7px;
    }

    .sidebar-label {
        display: none;
    }

    .sidebar-icon {
        width: 30px;
        height: 30px;

        min-width: 30px;
        max-width: 30px;

        min-height: 30px;
        max-height: 30px;

        flex: 0 0 30px;
    }

    .container {
        width: calc(100vw - 84px);

        margin-left: 78px;
        margin-right: 6px;

        padding-top: 25px;
    }

    .community-links {
        grid-template-columns: 1fr;
    }

    .composer-options {
        flex-wrap: wrap;
    }

    .sidebar-user-info {
        display: none;
    }

    .sidebar-user-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .container {
        width: calc(100vw - 78px);

        margin-left: 72px;
        margin-right: 6px;
    }

    .post,
    .composer,
    .community-list,
    .empty {
        padding: 13px;
    }

    .feed-header h1 {
        font-size: 30px;
    }

    .comment-form {
        flex-direction: column;
    }

    .auth-body {
        padding: 15px;
    }

    .auth-card {
        padding: 22px;
    }
}

/* =========================================================
   reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
   search / settings / community pages
   ========================================================= */

/* page wrapper */

.page-card {
    width: 100%;
    padding: 20px;

    border: 2px solid rgba(255,255,255,.9);
    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.92),
            rgba(225,250,255,.74)
        );

    box-shadow:
        0 4px 0 rgba(40,130,155,.1),
        0 10px 25px rgba(30,110,135,.15),
        inset 0 2px 0 white;
}

/* =========================================================
   search
   ========================================================= */

.search-page {
    width: 100%;
}

.search-header {
    margin-bottom: 18px;
}

.search-header h1 {
    margin: 0;

    color: #155b69;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    text-shadow:
        0 2px 0 white;
}

.search-form {
    display: flex;

    gap: 8px;

    width: 100%;

    margin-top: 12px;
}

.search-form input {
    flex: 1;

    min-width: 0;

    padding: 10px 12px;

    border: 1px solid #8bcbd4;
    border-radius: 10px;

    outline: none;

    background: rgba(255,255,255,.85);

    color: #244f58;

    font: inherit;
}

.search-form input:focus {
    border-color: #4aafbd;

    box-shadow:
        0 0 0 3px rgba(94,203,215,.18);
}

.search-form button {
    flex-shrink: 0;
}

.search-section {
    margin-top: 18px;
}

.search-section h2 {
    margin: 0 0 9px;

    color: #286572;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;
}

.search-results {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.search-result {
    display: flex;
    align-items: center;

    gap: 10px;

    width: 100%;

    padding: 11px;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 11px;

    color: #285e6b;

    background: rgba(255,255,255,.48);
}

.search-result:hover {
    color: #285e6b;

    text-decoration: none;

    background: rgba(255,255,255,.8);

    box-shadow:
        0 3px 8px rgba(40,120,140,.12);
}

.search-result-avatar {
    width: 38px;
    height: 38px;

    min-width: 38px;
    max-width: 38px;

    min-height: 38px;
    max-height: 38px;

    flex: 0 0 38px;

    overflow: hidden;

    border-radius: 10px;

    border: 1px solid white;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #a8e7ed
        );
}

.search-result-avatar img {
    display: block;

    width: 38px;
    height: 38px;

    min-width: 38px;
    max-width: 38px;

    min-height: 38px;
    max-height: 38px;

    object-fit: cover;
}

.search-result-info {
    min-width: 0;
}

.search-result-info strong {
    display: block;

    color: #286572;

    font-size: 14px;
}

.search-result-info span {
    display: block;

    margin-top: 2px;

    color: #71949a;

    font-size: 11px;
}

.search-empty {
    padding: 20px;

    border-radius: 11px;

    color: #6c9197;

    background: rgba(255,255,255,.42);

    text-align: center;
}

/* =========================================================
   community pages
   ========================================================= */

.community-page {
    width: 100%;
}

.community-header {
    margin-bottom: 18px;

    padding: 22px;

    border: 2px solid rgba(255,255,255,.9);
    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.94),
            rgba(225,250,255,.72)
        );

    box-shadow:
        0 4px 0 rgba(40,130,155,.1),
        0 10px 25px rgba(30,110,135,.15),
        inset 0 2px 0 white;
}

.community-header h1 {
    margin: 0;

    color: #155b69;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;

    text-shadow:
        0 2px 0 white;
}

.community-description {
    margin: 7px 0 0;

    color: #5c858c;
}

.community-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;
}

.community-meta span {
    padding: 5px 9px;

    border-radius: 999px;

    color: #4b7d84;

    background: rgba(255,255,255,.65);

    border: 1px solid rgba(255,255,255,.9);

    font-size: 11px;
}

.community-posts {
    width: 100%;
}

.community-posts-title {
    margin: 0 0 10px;

    color: #286572;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;
}

/* =========================================================
   communities listing
   ========================================================= */

.communities-page {
    width: 100%;
}

.communities-header {
    margin-bottom: 18px;
}

.communities-header h1 {
    margin: 0;

    color: #155b69;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;

    text-shadow:
        0 2px 0 white;
}

.communities-header p {
    margin: 5px 0 0;

    color: #638b92;
}

.create-community {
    margin-bottom: 20px;

    padding: 18px;

    border: 2px solid rgba(255,255,255,.9);
    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.9),
            rgba(225,250,255,.72)
        );

    box-shadow:
        0 4px 0 rgba(40,130,155,.1),
        0 10px 25px rgba(30,110,135,.13),
        inset 0 2px 0 white;
}

.create-community h2 {
    margin: 0 0 12px;

    color: #286572;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;
}

.create-community form {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.create-community input,
.create-community textarea {
    width: 100%;

    padding: 10px 11px;

    border: 1px solid #8bcbd4;
    border-radius: 9px;

    outline: none;

    background: rgba(255,255,255,.82);

    color: #244f58;

    font: inherit;
}

.create-community textarea {
    min-height: 80px;

    resize: vertical;
}

.create-community button {
    align-self: flex-start;
}

.community-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.community-grid-card {
    display: block;

    min-width: 0;

    padding: 14px;

    border: 2px solid rgba(255,255,255,.85);
    border-radius: 13px;

    color: #285f6b;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.75),
            rgba(225,250,255,.58)
        );

    box-shadow:
        0 3px 8px rgba(30,110,135,.11),
        inset 0 1px 0 white;

    transition:
        transform .12s ease,
        box-shadow .12s ease;
}

.community-grid-card:hover {
    color: #285f6b;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 6px 13px rgba(30,110,135,.16),
        inset 0 1px 0 white;
}

.community-grid-card h3 {
    margin: 0 0 4px;

    color: #236271;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
}

.community-grid-card p {
    margin: 0 0 8px;

    color: #638a91;

    font-size: 12px;
}

.community-grid-card .community-count {
    color: #71969b;

    font-size: 11px;
}

/* =========================================================
   settings
   ========================================================= */

.settings-page {
    width: 100%;
}

.settings-header {
    margin-bottom: 18px;
}

.settings-header h1 {
    margin: 0;

    color: #155b69;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;

    text-shadow:
        0 2px 0 white;
}

.settings-header p {
    margin: 5px 0 0;

    color: #638b92;
}

.settings-card {
    margin-bottom: 15px;

    padding: 20px;

    border: 2px solid rgba(255,255,255,.9);
    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.92),
            rgba(225,250,255,.72)
        );

    box-shadow:
        0 4px 0 rgba(40,130,155,.1),
        0 10px 25px rgba(30,110,135,.13),
        inset 0 2px 0 white;
}

.settings-card h2 {
    margin: 0 0 13px;

    color: #286572;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;
}

.settings-form {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.settings-field {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.settings-field label {
    color: #3d7079;

    font-size: 13px;
    font-weight: 800;
}

.settings-field input,
.settings-field textarea {
    width: 100%;

    padding: 10px 11px;

    border: 1px solid #8bcbd4;
    border-radius: 9px;

    outline: none;

    background: rgba(255,255,255,.82);

    color: #244f58;

    font: inherit;
}

.settings-field textarea {
    min-height: 100px;

    resize: vertical;
}

.settings-field input:focus,
.settings-field textarea:focus {
    border-color: #4aafbd;

    box-shadow:
        0 0 0 3px rgba(94,203,215,.18);
}

.settings-submit {
    align-self: flex-start;
}

.settings-avatar-section {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 16px;
}

.settings-avatar {
    width: 72px;
    height: 72px;

    min-width: 72px;
    max-width: 72px;

    min-height: 72px;
    max-height: 72px;

    flex: 0 0 72px;

    overflow: hidden;

    border-radius: 16px;

    border: 3px solid white;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #a6e8ef
        );

    box-shadow:
        0 4px 9px rgba(30,110,130,.18);
}

.settings-avatar img {
    display: block;

    width: 72px;
    height: 72px;

    min-width: 72px;
    max-width: 72px;

    min-height: 72px;
    max-height: 72px;

    object-fit: cover;
}

/* =========================================================
   responsive fixes for these pages
   ========================================================= */

@media (max-width: 700px) {

    .community-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }
}
