:root {
    --tide-navy: #071c2c;
    --tide-navy-light: #0c2b40;
    --tide-teal: #0d9488;
    --tide-teal-dark: #0f766e;

    --tide-blue: #2684a7;
    --tide-sky: #e9f7fb;

    --tide-bg: #f4f8fa;
    --tide-card: #ffffff;

    --tide-text: #102331;
    --tide-muted: #71818d;

    --tide-line: #e4edf1;

    --tide-red: #e55b5b;

    --tide-radius: 22px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        linear-gradient(
            180deg,
            #edf8fb 0,
            #f7fafb 350px,
            #f4f8fa 100%
        );

    font-family:
        Pretendard,
        "Noto Sans KR",
        Arial,
        sans-serif;

    color: var(--tide-text);
}

button,
select {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}


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

.tide-page {
    min-height: 100vh;
}

.tide-container {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================================
   강백호 테마 내부 물때페이지 전용
========================================================= */

body.kbh-tide-calendar #wrapper {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}

body.kbh-tide-calendar #container_wr {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}

body.kbh-tide-calendar #container {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}

body.kbh-tide-calendar #container_title {
    display: none;
}

body.kbh-tide-calendar
.tide-hero {
    color: #ffffff;
}

body.kbh-tide-calendar
.tide-hero__title {
    color: #ffffff !important;
}

body.kbh-tide-calendar
.tide-hero__description {
    color:
        rgba(
            255,
            255,
            255,
            0.82
        ) !important;
}


/* =========================================================
   HERO
========================================================= */

.tide-hero {
    position: relative;

    padding:
        105px
        0
        48px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(50, 200, 205, 0.35),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #061b2b 0%,
            #0a3448 52%,
            #087d7c 100%
        );

    color: #ffffff;
}

.tide-hero::after {
    content: "";

    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -90px;

    height: 150px;

    border-radius: 50% 50% 0 0;

    background:
        rgba(255, 255, 255, 0.05);
}

.tide-hero__top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.tide-hero__eyebrow {
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 700;

    color: #79e2dc;

    letter-spacing: 0.08em;
}

.tide-hero__title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(
        38px,
        5vw,
        70px
    );

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -0.05em;
}

.tide-hero__description {
    max-width: 720px;

    margin:
        18px
        0
        0;

    font-size: 18px;

    line-height: 1.7;

    color:
        rgba(
            255,
            255,
            255,
            0.78
        );
}


/* =========================================================
   AREA SELECT
========================================================= */

.tide-area-select-wrap {
    width: 260px;
}

.tide-area-select-label {
    display: block;

    margin-bottom: 9px;

    font-size: 13px;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );
}

.tide-area-select {
    width: 100%;

    height: 58px;

    padding:
        0
        18px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.25
        );

    border-radius: 16px;

    outline: none;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    backdrop-filter: blur(12px);

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.tide-area-select option {
    color: #111111;
}


/* =========================================================
   TODAY
========================================================= */

.tide-today {
    position: relative;
    z-index: 2;

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

    gap: 30px;

    margin-top: 42px;

    padding:
        26px
        30px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.17
        );

    border-radius: 24px;

    background:
        rgba(
            5,
            28,
            43,
            0.46
        );

    backdrop-filter: blur(15px);
}

.tide-today__date {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.tide-today__badge {
    width: fit-content;

    padding:
        5px
        8px;

    border-radius: 7px;

    background: #67dfd7;

    color: #062b35;

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

    letter-spacing: 0.1em;
}


.tide-today__title-row {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 6px;
}

.tide-today__title-row strong {
    margin: 0;

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

    line-height: 1.2;
}

.tide-today__tide-name {
    display: inline-block;

    color: #ffd84d;

    font-size: 34px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: -0.05em;

    text-shadow:
        0 1px 8px
        rgba(0, 0, 0, 0.28);
}

.tide-today__calendar-date {
    display: block;

    margin-top: 8px;

    color:
        rgba(
            255,
            255,
            255,
            0.62
        );

    font-size: 14px;
}
.tide-today__items {
    display: flex;

    gap: 12px;
}

.tide-today-item {
    min-width: 135px;

    padding:
        14px
        17px;

    border-radius: 16px;

    background:
        rgba(
            255,
            255,
            255,
            0.09
        );
}

.tide-today-item__type {
    display: block;

    margin-bottom: 6px;

    font-size: 12px;
}

.tide-today-item strong {
    display: block;

    font-size: 22px;
}

.tide-today-item > span:last-child {
    display: block;

    margin-top: 4px;

    font-size: 12px;

    color:
        rgba(
            255,
            255,
            255,
            0.65
        );
}

.tide-today-item.is-high
.tide-today-item__type {
    color: #75ebe1;
}

.tide-today-item.is-low
.tide-today-item__type {
    color: #8fd1ef;
}


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

.tide-main {
    padding:
        48px
        0
        90px;
}


/* =========================================================
   CALENDAR CARD
========================================================= */

.tide-calendar-card {
    overflow: hidden;

    border:
        1px solid
        var(--tide-line);

    border-radius:
        var(--tide-radius);

    background:
        var(--tide-card);

    box-shadow:
        0 24px 70px
        rgba(
            28,
            70,
            85,
            0.09
        );
}

.tide-calendar-header {
    display: grid;

    grid-template-columns:
        64px
        1fr
        64px;

    align-items: center;

    padding:
        28px
        30px;

    border-bottom:
        1px solid
        var(--tide-line);
}

.tide-calendar-title {
    text-align: center;
}

.tide-calendar-title span {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;

    color:
        var(--tide-muted);
}

.tide-calendar-title strong {
    display: block;

    font-size: 28px;

    letter-spacing: -0.04em;
}

.tide-month-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border:
        1px solid
        var(--tide-line);

    border-radius: 50%;

    font-size: 32px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.tide-month-button:hover {
    transform: translateY(-2px);

    background:
        var(--tide-sky);
}


/* =========================================================
   WEEK
========================================================= */

.tide-week {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    border-bottom:
        1px solid
        var(--tide-line);
}

.tide-week > div {
    padding:
        15px
        8px;

    text-align: center;

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

    color:
        var(--tide-muted);
}

.tide-week .is-sunday {
    color:
        var(--tide-red);
}

.tide-week .is-saturday {
    color:
        var(--tide-blue);
}


/* =========================================================
   CALENDAR
========================================================= */

.tide-calendar {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);
}

.tide-day {
    position: relative;

    min-height: 180px;

    padding:
        16px;

    border: 0;

    border-right:
        1px solid
        var(--tide-line);

    border-bottom:
        1px solid
        var(--tide-line);

    background: #ffffff;

    color:
        var(--tide-text);

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.tide-day:hover {
    z-index: 2;

    background:
        #f5fbfc;
}

.tide-day:nth-child(7n) {
    border-right: 0;
}

.tide-day--empty {
    cursor: default;

    background:
        #fafcfd;
}

.tide-day__head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 17px;
}

.tide-day__number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    font-size: 15px;
    font-weight: 900;
}

.tide-day.is-sunday
.tide-day__number {
    color:
        var(--tide-red);
}

.tide-day.is-saturday
.tide-day__number {
    color:
        var(--tide-blue);
}

.tide-day.is-today {
    background:
        linear-gradient(
            160deg,
            #effcfb,
            #ffffff 70%
        );

    box-shadow:
        inset 0 0 0 2px
        var(--tide-teal);
}

.tide-day.is-today
.tide-day__number {
    background:
        var(--tide-teal);

    color: #ffffff;
}

.tide-day__today {
    padding:
        4px
        7px;

    border-radius: 6px;

    background:
        #daf7f4;

    color:
        var(--tide-teal-dark);

    font-size: 10px;
    font-weight: 900;
}

.tide-day__predictions {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.tide-mini {
    display: grid;

    grid-template-columns:
        18px
        1fr
        auto;

    align-items: center;

    gap: 4px;

    font-size: 12px;
}

.tide-mini strong {
    font-size: 13px;
}

.tide-mini em {
    font-style: normal;

    color:
        var(--tide-muted);
}

.tide-mini.is-high > span {
    color:
        var(--tide-teal);
}

.tide-mini.is-low > span {
    color:
        var(--tide-blue);
}

.tide-day__empty-text {
    margin-top: 20px;

    font-size: 11px;

    color: #b2bdc3;
}


/* =========================================================
   DETAIL
========================================================= */

.tide-detail {
    margin-top: 28px;

    padding:
        34px;

    border-radius:
        var(--tide-radius);

    background:
        linear-gradient(
            135deg,
            #071d2d,
            #0a3b4e
        );

    color: #ffffff;
}

.tide-detail__eyebrow {
    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.12em;

    color: #6fe0d6;
}

.tide-detail__intro h2 {
    margin:
        8px
        0
        8px;

    color: #ffffff !important;

    font-size: 28px;
}

.tide-detail__intro p {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.62
        );
}

.tide-detail__grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-top: 28px;
}

.tide-detail-item {
    padding: 22px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 16px;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );
}

.tide-detail-item span {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;

    color:
        rgba(
            255,
            255,
            255,
            0.65
        );
}

.tide-detail-item strong {
    display: block;

    font-size: 28px;
}

.tide-detail-item em {
    display: block;

    margin-top: 6px;

    font-style: normal;

    color:
        rgba(
            255,
            255,
            255,
            0.67
        );
}


/* =========================================================
   SEO CONTENT
========================================================= */

.tide-content {
    margin-top: 28px;

    padding:
        40px;

    border:
        1px solid
        var(--tide-line);

    border-radius:
        var(--tide-radius);

    background: #ffffff;
}

.tide-content h2 {
    margin:
        0
        0
        14px;

    font-size: 30px;

    letter-spacing: -0.04em;
}

.tide-content > p {
    max-width: 900px;

    margin: 0;

    color:
        #566773;

    line-height: 1.8;
}

.tide-info-cards {
    display: grid;

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

    gap: 16px;

    margin-top: 28px;
}

.tide-info-cards article {
    padding: 24px;

    border-radius: 18px;

    background:
        #f5f9fa;
}

.tide-info-cards h3 {
    margin:
        0
        0
        10px;
}

.tide-info-cards p {
    margin: 0;

    color:
        #647581;

    line-height: 1.7;
}

.tide-related {
    margin-top: 30px;

    padding-top: 24px;

    border-top:
        1px solid
        var(--tide-line);
}

.tide-related > strong {
    display: block;

    margin-bottom: 12px;
}

.tide-related > div {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.tide-related a {
    padding:
        8px
        13px;

    border:
        1px solid
        var(--tide-line);

    border-radius: 999px;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.tide-related a:hover {
    border-color:
        var(--tide-teal);

    color:
        var(--tide-teal-dark);
}


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

@media (max-width: 900px) {

    .tide-container {
        width:
            calc(100% - 24px);
    }

    .tide-hero {
        padding:
            36px
            0
            30px;
    }

    .tide-hero__top {
        display: block;
    }

    .tide-hero__title {
        font-size: 42px;
    }

    .tide-hero__description {
        font-size: 15px;
    }

    .tide-area-select-wrap {
        width: 100%;

        margin-top: 28px;
    }

    .tide-today {
        display: block;

        padding: 20px;
    }

    .tide-today__items {
        display: grid;

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

        margin-top: 20px;
    }

    .tide-today-item {
        min-width: 0;
    }

    .tide-main {
        padding:
            24px
            0
            60px;
    }

    .tide-calendar-header {
        grid-template-columns:
            46px
            1fr
            46px;

        padding:
            18px
            14px;
    }

    .tide-month-button {
        width: 42px;
        height: 42px;
    }

    .tide-calendar-title strong {
        font-size: 22px;
    }

    .tide-day {
        min-height: 92px;

        padding:
            9px
            6px;
    }

    .tide-day__head {
        margin-bottom: 8px;
    }

    .tide-day__number {
        width: 28px;
        height: 28px;

        font-size: 13px;
    }

    .tide-day__today {
        display: none;
    }

    .tide-mini {
        display: none;
    }

    .tide-day__empty-text {
        display: none;
    }


    .tide-detail {
        padding:
            24px
            18px;
    }

    .tide-detail__grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .tide-content {
        padding:
            28px
            20px;
    }

    .tide-info-cards {
        grid-template-columns:
            1fr;
    }

}


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

@media (max-width: 520px) {

    .tide-hero__title {
        font-size: 36px;
    }

    .tide-week > div {
        padding:
            12px
            4px;
    }

    .tide-day {
        min-height: 74px;

        padding: 6px;
    }

    .tide-day__number {
        width: 25px;
        height: 25px;
    }

    .tide-detail__grid {
        grid-template-columns:
            1fr
            1fr;
    }

}

.tide-day__tide-name {
    margin-bottom: 10px;

    color: var(--tide-teal-dark);

    font-size: 16px;
    font-weight: 900;

    letter-spacing: -0.04em;
}


@media (max-width: 900px) {

    .tide-day__tide-name {
        margin-top: 2px;
        margin-bottom: 0;

        font-size: 11px;
        text-align: center;
    }

}

.tide-day.is-selected {
    z-index: 3;

    background:
        linear-gradient(
            160deg,
            #e6f8f7,
            #ffffff
        );

    box-shadow:
        inset 0 0 0 2px
        var(--tide-teal);
}

@media (max-width: 900px) {

    .tide-today__title-row {
        gap: 10px;
    }

    .tide-today__title-row strong {
        font-size: 20px;
    }

    .tide-today__tide-name {
        font-size: 28px;
    }

}