/* =========================================================
    COMMON
========================================================= */

.wgd_board_inner {
    width:100%;
    max-width:1460px;
    margin:0 auto;
    padding:0 60px;
    box-sizing:border-box;
}


/* =========================================================
    SEARCH
========================================================= */

.wgd_board_search {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:50px;
    margin-bottom:35px;
}

.wgd_search_select {
    width:170px;
    height:45px;
    border:0;
    border-bottom:1px solid #ddd;
    background:#fff;
    color:#777;
    outline:none;
    font-size: 16px;
}

.wgd_search_right {
    display:flex;
    align-items:center;
    width:360px;
    border-bottom:1px solid #ddd;
}

.wgd_search_right input {
    width:100%;
    height:45px;
    border:0;
    outline:0;
    background:transparent;
    font-size:16px;
}

.wgd_search_right button {
    flex:0 0 44px;
    width:44px;
    height:44px;
    border:0;
    background:transparent;
    cursor:pointer;
}

.wgd_search_right svg {
    width:20px;
    height:20px;
}


/* =========================================================
    ADMIN WRITE
========================================================= */

.wgd_admin_write {
    display:flex;
    justify-content:flex-end;
    margin:0 0 25px;
}

.wgd_admin_write a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:90px;
    height:42px;
    padding:0 20px;
    border-radius:100px;
    background:#2F6B3F;
    color:#fff;
    text-decoration:none;
}


/* =========================================================
    PAGING
========================================================= */

.wgd_paging {
    display:flex;
    justify-content:center;
    margin-top:80px;
}

.wgd_paging .pg_wrap {
    margin:0;
}

.wgd_paging .pg {
    display:flex;
    align-items:center;
    gap:2px;
}

.wgd_paging .pg_page,
.wgd_paging .pg_current {
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    margin:0;
    padding:0;
    border:0;
    background:transparent !important;
    color:#555;
    font-size:14px;
    text-decoration:none;
}

.wgd_paging .pg_current {
    color:#2F6B3F;
    font-weight:700;
}

.wgd_paging .pg_current:after {
    content:'';
    position:absolute;
    left:50%;
    bottom:3px;
    width:8px;
    height:1px;
    background:#2F6B3F;
    transform:translateX(-50%);
}


/* =========================================================
    VIEW
========================================================= */

.wgd_view {
    padding:50px 0 150px;
}

.wgd_view_head {
    position:relative;
    text-align:center;
}

.wgd_view_head h2 {
    margin:0;
    color:#222;
    font-size:48px;
    line-height:1.4;
    font-weight:700;
    word-break:keep-all;
}

.wgd_view_head p {
    margin:22px 0 0;
    color:#777;
    font-size:18px;
}

.wgd_view_line {
    margin:45px 0 40px;
    border-top:1px solid #ddd;
}

.wgd_view_admin {
    position:absolute;
    right:0;
    bottom:0;
    display:flex;
    gap:8px;
}

.wgd_view_admin a {
    padding:8px 15px;
    border:1px solid #ddd;
    border-radius:100px;
    color:#555;
    text-decoration:none;
}

.wgd_view_media {
    width:100%;
    max-width:1180px;
    margin:0 auto;
    overflow:hidden;
    border-radius:20px;
    background:#000;
    aspect-ratio:16/9;
}

.wgd_view_media iframe {
    display:block;
    width:100%;
    height:100%;
    border:0;
}

.wgd_view_image {
    aspect-ratio:auto;
    background:#fff;
}

.wgd_view_image img {
    display:block;
    width:100%;
    height:auto;
}

.wgd_view_content {
    max-width:1180px;
    margin:35px auto 0;
    color:#333;
    font-size:18px;
    line-height:1.8;
    text-align:center;
    word-break:keep-all;
}

.wgd_view_content img {
    max-width:100%;
    height:auto;
}

.wgd_view_bottom_line {
    max-width:1180px;
    margin:55px auto 0;
    border-top:1px solid #ddd;
}

.wgd_view_buttons {
    display:flex;
    justify-content:center;
    margin-top:55px;
}

.wgd_green_btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    min-width:170px;
    height:50px;
    padding:0 24px;
    border-radius:100px;
    background:#72B44B;
    color:#fff;
    font-size:16px;
    text-decoration:none;
    box-sizing:border-box;
}


/* =========================================================
    WRITE
========================================================= */

.wgd_write {
    padding:50px 0 150px;
}

.wgd_write_head {
    margin-bottom:55px;
    text-align:center;
}

.wgd_write_head h2 {
    margin:0;
    color:#222;
    font-size:46px;
    font-weight:700;
}

.wgd_write_head p {
    margin:15px 0 0;
    color:#888;
    font-size:16px;
}

.wgd_write_table {
    border-top:2px solid #222;
}

.wgd_write_row {
    display:grid;
    grid-template-columns:180px minmax(0,1fr);
    border-bottom:1px solid #ddd;
}

.wgd_write_label {
    display:flex;
    align-items:center;
    padding:28px;
    background:#fafafa;
    color:#222;
    font-weight:600;
}

.wgd_write_label b {
    margin-left:5px;
    color:#2F6B3F;
}

.wgd_write_field {
    padding:22px 30px;
}

.wgd_write-field {}

.wgd_write_field > input[type=text],
.wgd_write_field > select {
    width:100%;
    height:54px;
    padding:0 18px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:0;
    box-sizing:border-box;
}

.wgd_write_field > select {
    max-width:360px;
}

.wgd_write_help {
    margin:10px 0 0;
    color:#999;
    font-size:13px;
    line-height:1.5;
}

.wgd_editor textarea {
    width:100% !important;
    min-height:220px;
}

.wgd_file_upload {
    display:flex;
    align-items:center;
    min-height:90px;
    padding:20px;
    border:1px dashed #bbb;
    border-radius:10px;
    background:#fafafa;
    cursor:pointer;
    box-sizing:border-box;
}

.wgd_file_plus {
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    margin-right:16px;
    border-radius:50%;
    background:#2F6B3F;
    color:#fff;
    font-size:26px;
}

.wgd_file_upload strong {
    display:block;
}

.wgd_file_upload em {
    display:block;
    margin-top:5px;
    color:#999;
    font-size:12px;
    font-style:normal;
}

.wgd_file_input {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
}

.wgd_file_name {
    margin-top:10px;
    padding:12px 15px;
    border-radius:6px;
    background:#f5f5f5;
    color:#777;
    font-size:13px;
}

.wgd_existing_file {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-top:10px;
    padding:14px 15px;
    border:1px solid #eee;
    border-radius:6px;
    font-size:13px;
}

.wgd_write_buttons {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:50px;
}

.wgd_write_buttons a,
.wgd_write_buttons button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:130px;
    height:50px;
    padding:0 25px;
    border-radius:100px;
    font-size:16px;
    font-family:inherit;
    text-decoration:none;
    cursor:pointer;
    box-sizing:border-box;
}

.wgd_write_cancel {
    border:1px solid #ddd;
    background:#fff;
    color:#555;
}

.wgd_write_submit {
    border:0;
    background:#2F6B3F;
    color:#fff;
}


/* =========================================================
    MOBILE
========================================================= */

@media(max-width:819px) {

    .wgd_board_inner {
        padding:0 30px;
    }

    .wgd_board_search {
        gap:25px;
    }

    .wgd_search_right {
        width:300px;
    }

    .wgd_view_head h2 {
        font-size:32px;
    }

    .wgd_write_row {
        display:block;
    }

    .wgd_write_label {
        padding:18px 10px 8px;
        background:#fff;
    }

    .wgd_write_field {
        padding:10px 10px 22px;
    }
}

@media(max-width:580px) {

    .wgd_board_inner {
        padding:0 20px;
    }

    .wgd_board_search {
        display:block;
    }

    .wgd_search_select,
    .wgd_search_right {
        width:100%;
    }

    .wgd_search_right {
        margin-top:15px;
    }

    .wgd_view {
        padding:30px 0 80px;
    }

    .wgd_view_head h2 {
        font-size:27px;
    }

    .wgd_view_media {
        border-radius:12px;
    }

    .wgd_view_content {
        font-size:15px;
    }
}




/* =========================================================
    BOARD ADMIN BULK
========================================================= */

.wgd_bulk_bar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-bottom: 22px;
}


/* =========================================================
    ALL CHECK
========================================================= */

.wgd_bulk_check {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #555;

    font-size: 14px;

    cursor: pointer;
}


.wgd_bulk_check input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: #2F6B3F;

    cursor: pointer;
}


/* =========================================================
    BUTTONS
========================================================= */

.wgd_bulk_buttons {
    display: flex;

    align-items: center;

    gap: 7px;
}


.wgd_bulk_buttons button {
    display: inline-flex;

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

    min-width: 82px;
    height: 38px;

    padding: 0 15px;

    border: 1px solid #ddd;
    border-radius: 100px;

    background: #fff;

    color: #555;

    font-family: inherit;
    font-size: 13px;
    line-height: 1;

    font-weight: 500;

    cursor: pointer;

    transition:
        border-color .25s ease,
        color .25s ease,
        background .25s ease;
}


.wgd_bulk_buttons button:hover {
    border-color: #2F6B3F;

    color: #2F6B3F;
}


.wgd_bulk_buttons
.wgd_bulk_delete:hover {
    border-color: #c84141;

    color: #c84141;
}


/* =========================================================
    MANAGE ITEM
========================================================= */

.wgd_manage_item {
    position: relative;

    min-width: 0;
}


/* =========================================================
    ITEM CHECK
========================================================= */

.wgd_item_check {
    position: absolute;

    z-index: 30;

    top: 14px;
    left: 14px;
}


.wgd_item_check input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.wgd_item_check label {
    position: relative;

    display: flex;

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

    width: 30px;
    height: 30px;

    border: 1px solid rgba(0,0,0,.14);
    border-radius: 50%;

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

    box-shadow:
        0 2px 10px
        rgba(0,0,0,.08);

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        background .2s ease;
}


.wgd_item_check label::after {
    content: "";

    width: 9px;
    height: 5px;

    margin-top: -2px;

    border-left: 2px solid #aaa;
    border-bottom: 2px solid #aaa;

    transform: rotate(-45deg);
}


.wgd_item_check
input:checked + label {
    border-color: #2F6B3F;

    background: #2F6B3F;
}


.wgd_item_check
input:checked + label::after {
    border-color: #fff;
}


/* =========================================================
    MEDIA / RECIPE WRAPPER
========================================================= */

.media_grid > .wgd_manage_item,
.recipe_grid > .wgd_manage_item {
    min-width: 0;
}


.media_grid .media_item,
.recipe_grid .recipe_item {
    display: block;
}


.recipe_grid .recipe_item {
    height: 100%;
}


/* =========================================================
    EMPTY
========================================================= */

.wgd_empty {
    grid-column: 1 / -1;

    width: 100%;

    padding: 100px 20px;

    color: #999;

    font-size: 15px;

    text-align: center;

    box-sizing: border-box;
}


.wgd_no_thumb {
    display: flex;

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

    width: 100%;
    height: 100%;

    color: #aaa;

    font-size: 13px;
}


/* =========================================================
    MOBILE
========================================================= */

@media (max-width:580px) {

    .wgd_bulk_bar {
        align-items: flex-start;

        gap: 15px;
    }


    .wgd_bulk_buttons {
        flex-wrap: wrap;

        justify-content: flex-end;

        gap: 5px;
    }


    .wgd_bulk_buttons button {
        min-width: 67px;
        height: 34px;

        padding: 0 10px;

        font-size: 12px;
    }


    .wgd_item_check {
        top: 10px;
        left: 10px;
    }


    .wgd_item_check label {
        width: 27px;
        height: 27px;
    }

}











/* ========================================================================
   FINAL MOBILE TYPOGRAPHY / SPACING — 2026-09-07
======================================================================== */
@media(max-width:1024px){
    .wgd_board_inner{padding-left:32px;padding-right:32px;}
    .wgd_view,.wgd_write{padding:40px 0 110px;}
    .wgd_view_head h2{font-size:36px;}
    .wgd_view_head p{font-size:16px;}
    .wgd_write_head h2{font-size:34px;}
    .wgd_write_head p{font-size:15px;}
}

@media(max-width:819px){
    .wgd_board_inner{padding-left:22px;padding-right:22px;}
    .wgd_board_search{gap:18px;margin-bottom:28px;}
    .wgd_search_select,.wgd_search_right input{font-size:14px;}
    .wgd_view,.wgd_write{padding:30px 0 85px;}
    .wgd_view_head h2{font-size:28px;line-height:1.4;letter-spacing:-.035em;}
    .wgd_view_head p{margin-top:14px;font-size:14px;line-height:1.6;}
    .wgd_view_line{margin:30px 0 28px;}
    .wgd_view_content{margin-top:26px;font-size:14px;line-height:1.75;}
    .wgd_view_bottom_line{margin-top:38px;}
    .wgd_view_buttons{margin-top:36px;}
    .wgd_green_btn{min-width:145px;height:46px;font-size:14px;}

    .wgd_write_head{margin-bottom:34px;}
    .wgd_write_head h2{font-size:28px;line-height:1.4;letter-spacing:-.035em;}
    .wgd_write_head p{margin-top:11px;font-size:14px;line-height:1.6;}
    .wgd_write_label{padding:16px 2px 7px;font-size:14px;}
    .wgd_write_field{padding:0 0 18px;}
    .wgd_write_field > input[type=text],.wgd_write_field > select{height:48px;padding:0 14px;font-size:14px;}
    .wgd_write_field > select{max-width:none;}
    .wgd_editor textarea{min-height:190px;font-size:14px;}
    .wgd_file_upload{min-height:80px;padding:15px;}
    .wgd_file_plus{width:36px;height:36px;margin-right:12px;font-size:22px;}
    .wgd_write_buttons{margin-top:36px;}
    .wgd_write_buttons a,.wgd_write_buttons button{min-width:110px;height:46px;padding:0 18px;font-size:14px;}
    .wgd_paging{margin-top:52px;}
}

@media(max-width:620px){
    .wgd_board_inner{padding-left:16px;padding-right:16px;}
    .wgd_board_search{margin-bottom:24px;}
    .wgd_search_select,.wgd_search_right{height:42px;}
    .wgd_search_right input{height:42px;font-size:13px;}
    .wgd_search_select{font-size:13px;}
    .wgd_view,.wgd_write{padding:24px 0 68px;}
    .wgd_view_head h2{font-size:24px;line-height:1.42;}
    .wgd_view_head p{font-size:13px;}
    .wgd_view_line{margin:24px 0 22px;}
    .wgd_view_content{margin-top:20px;font-size:13px;line-height:1.7;text-align:left;}
    .wgd_view_media{border-radius:10px;}
    .wgd_green_btn{min-width:132px;height:42px;font-size:13px;}

    .wgd_write_head{margin-bottom:28px;}
    .wgd_write_head h2{font-size:24px;}
    .wgd_write_head p{font-size:13px;}
    .wgd_write_label{padding-top:14px;font-size:13px;}
    .wgd_write_field{padding-bottom:15px;}
    .wgd_write_field > input[type=text],.wgd_write_field > select{height:46px;font-size:13px;}
    .wgd_editor textarea{min-height:170px;font-size:13px;}
    .wgd_file_upload{min-height:72px;padding:13px;}
    .wgd_file_plus{width:32px;height:32px;font-size:20px;}
    .wgd_file_upload strong{font-size:13px;}
    .wgd_file_upload em{font-size:11px;}
    .wgd_write_buttons{gap:8px;margin-top:28px;}
    .wgd_write_buttons a,.wgd_write_buttons button{flex:1;min-width:0;height:44px;padding:0 12px;font-size:13px;}
    .wgd_paging{margin-top:42px;}
}

/* ========================================================================
   FINAL BOARD GUTTER / VERTICAL RHYTHM AUDIT — 2026-09-07 v3
======================================================================== */
@media (max-width:819px){
    .wgd_board_inner{
        padding-left:22px !important;
        padding-right:22px !important;
    }
    .wgd_board_search{
        margin-top:0;
        margin-bottom:30px;
    }
    .wgd_admin_write{
        margin-bottom:22px;
    }
    .wgd_view_head,
    .wgd_write_head{
        padding-left:2px;
        padding-right:2px;
    }
}

@media (max-width:620px){
    .wgd_board_inner{
        padding-left:18px !important;
        padding-right:18px !important;
    }
    .wgd_board_search{
        margin-bottom:26px;
    }
    .wgd_search_right{
        margin-top:10px;
    }
    .wgd_admin_write{
        margin-bottom:18px;
    }
    .wgd_view_head h2,
    .wgd_write_head h2{
        font-size:22px;
    }
    .wgd_view_head p,
    .wgd_write_head p{
        margin-top:10px;
    }
    .wgd_view_line{
        margin:22px 0 20px;
    }
    .wgd_view_content{
        margin-top:18px;
    }
}

@media (max-width:430px){
    .wgd_board_inner{
        padding-left:16px !important;
        padding-right:16px !important;
    }
}
