html {
  scrollbar-gutter: stable;
}

/* Reset & Base Styles */
.doc--container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.doc--container {
    line-height: 1.8;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px 60px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
}

/* Header Styles */
.doc--header {
    margin-bottom: 40px;
    border-bottom: 2px solid #222;
    padding-bottom: 15px;
}

.doc--subtitle {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.doc--h1 {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Section Guidance */

.doc--guidance {
    --font-size-md: 14px;
    width: 100%;
    margin-bottom: 60px;
    line-height: 2;
}

.doc--curriculum, 
.doc--reference-tables {
    width: 100%;
}

:where(.doc--guidance) {
    a:any-link {
        text-decoration: underline;
        &:is(:hover, :focus-visible) {
            text-decoration: none;
        }
    }
}

.doc--h2 {
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.doc--h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.doc--reference-h2 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    display: inline-block;
    padding-bottom: 5px;
}

.doc--info-block {
    margin-bottom: 30px;
}

.doc--sub-block {
    margin-block: 15px;
}

.doc--sub-block-title {
    margin-left: 10px;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: bold;
    font-size: var(--font-size-md);
}

.doc--info-block p {
    font-size: var(--font-size-md);
    margin-left: 10px;
    margin-bottom: 0;
}

.doc--info-block :where(p) + p {
    margin-top: 10px;
}

.doc--info-block ul {
    font-size: var(--font-size-md);
    margin-left: calc(10px + 1em);
    margin-bottom: 0;
}

.doc--info-block ul {
    list-style-type: none;
}

.doc--info-block ul li::before {
    content: "・";
    margin-left: -1em;
}

.doc--note {
    display: inline-block;
    margin-left: 1em;
    text-indent: -1em;
}

.doc--email-address {
    
}

/* Table Styles */
.doc--table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.doc--table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;

    th, td {
        border: 1px solid #dcdcdc;
        padding: 12px 16px;
        vertical-align: middle;
    }

    th {
        background-color: #f9f9f9;
        font-weight: bold;
        text-align: center;
        line-height: 1.25;
    }

    td ul {
        list-style-type: disc;
        margin-left: 20px;
        margin-top: 5px;
    }

}

.doc--col-time { width: 8%; }
.doc--col-content { width: 35%; }
.doc--col-instructor { width: 35%; }
.doc--col-video { width: 10%; }
.doc--col-ref { width: 12%; }

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

/* Badges */
.doc--badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    position: relative;
    padding-right: 24px;
    white-space: nowrap;
}

.doc--badge::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    width: 7px;
    height: 7px;
    margin: auto;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.doc--badge:any-link:hover {
    opacity: .8;
}

.doc--badge:only-child {
    margin-bottom: 0;
}

.doc--badge-red { background-color: #d32f2f; }
.doc--badge-blue { background-color: #1976d2; }
.doc--badge-green { background-color: #388e3c; }
.doc--badge-orange { background-color: #f57c00; }

.doc--badge:not(:any-link) {
    background-color: #ccc;
}

.doc--badge-time {
    display: inline-block;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}

.doc--task-badges {
    
}

/* Reference Tables */

/* Footer */
.doc--footer {
    text-align: center;
    padding-block: 60px 40px;
}

.doc--footer-msg {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.doc---survey-link:any-link {
    text-decoration: underline;
}

.doc---survey-link:any-link:hover {
    text-decoration: none;
}

.doc--update-date {
    font-size: 12px;
    color: #666;
}

@media all and (max-width: 620px){

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

/* ============================================================
   Responsive Styles — town.php (.doc--container)
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .doc--container {
        padding: 40px 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .doc--container {
        padding: calc(20 / 375 * 100vw) calc(20 / 375 * 100vw);
    }

    .doc--h1 {
        font-size: 20px;
    }

    .doc--h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .doc--reference-h2 {
        font-size: 15px;
        display: block;
        margin-top: 30px;
    }

    .doc--header {
        margin-bottom: 10px;
    }

    .doc--subtitle {
        line-height: 1;
    }

    .doc--guidance {
        margin-bottom: 25px;
    }

    .doc--curriculum .doc--table,
    .doc--reference-tables .doc--table {
        min-width: 580px;
    }

    .doc--footer {
        padding-block: 50px;
    }

    .doc--footer-msg {
        font-size: 17px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .doc--container {
        padding: calc(20 / 375 * 100vw) calc(15 / 375 * 100vw);
    }

    .doc--guidance {
        --font-size-md: 13px;
    }

    .doc--h1 {
        font-size: 17px;
    }

    .doc--h2 {
        font-size: 16px;
    }

    .doc--footer {
        padding-block: 40px;
    }

    .doc--footer-msg {
        font-size: 15px;
    }
}
