/* Static adaptation of Esplanade; original stylesheet and GPL notice retained. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #daf0f2; color: #333; font-family: "Droid Sans", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; font-size: 16px; line-height: 1.75; }
a { color: #176486; text-decoration: none; }
a:hover { color: #12516e; text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #15678b; outline-offset: 3px; }
#wrapper { max-width: 1132px; margin: 0 auto; background: #e9e9e9; overflow: clip; }
#header { margin: 0 20px; }
.branding { display: flex; align-items: baseline; gap: 20px; min-height: 100px; }
#site-title, #site-description { float: none; margin: 0; line-height: 100px; }
#site-title { font-size: 28px; font-weight: bold; }
#site-description { font-size: 12px; }
#header-image { width: 100%; max-width: 100%; height: auto; padding: 5px; margin: 0 0 20px; }
#access { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; min-height: 44px; }
#access ul { display: flex; float: none; width: auto; max-width: none; flex-wrap: wrap; margin: 0; padding: 0; }
#access li { float: none; display: block; margin: 0; padding: 0; border: 0; }
#access a { display: block; padding: 9px 12px; color: #fff; line-height: 1.6; background: transparent; }
.search-form { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.search-form input { width: 150px; min-width: 0; padding: 6px 8px; border: 1px solid #aaa; border-radius: 2px; font: inherit; font-size: 13px; }
button { cursor: pointer; border: 1px solid #777; border-radius: 3px; padding: 7px 12px; background: #fafafa; color: #333; font: inherit; line-height: 1.4; }
button:hover { background: #e4f0f4; }
#container { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 20px; margin: 20px; }
#content, #sidebar { float: none; width: auto; min-width: 0; margin: 0; padding: 0; }
#content { background: transparent; box-shadow: none; }
.entry, .home .post, .archive .post, #comments { padding: 22px; margin: 0 0 20px; background: #fff; box-shadow: 0 0 3px #aaa; }
.entry-title, .single .entry-title { margin: 0 0 8px; font-size: 25px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.entry-title a { color: #333; }
.entry-meta { margin: 0 0 14px; font-size: 12px; color: #707070; line-height: 1.8; }
.entry-summary p { margin: 0 0 12px; }
.home .post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home .post-list .post { margin: 0; }
.home .post-list .post:nth-child(-n+5) { grid-column: 1 / -1; }
.home .post-list .post:nth-child(n+6) .entry-title { font-size: 20px; }
.home .entry-summary { font-size: 14px; line-height: 1.75; }
.home .entry-summary p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.read-more { font-size: 14px; }
.entry-content { margin-top: 24px; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content img, .post-image img { display: block; max-width: 100%; height: auto; }
.entry-content figure { max-width: 100%; margin: 1.5em 0; }
.entry-content figcaption { padding: 8px 0; font-size: 14px; line-height: 1.7; color: #666; }
.entry-content iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 20px 0; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.entry-content .gallery figure { margin: 0; padding: 0; }
.entry-content .gallery img { width: 100%; height: auto; }
.legacy-media { padding: 16px; margin: 20px 0; border-left: 4px solid #9b8053; background: #fbf5e9; font-size: 14px; }
.legacy-media p:last-child { margin-bottom: 0; }
.post-tags { margin-top: 25px; padding-top: 12px; border-top: 1px solid #eee; font-size: 13px; }
.post-tags a { margin-right: 10px; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; font-size: 13px; }
.post-navigation a { max-width: 48%; }
.widget { padding: 0 5px 20px; margin: 0 0 10px; font-size: 13px; }
.widget-title { margin: 0 0 12px; font-size: 16px; font-weight: 400; color: #666; }
.widget ul { padding-left: 18px; margin: 0; list-style: disc; }
.widget li { margin-bottom: 7px; line-height: 1.75; }
.archive-title { margin: 0 0 20px; padding: 15px 22px; background: #fff; font-size: 24px; font-weight: 400; }
.pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 20px 0; font-size: 14px; }
.term-list { margin: 0; padding-left: 20px; line-height: 2.2; }
#copyright { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 0 20px 20px; font-size: 12px; color: #666; }
#copyright p { float: none; width: auto; margin: 0; }
#comments h2 { font-size: 20px; margin: 0 0 15px; }
.integration-note { margin: 12px 0 0; font-size: 13px; color: #666; }
#search-results { padding-left: 20px; }
#search-results li { margin: 20px 0; }
#search-results p { font-size: 14px; color: #666; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 5px; left: 5px; padding: 10px; background: white; }
@media (max-width: 760px) {
  #container { grid-template-columns: minmax(0, 1fr); }
  #sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  #sidebar .widget { float: none; width: auto; margin: 0; border: 0; padding: 0 0 20px; }
}
@media (max-width: 560px) {
  #header { margin: 0 12px; }
  .branding { min-height: 95px; padding: 20px 0; display: block; }
  #site-title, #site-description { display: block; float: none; line-height: 1.6; margin: 0; }
  #site-title { font-size: 26px; }
  #header-image { margin-bottom: 12px; }
  #access { flex-wrap: wrap; padding: 4px 8px; gap: 0; }
  #access ul { display: flex; width: 100%; }
  #access li { width: auto; }
  #access a { padding: 8px 10px; font-size: 13px; }
  .search-form { width: 100%; }
  .search-form input { width: 100%; }
  #container { margin: 12px; gap: 12px; }
  .home .post-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .entry, .home .post, .archive .post, #comments { padding: 18px; margin-bottom: 12px; }
  .entry-title, .single .entry-title { font-size: 23px; }
  .entry-content { font-size: 16px; }
  #sidebar { display: block; padding: 12px 6px; }
  #copyright { padding: 10px 18px 20px; }
}
