/* Habin public pages: photography, reading, and useful controls. */
body.linen.subpage{
    --sp-ink:#263b32;
    --sp-muted:#58665e;
    --sp-line:#dce3dd;
    --sp-soft:#f4f6f3;
    --sp-white:#fff;
    --sp-accent:#355b48;
    color:var(--sp-ink);
    background:var(--sp-white);
    font:400 16px/1.7 Pretendard,sans-serif;
    accent-color:var(--sp-accent);
    caret-color:var(--sp-accent);
}
.subpage ::selection{
    color:var(--sp-ink);
    background:#dce9df;
}
body.linen.subpage header{
    border-bottom:1px solid var(--sp-line);
}
body.linen.subpage .sub-main>.sub-intro{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    padding:26px 0 38px;
    gap:0;
}
.subpage .sub-intro .crumb{
    align-self:flex-end;
    margin:0 0 32px;
    color:var(--sp-muted);
    font-size:12px;
}
.subpage .sub-intro>small,
.subpage .greeting-letter>small,
.subpage .license-section>div>small,
.subpage .visit-details>small,
.subpage .auth-content>small{
    display:none;
}
body.linen.subpage .sub-intro h1{
    font:600 clamp(34px,3.5vw,50px)/1.3 Pretendard,sans-serif;
    letter-spacing:-.035em;
    max-width:860px;
    text-wrap:balance;
    color:var(--sp-ink);
}
body.linen.subpage .sub-intro>p{
    font-size:16px;
    color:var(--sp-muted);
    margin:18px 0 0;
    line-height:1.8;
    max-width:650px;
}
.subpage .section-tabs{
    gap:36px;
    padding:0;
    margin-bottom:40px;
    border-bottom:1px solid var(--sp-line);
    overflow-x:auto;
    scrollbar-width:thin;
}
.subpage .section-tabs a{
    padding:12px 2px 18px;
    min-height:48px;
    font-size:16px;
    white-space:nowrap;
    color:var(--sp-muted);
}
.subpage .section-tabs a.active{
    color:var(--sp-ink);
    border-bottom:3px solid var(--sp-accent);
    font-weight:650;
}
body.linen.subpage .cms-public-list{
    display:grid;
    grid-template-columns:1fr 300px;
    gap:28px 24px;
    padding:0 0 56px;
}
.subpage #cms-search{
    grid-column:2;
    grid-row:1;
    margin:0;
}
.subpage .cms-list-top{
    grid-column:1;
    grid-row:1;
    margin:0;
    justify-content:flex-start;
    align-self:center;
    gap:24px;
    font-size:14px;
    color:var(--sp-muted);
}
.subpage #cms-results,
.subpage .cms-public-list>.pagination{
    grid-column:1 / -1;
}
body.linen.subpage .search-form{
    display:flex;
    width:300px;
    min-width:0;
    height:48px;
    border:1px solid var(--sp-line);
    background:var(--sp-white);
    border-radius:4px;
}
body.linen.subpage .search-form input{
    width:100%;
    min-width:0;
    border:0;
    margin:0;
    padding:12px 14px;
    background:transparent;
    font:14px Pretendard,sans-serif;
}
body.linen.subpage .search-form button,
body.linen.subpage .search-form .btn{
    min-width:64px;
    min-height:46px;
    padding:10px 14px;
    border:0;
    border-radius:0;
    background:var(--sp-soft);
    color:var(--sp-ink);
    font-size:14px;
}
.subpage .board-search{
    margin-left:auto;
    margin-bottom:26px;
}
body.linen.subpage #cms-results.card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:44px 32px;
}
body.linen.subpage .cms-card .card-image{
    aspect-ratio:1.5;
    border-radius:4px;
}
body.linen.subpage .cms-card .card-copy{
    padding:18px 0 0;
}
body.linen.subpage .card-copy h3{
    font-size:22px;
    line-height:1.5;
    font-weight:600;
    margin:4px 0 10px;
    letter-spacing:-.025em;
}
body.linen.subpage .card-copy small{
    font-size:12px;
    color:var(--sp-muted);
}
body.linen.subpage .card-copy>span,
.subpage .post-stats{
    font-size:13px!important;
    color:var(--sp-muted)!important;
}
body.linen.subpage .save{
    width:44px;
    height:44px;
}
body.linen.subpage.page-family #cms-results.card-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
body.linen.subpage.page-family .card-image{
    aspect-ratio:1;
}
.subpage .cms-notice{
    padding:26px 16px;
    gap:26px;
    border-color:var(--sp-line);
}
.subpage .cms-notice:first-child{
    border-top:2px solid var(--sp-ink);
}
.subpage .cms-notice strong{
    font-size:18px;
    font-weight:500;
    line-height:1.7;
}
.subpage .cms-notice>span,
.subpage .cms-notice small{
    font-size:13px;
    color:var(--sp-muted);
}
.subpage .cms-notice:hover{
    background:var(--sp-soft);
}
.subpage .pagination button{
    width:44px;
    height:44px;
    font-size:14px;
    border-radius:4px;
}
.subpage .pagination button[aria-current]{
    background:var(--sp-accent);
}
.subpage .farm-panorama{
    position:relative;
    margin-bottom:64px;
    height:440px;
    overflow:hidden;
}
.subpage .farm-panorama img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 56%;
}
.subpage .farm-panorama figcaption{
    position:absolute;
    bottom:20px;
    left:24px;
    padding:8px 14px;
    background:var(--sp-white);
    color:var(--sp-ink);
    font-size:13px;
}
.subpage .greeting-layout{
    grid-template-columns:280px 1fr;
    gap:100px;
    align-items:start;
    padding:0 44px;
}
.subpage .farm-portrait{
    padding:0;
    background:none;
}
.subpage .farm-portrait p{
    font-size:12px;
    color:var(--sp-muted);
    line-height:1.7;
}
.subpage .greeting-letter{
    padding:0;
    background:none;
}
.subpage .greeting-letter h2{
    font:550 34px/1.5 Pretendard,sans-serif;
    letter-spacing:-.03em;
    margin:0 0 28px;
}
.subpage .greeting-letter p{
    font-size:17px;
    line-height:2;
    color:var(--sp-muted);
    margin:0 0 20px;
}
.subpage .signature{
    margin-top:32px;
    padding-top:24px;
    border-color:var(--sp-line);
}
.subpage .license-section{
    padding:48px 44px;
    grid-template-columns:1fr 1fr;
    gap:64px;
    background:var(--sp-soft);
    border:0;
    align-items:center;
}
.subpage .license-section h2{
    font-size:27px;
    letter-spacing:-.025em;
}
.subpage .license-section p{
    color:var(--sp-muted);
    font-size:15px;
    line-height:1.9;
}
.subpage .license-section>a{
    background:none;
    padding:0;
}
.subpage .greeting-links>a{
    padding:28px 0;
    background:none;
    border-top:1px solid var(--sp-ink);
    border-bottom:1px solid var(--sp-line);
}
.subpage .greeting-links h3{
    font-size:25px;
}
.subpage .greeting-links small{
    color:var(--sp-muted);
    font-size:13px;
}
.subpage .visit-layout{
    grid-template-columns:1fr 1.1fr;
    gap:72px;
}
.subpage .location-card{
    padding:44px;
    background:var(--sp-soft);
    min-height:430px;
    border-radius:0;
}
.subpage .location-card:before,
.subpage .map-pin{
    display:none;
}
.subpage .location-card h2,
.subpage .visit-details h2{
    font:550 32px/1.5 Pretendard,sans-serif;
    letter-spacing:-.025em;
}
.subpage .location-card>p,
.subpage .visit-details dl,
.subpage .route-guide p{
    font-size:15px;
    line-height:1.9;
    color:var(--sp-muted);
}
.subpage .visit-details{
    padding-top:0;
}
.subpage .visit-details dl{
    padding-top:28px;
    border-top:1px solid var(--sp-line);
}
.subpage .visit-details dt{
    color:var(--sp-muted);
}
.subpage .route-guide{
    padding-top:36px;
    border-top:1px solid var(--sp-line);
}
.subpage .contact-band{
    background:var(--sp-soft);
}
.subpage .contact-band h2{
    font-family:Pretendard,sans-serif;
}
body.linen.subpage .btn{
    min-height:48px;
    padding:12px 24px;
    border-radius:4px;
    font-size:15px;
    font-weight:550;
    background:var(--sp-accent);
    border-color:var(--sp-accent);
}
body.linen.subpage .btn.light,
body.linen.subpage .btn.outline{
    background:var(--sp-soft);
    color:var(--sp-accent);
    border-color:var(--sp-line);
}
body.linen.subpage form label{
    color:var(--sp-ink);
    font-size:15px;
    line-height:1.7;
    margin:22px 0;
}
body.linen.subpage form input:not([type=checkbox]):not([type=radio]),
body.linen.subpage form textarea,
body.linen.subpage form select{
    font:400 16px/1.6 Pretendard,sans-serif;
    color:var(--sp-ink);
    border-color:var(--sp-line);
    border-radius:4px;
    min-height:50px;
    padding:13px 15px;
}
.subpage input::placeholder,
.subpage textarea::placeholder{
    color:var(--sp-muted);
}
body.linen.subpage :is(a,button,input,textarea,select,summary):focus-visible{
    outline:2px solid var(--sp-accent);
    outline-offset:4px;
}
.subpage .auth-layout{
    gap:80px;
    padding:64px 0 24px;
}
.subpage .auth-photo{
    overflow:hidden;
    border-radius:4px;
}
.subpage .auth-photo img{
    height:100%;
    min-height:660px;
}
.subpage .auth-content{
    padding:24px 0;
    background:none;
}
.subpage .auth-content h1{
    font:600 38px/1.3 Pretendard,sans-serif;
    margin:0 0 22px;
    letter-spacing:-.03em;
}
.subpage .auth-content>p,
.subpage .auth-links,
.subpage .field-help,
.subpage .form-sheet form>p{
    font-size:14px;
    line-height:1.8;
    color:var(--sp-muted);
}
.subpage .social-auth button{
    min-height:52px;
    font-size:15px;
    border-radius:4px;
}
.subpage .or{
    color:var(--sp-muted);
    font-size:12px;
}
.subpage .form-sheet{
    border-top:1px solid var(--sp-ink);
    padding:36px 0;
    background:none;
}
.subpage .form-sheet legend{
    font-size:21px;
}
.subpage .form-sheet fieldset{
    padding:28px 0;
    border-color:var(--sp-line);
}
.subpage .cms-entry-text,
.subpage .reading p{
    font-size:17px;
    line-height:2;
    color:var(--sp-muted);
}
.subpage .cms-entry-images img{
    border-radius:4px;
}
.subpage .cms-inquiry{
    padding:24px 12px;
    border-color:var(--sp-line);
}
.subpage .cms-inquiry summary{
    font-size:16px;
    line-height:1.7;
}
.subpage .cms-reply{
    background:var(--sp-soft);
    line-height:1.9;
}
.subpage .detail-copy h1,
.subpage .original-detail h2{
    font-family:Pretendard,sans-serif;
    letter-spacing:-.03em;
}
.subpage .detail-meta{
    font-size:14px;
    line-height:1.8;
}
body.linen.subpage footer{
    border-top:1px solid var(--sp-line);
}
@media(max-width:1000px){
    .subpage .greeting-layout{
        grid-template-columns:220px 1fr;
        gap:40px;
        padding:0;
    }
    .subpage .auth-layout,
    .subpage .visit-layout{
        gap:36px;
    }
}
@media(max-width:800px){
    body.linen.subpage .sub-main>*{
        width:calc(100% - 40px)!important;
        margin-left:auto;
        margin-right:auto;
    }
    .subpage .farm-panorama{
        height:320px;
        margin-bottom:40px;
    }
    .subpage .greeting-layout,
    .subpage .license-section,
    .subpage .visit-layout{
        grid-template-columns:1fr;
    }
    .subpage .farm-portrait{
        max-width:340px;
    }
    .subpage .license-section{
        padding:28px;
        gap:28px;
    }
    body.linen.subpage.page-family #cms-results.card-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .subpage .location-card{
        padding:30px;
    }
}
@media(max-width:600px){
    body.linen.subpage .sub-main>.sub-intro{
        padding:20px 0 28px;
    }
    .subpage .sub-intro .crumb{
        align-self:flex-start;
        margin-bottom:26px;
    }
    body.linen.subpage .sub-intro>p{
        font-size:15px;
    }
    .subpage .section-tabs{
        gap:24px;
        margin-bottom:28px;
    }
    .subpage .section-tabs a{
        font-size:14px;
    }
    body.linen.subpage .cms-public-list{
        grid-template-columns:1fr;
        gap:20px;
    }
    .subpage #cms-search{
        grid-column:1;
        grid-row:2;
    }
    body.linen.subpage .search-form{
        width:100%;
    }
    body.linen.subpage #cms-results.card-grid{
        gap:28px 14px;
    }
    body.linen.subpage .cms-card .card-image{
        aspect-ratio:1;
    }
    body.linen.subpage .card-copy h3{
        font-size:17px;
    }
    .subpage .cms-notice{
        padding:24px 0;
        gap:12px;
        flex-wrap:wrap;
    }
    .subpage .cms-notice strong{
        font-size:16px;
        min-width:60%;
    }
    .subpage .farm-panorama{
        height:240px;
    }
    .subpage .farm-panorama figcaption{
        bottom:12px;
        left:12px;
        font-size:12px;
    }
    .subpage .greeting-letter h2{
        font-size:28px;
    }
    .subpage .greeting-letter p{
        font-size:16px;
    }
    .subpage .auth-layout{
        padding-top:36px;
    }
    .subpage .auth-content{
        padding:0;
    }
}
@media(prefers-reduced-motion:reduce){
    .subpage .card-image img{
        transition:none;
    }
    .subpage .card-image:hover img{
        transform:none;
    }
}
@media(max-width:600px){
    .subpage .greeting-links{
        grid-template-columns:1fr;
        gap:20px;
    }
    .subpage .greeting-links h3{
        font-size:22px;
    }
}
/* Gallery columns follow the available content width. */
body.linen.subpage #cms-results.card-grid,
body.linen.subpage.page-family #cms-results.card-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:36px 24px;
}
body.linen.subpage .cms-card .card-image{
    aspect-ratio:1.15;
}
body.linen.subpage .cms-card .card-copy h3{
    font-size:18px;
}
@media(max-width:1100px){
    body.linen.subpage #cms-results.card-grid,
    body.linen.subpage.page-family #cms-results.card-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:32px 20px;
    }
}
@media(max-width:700px){
    body.linen.subpage #cms-results.card-grid,
    body.linen.subpage.page-family #cms-results.card-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:28px 14px;
    }
    body.linen.subpage .cms-card .card-image{
        aspect-ratio:1;
    }
    body.linen.subpage .cms-card .card-copy h3{
        font-size:17px;
    }
}
/* Compact search and the warm neutral palette of the approved homepage. */
body.linen.subpage{
    --sp-ink:#423d34;
    --sp-muted:#686153;
    --sp-line:#e3dfd6;
    --sp-soft:#f5f2ec;
    --sp-accent:#514e3e;
}
body.linen.subpage .search-form,
body.linen.subpage .board-search{
    width:min(300px,100%);
    margin-left:auto;
    justify-self:end;
    border-radius:6px;
    overflow:hidden;
}
body.linen.subpage .search-form:focus-within{
    outline:2px solid var(--sp-accent);
    outline-offset:3px;
}
body.linen.subpage .search-form button{
    color:var(--sp-ink);
}
.search-empty{
    grid-column:1 / -1;
    padding:60px 24px;
    background:var(--sp-soft);
    text-align:center;
}
.search-empty h2{
    font-size:22px;
    margin-bottom:12px;
}
.search-empty p{
    color:var(--sp-muted);
    margin-bottom:22px;
}
.subpage #cms-results{
    scroll-margin-top:30px;
}
.subpage .pagination button{
    min-width:44px;
    min-height:44px;
}
.password-control{
    display:flex;
    position:relative;
    width:100%;
}
.password-control input{
    padding-right:70px!important;
}
.password-toggle{
    position:absolute;
    right:6px;
    top:50%;
    transform:translateY(-50%);
    min-width:52px;
    min-height:44px;
    padding:8px;
    font-size:13px;
    color:var(--sp-accent);
    background:transparent;
    border:0;
    cursor:pointer;
}
.account-help h2{
    font-size:26px;
    margin-bottom:20px;
}
.account-help p{
    line-height:1.9;
    margin-bottom:24px;
}
.account-help .text-link{
    display:block;
    margin-top:24px;
}
@media(max-width:600px){
    body.linen.subpage #cms-search{
        width:min(280px,100%);
        justify-self:end;
    }
    body.linen.subpage .cms-public-list{
        gap:18px;
    }
}
body.linen.subpage .social-auth .provider-button{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
    min-height:54px;
    overflow:hidden;
    border:0;
}
body.linen.subpage .social-auth .naver.provider-button{
    background:#03a64a;
}
body.linen.subpage .social-auth .kakao.provider-button{
    background:#fee500;
}
.provider-button img{
    width:100%;
    max-width:300px;
    height:46px;
    object-fit:contain;
}
/* Public gallery and community widths follow the header content edges. */
@media(min-width:1001px){
    body.linen.subpage header{
        max-width:none;
        width:100%;
        padding-inline:5%;
    }
}
/* One shared outer width for gallery lists, saved photos, and post detail pages. */
body.linen.subpage{
    --gallery-gutter:5vw;
}
body.linen.subpage:has(.sub-main :is(.cms-public-list,.cms-entry,.listing,.photo-detail,.original-detail,.breeding-original))>header{
    width:100%;
    max-width:none;
    padding-inline:var(--gallery-gutter);
}
body.linen.subpage:has(.sub-main :is(.cms-public-list,.cms-entry,.listing,.photo-detail,.original-detail,.breeding-original)) .sub-main>*{
    width:calc(100% - var(--gallery-gutter)*2)!important;
    max-width:1400px!important;
    margin-left:auto;
    margin-right:auto;
    box-sizing:border-box;
}
@media(max-width:1000px){
    body.linen.subpage{
        --gallery-gutter:20px;
    }
}
/* Imported original photos must not expand the gallery grid track. */
body.linen.subpage .cms-public-list > *{
    min-width:0;
}

body.linen.subpage .cms-card .card-copy{
    overflow-wrap:anywhere;
}

body.linen.subpage #cms-pagination{
    flex-wrap:wrap;
}
