
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

a,
a:hover,
a:visited,
a:link {
    display: block;
    user-select: none;
    outline: none;
    color: black;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
}

input[type="date"] {
    cursor: pointer;
    display: inline-block;
    border-width: 0;
    line-height: 1.25em;
    background: #fff;
    color: #646464;
}

input[type="date"]:focus {
    outline: 0;
}

select {
    cursor: pointer;
}

input[type="text"], input[type="password"], input[type="file"], input[type="email"], textarea, select, .input-icon-container {
    display: inline-block;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    border: 1px solid #c8c8c8;
    border-radius: 0.25rem;
    background: #fff;
    color: #646464;
}

header {
    flex: 0;
}

header > #header-top {
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.9em;
}

header > #header-top > #header-top-container {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

header > #header-content {
    height: 17.5rem;
    /* 사원 그림: 예전과 같이 cover, 좌우를 뒤집어 사원이 왼쪽에 오게 (::before 에 그려 그림만 뒤집는다) */
    position: relative;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* 로고-검색창 간격 (예전 3rem) */
}

header > #header-content::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1792px;
    /* 사원이 검색(돋보기) 버튼 자리에 오도록 (layout.css 의 헤더와 같은 계산) */
    transform: translateX(calc(-50% - 330px));
    background: url('/Static/img/bg/search_bg.png') center / auto 100% no-repeat;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent 100%);
    opacity: .35; /* 그림을 흐리게 */
}

header > #header-content > * {
    position: relative;
    z-index: 1;
}

header > #header-content > [role="banner"] {
    width: 26.4rem;
    height: auto;
}

header > #header-content > [role="search"] {
    width: 32rem;
    position: relative;
}

header > #header-content > [role="search"] > form {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
}

header > #header-content > [role="search"] > form > input {
    flex: auto;
}

header > #header-content > [role="search"] button {
    flex: none;
    width: 7.5rem;
    height: 2.5rem;
    border: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

header > #header-content > [role="search"] button > * {
    flex: auto;
}

header > #header-content > [role="search"] button > img {
    flex: none;
}

header > #header-content > [role="search"] > form > button[type="submit"] {
    background-color: #E72332;
    cursor: pointer;
    color: #fff;
    font-size: 0.95em;
    padding: 0.25rem 1rem;
    transition: 0.3s;
    border: 1px solid #c8c8c8;
    border-radius: 0.25rem;
}

header > #header-content > [role="search"] > button[type="button"] {
    background: transparent;
    margin-left: 1rem;
    position: absolute;
    top: 0;
    left: 100%;
    color: #E26C75;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
}

header > #header-content > [role="search"] > button[type="button"] > img {
    opacity: 0.55;
}

header > #header-content > [role="search"] > button[type="button"]:hover {
    color: #E72332;
}

header > #header-content > [role="search"] > button[type="button"]:hover img {
    opacity: 1;
}


#article-container {
    flex: 1;
}

footer {
    flex: 0;
    box-sizing: border-box;
    background: rgb(14, 14, 14);
    color: rgb(255, 255, 255);
    font-size: 0.9em;
    padding: 4.5rem 1rem 2.5rem;
    text-align: center;
}

[aria-label="ModalContainer"] {
    z-index: 10000; /* 지도·제목 등 어떤 화면 요소보다 위 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #0005;
    display: flex;
    align-items: center;
    justify-content: center;
}

[role="modal"] {
    max-width: 820px;
    width: 820px;
    box-sizing: border-box;
    position: relative;
    background: white;
    margin: 2rem;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2);
}

[role="modal"] > header {
    height: 3.5rem;
    border-radius: 0.25rem 0.25rem 0 0;
    background: #595f6c;
    display: flex;
    align-items: center;
    justify-content: center;
}

[role="modal"] [aria-lavel="Title"] {
    flex: auto;
    text-align: center;
    font-size: 1.5rem;
    user-select: none;
    color: #fff;
}

[role="modal"] [aria-label="CloseContainer"] {
    position: absolute;
    right: 0;
    flex: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity ease 0.3s;
}

[role="modal"] [aria-label="CloseContainer"] img {
    width: 3.5rem;
    height: 3.5rem;
    display: block;
    border-radius: 0 0.25rem 0 0;
}

[role="modal"] [aria-label="CloseContainer"]:hover {
    opacity: 1;
}

[role="modal"] main {
    padding: 1.5rem 1rem;
    max-height: 75vh;
    overflow-y: auto;
}

[role="modal"] button {
    display: inline-block !important;
}


[role="grid"] {
    display: grid;
    grid-template-columns: 9rem minmax(1rem, auto) 6rem;
    gap: 1rem;
}

[role="gridcell"] {
    box-sizing: border-box;
}

[role="gridcell"].grid-footer {
    margin-top: 1rem;
    grid-column-start: 1;
    grid-column-end: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

}


#advanced-search-modal {
    visibility: hidden;
    opacity: 0;
    transition: ease 0.2s;
}

.modal-visible {
    visibility: visible !important;
    opacity: 1 !important;
}

#advanced-search-modal [type="submit"] {
    background-color: #E72332;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#advanced-search-modal [type="submit"] > img {
    width: 1em;
    height: 1em;
}

#advanced-search-modal [type="submit"]:hover {
    background-color: #B31B26;
}

#advanced-search-date-row svg {
    margin-right: 0.5rem;
}

#advanced-search-date-row > div {
    flex: auto;
    width: 100%;
}

#advanced-search-date-row > span {
    flex: none;
    padding: 0 1rem;
}

#advanced-search-city-row {
    gap: 1rem;
}

#advanced-search-city-row > select:first-child {
    width: 201px;
}

#advanced-search-city-row > select:last-child {
    flex: 1;
}

@media screen and (max-width: 850px) {
    #advanced-search-date-row, #advanced-search-city-row {
        flex-direction: column;
    }

    #advanced-search-city-row > select:first-child, #LARGE_SEQ {
        width: 100%;
        flex: 1;
    }
}

.title-col, .sel-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.w-full {
    width: 100%;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.classification-select {
    width: 100%;
}

#styled-btn {
    padding: 0;
}

#styled-btn a {
    padding: 0.5rem 1rem;
}