@font-face {
    font-family: CertificateSarabun;
    src: url("../font/THSarabun%20Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
.lc-module {
    color-scheme: light;
    --ink: #17233c;
    --muted: #506178;
    --brand: #154c83;
    --line: #d6e2ef;
    --paper: #ffffff;
    color: var(--ink);
    font: 17px/1.55 "Noto Sans Thai", Tahoma, system-ui, sans-serif;
}
.lc-module * { box-sizing: border-box; }
.lc-module a { color: #145a96; text-underline-offset: 3px; }
.lc-module a:hover { color: #0b3459; }
.lc-module :focus-visible { outline: 3px solid #e6a846; outline-offset: 2px; }

.lc-module .shell { width: min(1160px, calc(100% - 32px)); margin: auto; }
.lc-module .actions, .lc-module .heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.lc-module .heading-actions { justify-content: space-between; }

.lc-module .page { padding: 32px 0 64px; }
.lc-module h1, .lc-module h2 { line-height: 1.25; overflow-wrap: anywhere; }
.lc-module h1 { margin: 0 0 16px; font-size: clamp(1.75rem, 4vw, 2.7rem); }
.lc-module h2 { margin: 0 0 14px; font-size: 1.35rem; }
.lc-module p { margin: 0 0 16px; overflow-wrap: anywhere; }
.lc-module .hero { padding: 26px 0 18px; }
.lc-module .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 0 0 18px; min-width: 0; }
.lc-module .narrow { max-width: 750px; }
.lc-module .cards, .lc-module .fields, .lc-module .template-grid { display: grid; gap: 16px; }
.lc-module .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); }
.lc-module .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 4px 14px; }
.lc-module .template-grid { grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); align-items: start; }
.lc-module .course { display: flex; flex-direction: column; align-items: flex-start; }
.lc-module .course .button { margin-top: auto; }
.lc-module button, .lc-module .button { background: var(--brand); color: white; border: 1px solid transparent; border-radius: 8px; padding: 9px 14px; font: inherit; font-weight: 650; display: inline-block; cursor: pointer; text-decoration: none; }
.lc-module button:hover, .lc-module .button:hover { background: #113d69; color: white; }
.lc-module .secondary { background: #e8f0fa; color: #164577; border-color: #c7d8ed; }
.lc-module .secondary:hover { background: #d5e5f9; color: #122d50; }
.lc-module .danger { background: #9f302c; }
.lc-module .danger:hover { background: #7c2522; }
.lc-module button:disabled { opacity: .55; cursor: default; }
.lc-module label { display: block; font-weight: 650; }
.lc-module input:not([type=checkbox]):not([type=radio]), .lc-module select, .lc-module textarea {
    display: block; width: 100%; background: #fff; color: var(--ink); border: 1px solid #9aafc7;
    border-radius: 7px; font: inherit; padding: 8px 10px; margin: 4px 0 14px;
}
.lc-module input[type=color] { min-height: 44px; }
.lc-module .choice { display: flex; gap: 8px; align-items: baseline; font-weight: 400; margin: 8px 0; }
.lc-module .choice input { accent-color: var(--brand); }
.lc-module .question { margin-top: 25px; }
.lc-module .question legend { padding: 0 6px; font-weight: 700; }
.lc-module .help, .lc-module .question-editor, .lc-module .position-editor { margin: 12px 0; }
.lc-module .question-form, .lc-module details form { margin-top: 14px; }
.lc-module summary { cursor: pointer; font-weight: 650; }
.lc-module .muted, .lc-module .breadcrumb { color: var(--muted); }
.lc-module .breadcrumb { margin-bottom: 12px; }
.lc-module .preserve { white-space: pre-wrap; }
.lc-module .notice { margin: 12px 0; padding: 12px 16px; background: #dff3eb; color: #163f30; border-radius: 8px; }
.lc-module .notice ul { margin: 0; padding-left: 24px; }
.lc-module .error { background: #fbe9e7; color: #7c2522; }
.lc-module .status { display: inline-block; white-space: nowrap; padding: 4px 10px; border-radius: 100px; background: #dff3eb; color: #163f30; font-size: .9rem; }
.lc-module .status.closed { background: #e8edf3; color: #3d4e63; }
.lc-module .metadata { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.lc-module .metadata dd { margin: 0; overflow-wrap: anywhere; }
.lc-module .table-scroll { overflow-x: auto; }
.lc-module table { border-collapse: collapse; width: 100%; }
.lc-module th, .lc-module td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lc-module td details { min-width: 200px; }
.lc-module canvas { display: block; width: 100%; height: auto; margin-bottom: 12px; border: 1px solid var(--line); }
.lc-module #template-canvas { touch-action: none; cursor: grab; }
.lc-module #template-canvas:active { cursor: grabbing; }
@media (max-width: 760px) {
    .lc-module .template-grid { grid-template-columns: minmax(0, 1fr); }
    .lc-module .panel { padding: 15px; }

}

.lc-module .lc-page-links { margin-bottom: 22px; }
