.lnc-schedule {
  --lnc-blue: #5bade1;
  --lnc-blue-dark: #2879ad;
  --lnc-blue-soft: #eef8fe;
  --lnc-pink: #ce3b79;
  --lnc-pink-soft: #fff0f6;
  --lnc-ink: #34495a;
  --lnc-muted: #738493;
  --lnc-line: #dce7ee;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 70px;
  color: var(--lnc-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* The existing Times page keeps its original header, while the old month
   heading and duplicated opening-hours card are retired by this plugin. */
.page-id-291 .elementor-element-f027f6e,
.page-id-291 .elementor-element-5ab9e69 { display: none !important; }
.lnc-schedule * { box-sizing: border-box; }
.lnc-hours-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 0 0 52px auto; overflow: hidden; border: 1px solid #d7eaf5; border-radius: 20px; background: #fff; box-shadow: 0 16px 45px rgba(62,128,169,.11); }
.lnc-hours-strip div { padding: 19px 10px; text-align: center; border-right: 1px solid var(--lnc-line); }
.lnc-hours-strip div:nth-child(3) { border: 0; }
.lnc-hours-strip b,.lnc-hours-strip span { display: block; }
.lnc-hours-strip b { color: var(--lnc-blue-dark); font-size: 18px; }
.lnc-hours-strip span { margin-top: 6px; color: #4b6577; font-size: 17px; font-weight: 700; }
.lnc-hours-strip small { grid-column: 1 / 4; padding: 12px; background: var(--lnc-pink-soft); color: #a53c69; text-align: center; font-size: 15px; }
.lnc-month-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: -22px 0 30px; }
.lnc-month-navigation a { display: inline-flex; align-items: center; width: max-content; min-height: 46px; padding: 10px 16px; border: 1px solid #cfe3ef; border-radius: 12px; background: #fff; color: var(--lnc-blue-dark); font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 7px 20px rgba(53,106,139,.07); }
.lnc-month-navigation a:last-child { justify-self: end; }
.lnc-month-navigation a:hover { border-color: var(--lnc-blue); background: var(--lnc-blue-soft); }
.lnc-current-month { color: #617b8c; font-size: 14px; font-weight: 700; }
.lnc-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.lnc-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lnc-pink); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.lnc-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lnc-section-heading h2 { margin: 12px 0 8px; color: #355a73; font-size: clamp(30px,3vw,42px); letter-spacing: .04em; }
.lnc-section-heading p { margin: 0; color: var(--lnc-muted); font-size: 17px; line-height: 1.7; }
.lnc-doctor-filter { display: flex; align-items: center; gap: 12px; }
.lnc-doctor-filter > span { color: var(--lnc-muted); font-size: 16px; white-space: nowrap; }
.lnc-doctor-filter select { width: 190px; min-width: 190px; height: 54px; padding: 11px 38px 11px 14px; border: 1px solid var(--lnc-line); border-radius: 12px; background: #fff; color: var(--lnc-ink); font: inherit; font-size: 16px; line-height: 1.4; font-weight: 700; }
.lnc-doctor-filter select:focus { border-color: var(--lnc-blue); outline: 3px solid rgba(91,173,225,.14); }
.lnc-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; padding: 13px 16px; border-radius: 12px; background: #f7f9fb; color: var(--lnc-muted); font-size: 15px; }
.lnc-legend span { display: flex; align-items: center; gap: 6px; }
.lnc-legend em,.lnc-doctor-line em { padding: 2px 6px; border-radius: 999px; background: var(--lnc-pink-soft); color: #b3376b; font-size: 10px; font-style: normal; font-weight: 800; }
.lnc-calendar-wrap { overflow: hidden; border: 1px solid var(--lnc-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 42px rgba(53,106,139,.07); }
.lnc-calendar-head { display: grid; grid-template-columns: repeat(7,1fr); background: var(--lnc-blue); color: #fff; }
.lnc-calendar-head div { padding: 14px 8px; text-align: center; border-right: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 700; }
.lnc-calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.lnc-calendar-day { min-height: 218px; padding: 14px 10px 10px; border-right: 1px solid var(--lnc-line); border-bottom: 1px solid var(--lnc-line); background: #fff; }
.lnc-calendar-day:nth-child(7n) { border-right: 0; }
.lnc-calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.lnc-calendar-day.is-closed { background: #fff8fb; }
.lnc-calendar-day.is-muted { background: #f7f9fa; color: #a9b5bd; }
.lnc-calendar-date { display: flex; align-items: center; justify-content: space-between; min-height: 27px; }
.lnc-calendar-date strong { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #365a72; font: 700 17px/1 Georgia,serif; }
.lnc-calendar-date small { color: var(--lnc-pink); font-size: 9px; font-weight: 800; }
.lnc-session-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lnc-session-list.is-compact { gap: 7px; margin-top: 9px; }
.lnc-session-row { display: grid; grid-template-columns: 32px 1fr; align-items: start; gap: 8px; }
.lnc-session-list.is-compact .lnc-session-row { grid-template-columns: 25px 1fr; gap: 5px; }
.lnc-session-tag { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 800; }
.is-compact .lnc-session-tag { width: 25px; height: 25px; border-radius: 6px; font-size: 11px; }
.lnc-session-tag.tag-morning { background: #fff2cf; color: #9c6a06; }
.lnc-session-tag.tag-afternoon { background: #e7f6fe; color: #277da9; }
.lnc-session-tag.tag-evening { background: #f4eaf8; color: #79528a; }
.lnc-session-time { display: block; margin-bottom: 3px; color: #8a9aa5; font-size: 11px; }
.lnc-doctor-line { display: flex; align-items: center; gap: 4px; min-height: 20px; }
.lnc-doctor-line[hidden] { display: none; }
.lnc-clinic-label { flex: 0 0 auto; padding: 1px 4px; border: 1px solid #94c8e8; border-radius: 4px; background: #f2faff; color: #2878a8; font-size: 9px; line-height: 1.4; }
.lnc-doctor-name { color: #38586d; font-size: 13px; font-weight: 800; line-height: 1.35; }
.is-compact .lnc-doctor-name { font-size: 11px; }
.lnc-session-closed { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #f9e4ed; color: #a8426e; font-size: 11px; font-weight: 800; }
.lnc-private-only,.lnc-filter-empty { color: #b4bec5; font-size: 13px; }
.lnc-closed-pill { width: 66px; margin: 34px auto 0; padding: 7px; border-radius: 999px; background: #f9e4ed; color: #a8426e; text-align: center; font-size: 13px; font-weight: 800; }
.lnc-empty-day { margin: 43px 0 0; color: #adb8bf; text-align: center; font-size: 10px; }
.lnc-week-picker,.lnc-mobile-weeks { display: none; }
.lnc-footnote { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; margin-top: 20px; padding: 17px 20px; border-radius: 16px; background: var(--lnc-blue-soft); }
.lnc-footnote > div { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--lnc-blue-dark); font: 800 16px Georgia,serif; }
.lnc-footnote p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.lnc-temporary-alert { display: grid; grid-template-columns: 46px 1fr; gap: 16px; margin-top: 22px; padding: 20px 22px; border: 1px solid #f1b7d0; border-left: 5px solid var(--lnc-pink); border-radius: 16px; background: var(--lnc-pink-soft); color: #71314d; }
.lnc-temporary-alert-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--lnc-pink); color: #fff; font-size: 23px; font-weight: 900; }
.lnc-temporary-alert h3 { margin: 0 0 8px; color: #9f2e61; font-size: 19px; }
.lnc-temporary-alert ul { margin: 0 0 6px 1.25em; padding: 0; }
.lnc-temporary-alert li { margin: 4px 0; font-size: 16px; font-weight: 800; line-height: 1.6; }
.lnc-temporary-alert p { margin: 5px 0 0; color: #85516a; font-size: 14px; }
.lnc-footnote strong { font-size: 17px; }
.lnc-footnote p span { color: #627b8b; font-size: 15px; }
.lnc-footnote a { color: var(--lnc-blue-dark); font-size: 15px; font-weight: 800; text-decoration: none; }
.lnc-updated { margin: 12px 2px 0; color: #8a9aa5; text-align: right; font-size: 14px; }
.lnc-schedule-empty { padding: 18px; border: 1px solid #dce7ee; border-radius: 12px; background: #f7f9fb; }
@media (max-width:900px) {
  .lnc-calendar-day { min-height: 212px; padding-inline: 7px; }
  .lnc-session-list.is-compact .lnc-doctor-name { font-size: 10px; }
  .lnc-clinic-label { font-size: 8px; }
}
@media (max-width:680px) {
  .lnc-schedule { width: calc(100% - 28px); padding: 24px 0 56px; }
  .lnc-hours-strip { margin-bottom: 42px; }
  .lnc-hours-strip div { padding: 16px 4px; }
  .lnc-hours-strip span { font-size: 11px; }
  .lnc-hours-strip b { font-size: 15px; }
  .lnc-hours-strip small { font-size: 12px; }
  .lnc-month-navigation { grid-template-columns: 1fr 1fr; gap: 9px; margin: -18px 0 24px; }
  .lnc-month-navigation a { min-height: 42px; padding: 8px 10px; font-size: 12px; }
  .lnc-month-navigation .lnc-current-month { grid-column: 1 / 3; grid-row: 1; text-align: center; font-size: 12px; }
  .lnc-month-navigation a { grid-row: 2; }
  .lnc-section-heading { display: block; }
  .lnc-section-heading h2 { font-size: 29px; }
  .lnc-doctor-filter { margin-top: 18px; justify-content: space-between; }
  .lnc-doctor-filter select { flex: 1; }
  .lnc-legend { gap: 10px; margin-bottom: 16px; }
  .lnc-calendar-wrap { display: none; }
  .lnc-week-picker { display: flex; overflow-x: auto; gap: 8px; margin: 0 -14px 17px; padding: 0 14px 8px; scrollbar-width: none; }
  .lnc-week-picker::-webkit-scrollbar { display: none; }
  .lnc-week-picker button { flex: 0 0 104px; padding: 10px 11px; border: 1px solid var(--lnc-line); border-radius: 12px; background: #fff; color: var(--lnc-muted); text-align: left; font: inherit; }
  .lnc-week-picker button span,.lnc-week-picker button small { display: block; }
  .lnc-week-picker button span { font-size: 12px; font-weight: 800; }
  .lnc-week-picker button small { margin-top: 3px; color: #8c9ca7; font-size: 9px; }
  .lnc-week-picker button.is-selected { border-color: var(--lnc-blue); background: var(--lnc-blue); color: #fff; box-shadow: 0 7px 17px rgba(55,135,186,.2); }
  .lnc-week-picker button.is-selected small { color: #e4f4fd; }
  .lnc-mobile-weeks { display: block; }
  .lnc-mobile-week { display: none; }
  .lnc-mobile-week.is-selected { display: grid; gap: 9px; }
  .lnc-mobile-day { min-height: 114px; display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--lnc-line); border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(53,106,139,.05); }
  .lnc-mobile-day.is-closed { min-height: 84px; background: #fff8fb; }
  .lnc-mobile-day.is-muted { min-height: 72px; background: #f7f9fa; }
  .lnc-mobile-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--lnc-line); }
  .lnc-mobile-date span { color: var(--lnc-muted); font-size: 11px; font-weight: 700; }
  .lnc-mobile-date strong { color: #365a72; font: 700 27px/1.2 Georgia,serif; }
  .lnc-mobile-date small { color: #99a8b2; font-size: 9px; }
  .lnc-mobile-day .lnc-session-list { justify-content: center; }
  .lnc-mobile-day .lnc-closed-pill,.lnc-mobile-day .lnc-empty-day { margin: auto; align-self: center; }
  .lnc-mobile-day .lnc-doctor-name { font-size: 14px; }
  .lnc-mobile-day .lnc-clinic-label { font-size: 9px; }
  .lnc-mobile-day .lnc-session-tag { font-size: 12px; }
  .lnc-mobile-day .lnc-session-closed { font-size: 12px; }
  .lnc-footnote { grid-template-columns: 34px 1fr; padding: 15px; }
  .lnc-footnote > a { grid-column: 2; }
  .lnc-temporary-alert { grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; }
  .lnc-temporary-alert-icon { width: 34px; height: 34px; font-size: 19px; }
  .lnc-temporary-alert h3 { font-size: 17px; }
  .lnc-temporary-alert li { font-size: 14px; }
}
@media (prefers-reduced-motion:reduce) { .lnc-schedule * { scroll-behavior: auto !important; } }
