* { box-sizing: border-box; }
:root { font-family: Arial, "Microsoft JhengHei", sans-serif; line-height: 1.65; }
body { margin: 0; }
h1, h2, p, figure { margin: 0; }
h1 { font-size: clamp(1.55rem, 3.5vw, 2.6rem); line-height: 1.22; }
h2 { font-size: 1.1rem; line-height: 1.35; }
p + p { margin-top: .7rem; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #ce922d; outline-offset: 4px; }
img { display: block; max-width: 100%; width: 100%; object-fit: cover; background: #dedbd5; }
nav a, .brand { display: inline-flex; min-height: 44px; align-items: center; }
.brand { gap: .6rem; font-weight: 700; text-decoration: none; }
.brand img { height: 38px; width: auto; max-width: 8rem; object-fit: contain; background: transparent; }
footer { padding: .85rem 1.2rem; font-size: .875rem; }
footer span { margin-inline-start: 1rem; }
.comparison { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0 1.1rem; padding: 0 .8rem; background: #eef0f2; color: #263033; border-bottom: 1px solid #b8bfc3; font-size: .875rem; }
.comparison a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 580px) { .comparison { justify-content: flex-start; } }

/* 台南：早期地方資訊頁，文字索引在左，獨立照片欄在右。 */
.warm { background: #f4efde; color: #2f281e; }
.community-sheet { max-width: 970px; margin: 2rem auto; background: #fffdf5; border: 1px solid #a99c7d; }
.community-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .8rem 1.5rem; border-top: 6px solid #557047; }
.community-header .brand { color: #30472b; font: bold clamp(2rem, 5vw, 3.45rem)/1.3 "PMingLiU", "Noto Serif TC", serif; letter-spacing: .15em; }
.community-header p { font-size: .9rem; }
.warm nav { display: flex; flex-wrap: wrap; padding-inline: 1rem; background: #e5dec0; border-block: 1px solid #a99c7d; }
.warm nav a { padding: .35rem .9rem; color: #30472b; }
.warm nav a[aria-current=page] { background: #f6f0dc; font-weight: 700; }
.community-columns { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.25rem; padding: 1.45rem; }
.community-columns h1 { color: #293f24; font-family: "PMingLiU", "Noto Serif TC", serif; padding-bottom: .65rem; border-bottom: 3px double #ab9e7e; }
.bulletins { margin: .45rem 0 0; }
.bulletins dt { border-top: 1px dotted #aa9d80; padding-top: .45rem; font-weight: 700; color: #324b83; }
.bulletins dt:first-child { border-top: 0; }
.bulletins a { display: inline-flex; min-height: 44px; align-items: center; }
.bulletins dd { margin: 0 0 .65rem; }
.community-sidebar { border: 1px solid #b9ad90; align-self: start; background: #f3ecd8; padding: .6rem; }
.community-sidebar h2 { padding: .2rem .45rem; margin-bottom: .4rem; background: #d9dfbf; color: #30472b; }
.community-sidebar figure + figure { margin-top: .6rem; }
.community-sidebar img { aspect-ratio: 1.9; border: 1px solid #b9ad90; }
.community-sidebar figcaption { font-size: .88rem; padding-inline: .25rem; }
.community-entries { list-style: none; margin: .65rem 0 0; padding: 0; }
.community-entries li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-bottom: 1px dotted #b9ad90; }
.community-entries img { aspect-ratio: 4/3; }
.warm.page-info main p { margin-top: .9rem; }
.warm footer { border-top: 1px solid #b9ad90; background: #e9e2cb; }

/* 高雄：左側垂直索引，工程文件式深藍標頭與規格表。 */
.blue { background: #103850; color: #142832; }
.tech-frame { width: min(1110px, calc(100% - 3rem)); margin: 2rem auto; display: grid; grid-template-columns: 13rem minmax(0, 1fr); border: 1px solid #7a9caf; box-shadow: 7px 7px #072737; }
.tech-rail { background: #b7cfdb; border-right: 1px solid #718fa0; }
.tech-rail .brand { display: flex; min-height: 92px; padding: 1rem; font-size: 1.75rem; letter-spacing: .16em; color: #143d51; background: #d9e7ed; border-bottom: 3px solid #708c99; }
.tech-rail nav { display: grid; padding: .7rem; gap: .45rem; }
.tech-rail nav a { padding: .35rem .55rem; background: #d5e4eb; border: 1px solid #6a8a9c; text-decoration: none; }
.tech-rail nav a[aria-current=page] { color: white; background: #163d56; }
.tech-frame main { background: #f6fbfe; min-width: 0; }
.tech-title { padding: 1.3rem 1.4rem; color: white; border-bottom: 4px double #91b8cd; background-color: #153e56; background-image: linear-gradient(90deg, #96bbcf1c 1px, transparent 1px), linear-gradient(#96bbcf1c 1px, transparent 1px); background-size: 22px 22px; }
.tech-title h1 { font: 700 clamp(1.65rem, 3.35vw, 2.6rem)/1.25 "Microsoft JhengHei", sans-serif; }
.tech-plate { margin: 1rem 1.3rem .65rem; border: 1px solid #91a3ac; }
.tech-plate img { height: clamp(13rem, 30vw, 18rem); object-position: center 40%; }
.tech-plate figcaption { background: #e1ebf0; padding: .21rem .6rem; font-size: .88rem; }
.tech-index { padding: .55rem 1.3rem 1rem; }
.tech-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .45rem 0 0; padding-inline-start: 1.4rem; }
.tech-index a { display: inline-flex; min-height: 44px; align-items: center; color: #1a4c68; }
.tech-table { width: calc(100% - 2rem); margin: 1rem; border-collapse: collapse; font-size: .96rem; table-layout: fixed; }
.tech-table caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.tech-table th, .tech-table td { padding: .45rem; border: 1px solid #96b0bf; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.tech-table th { background: #dce9ef; }
.tech-table th:first-child { width: 24%; }
.tech-table thead th:last-child { width: 25%; }
.tech-table img { aspect-ratio: 4/3; }
.blue footer { grid-column: 1 / -1; color: white; background: #17394b; border-top: 1px solid #7a9caf; }

/* 昇揚：2000 年代早期型錄，凸面分頁、可掃讀的產品格。 */
.wood { background-color: #ded2b7; background-image: repeating-linear-gradient(0deg, #55341c0b 0 1px, transparent 1px 5px); color: #352719; }
.trade-window { width: min(1040px, calc(100% - 2rem)); margin: 1.8rem auto; border: 5px ridge #9f7750; background: #fff9e7; }
.trade-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; column-gap: 1.1rem; border-bottom: 5px ridge #976f47; padding: .7rem 1.1rem; background: linear-gradient(#fff5d6, #e7c87c); }
.trade-header .brand { font: bold clamp(1.25rem, 3vw, 1.85rem)/1.25 "Noto Serif TC", "PMingLiU", serif; }
.trade-header .brand img { background: white; padding: .2rem; border: 1px solid #997a50; }
.trade-header nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.trade-header nav a { text-decoration: none; padding: .3rem .7rem; border: 2px outset #b58d56; background: linear-gradient(#f7e4a7, #c99c56); }
.trade-header nav a[aria-current=page] { border-style: inset; background: #725133; color: white; }
.trade-window main { padding: 1.25rem; }
.trade-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .8rem; margin-bottom: .9rem; border-bottom: 3px double #b29a70; padding-bottom: .9rem; }
.trade-intro h1, .trade-window main > h1, .trade-note h1 { font-family: "Noto Serif TC", "PMingLiU", serif; color: #66451f; }
.trade-intro p { margin-top: .55rem; }
.trade-intro ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; margin: 0; padding: 0; }
.trade-intro a { display: flex; align-items: center; min-height: 44px; padding: .4rem .55rem; border: 1px solid #bca27d; background: #f8edcf; font-size: .93rem; }
.trade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.trade-product { background: #fffdf5; border: 1px solid #b2986b; }
.trade-product img { aspect-ratio: 1.24; border-bottom: 1px solid #b2986b; }
.trade-product div { padding: .5rem; }
.trade-product h2 { color: #6a431b; }
.trade-product p { margin-top: .3rem; font-size: .96rem; }
.trade-spec { display: grid; gap: .65rem; margin-top: .9rem; }
.trade-spec article, .trade-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); gap: .65rem; align-items: center; }
.trade-spec img { border-bottom: 0; border-right: 1px solid #b2986b; }
.trade-note { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.trade-note p { margin-top: .6rem; }
.wood footer { border-top: 3px double #b3966e; background: #f5e8c7; }

/* 留光：早期設計工作室作品集，黑底、無面板的大圖拼貼。 */
.folio { color: #f1ede4; background: #151716; font-family: "Noto Serif TC", "PMingLiU", Georgia, serif; }
.folio-room { max-width: 1170px; margin: 0 auto; padding: 1.35rem 1.8rem; }
.folio-top { border-bottom: 1px solid #66645b; padding-bottom: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .35rem 1rem; flex-wrap: wrap; }
.folio-top .brand { font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: .14em; }
.folio-top .brand img { height: 31px; padding: .2rem; background: #e8e0d0; }
.folio-top nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.folio-top nav a { text-decoration: none; opacity: .82; }
.folio-top nav a[aria-current=page] { opacity: 1; text-decoration: underline; }
.folio-montage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr) minmax(0, .75fr); grid-template-rows: auto auto; column-gap: 1rem; row-gap: .7rem; padding: 1rem 0 1.2rem; align-items: start; }
.folio-lead { grid-row: 1; grid-column: 1; align-self: center; }
.folio-lead h1 { font-weight: 400; letter-spacing: .12em; }
.folio-lead p { margin-top: .8rem; color: #d0c3a9; }
.folio-lead a, .folio-studio a { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; }
.folio-montage figure:nth-of-type(1) { grid-column: 2; grid-row: 1 / 3; }
.folio-montage figure:nth-of-type(1) img { aspect-ratio: 1; }
.folio-montage figure:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.folio-montage figure:nth-of-type(2) img { aspect-ratio: 1.45; }
.folio-montage figure:nth-of-type(3) { grid-column: 3; grid-row: 2; }
.folio-montage figure:nth-of-type(3) img { aspect-ratio: 1.4; }
.folio figcaption { color: #d0c3a9; padding-top: .25rem; font-size: .89rem; }
.folio-works, .folio-studio { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: .9rem 0 1.6rem; }
.folio-works img, .folio-studio img { aspect-ratio: 1.55; }
.folio-works article div { padding: .5rem 0; border-bottom: 1px solid #66645b; }
.folio.page-catalog main > h1 { padding-top: 1rem; }
.folio footer { border-top: 1px solid #66645b; padding-inline: 0; color: #d0c3a9; }

/* 島火：早期餐廳入口頁，深紅底、中央紙本菜單、單張圓框照片。 */
.menu { background-color: #432326; color: #451e22; background-image: radial-gradient(#a8665c50 1px, transparent 1px); background-size: 16px 16px; font-family: "Noto Serif TC", "PMingLiU", Georgia, serif; }
.menu-book { width: min(650px, calc(100% - 2rem)); margin: 1.45rem auto; padding: 1rem 1.4rem; text-align: center; background: #f9ebce; border: 7px double #945d4a; box-shadow: 0 0 0 3px #240e15, 0 8px 25px #2e101c91; }
.menu-title { border-bottom: 3px double #9a6350; }
.menu-title .brand { min-height: 54px; font-size: clamp(2.1rem, 7vw, 3.65rem); letter-spacing: .17em; line-height: 1.08; margin-bottom: .6rem; }
.menu-book h1 { font-size: clamp(1.1rem, 3vw, 1.58rem); font-weight: 400; letter-spacing: .08em; margin: .65rem 0 .9rem; }
.menu-medallion { width: min(15.5rem, 80%); margin: .25rem auto .85rem; border-radius: 50%; overflow: hidden; padding: .25rem; border: 3px double #945d4a; }
.menu-medallion img { aspect-ratio: 1; border-radius: 50%; }
.menu-book nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; padding: .4rem 0 1rem; }
.menu-book nav a { background: #6d2930; color: #fff4d8; border: 3px double #dcae6d; padding: .2rem .75rem; text-decoration: none; }
.menu-book nav a[aria-current=page] { background: #f4d99d; color: #451e22; border-color: #98624b; }
.menu-dishes { margin: 0; padding: 0; list-style: none; }
.menu-dishes li { display: grid; grid-template-columns: minmax(0,1fr) 7rem; gap: .6rem; align-items: center; text-align: start; border-top: 1px dotted #945d4a; padding: .55rem 0; }
.menu-dishes img { aspect-ratio: 1.22; }
.menu-visit img { aspect-ratio: 2.1; margin-bottom: .55rem; }
.menu-visit a { display: inline-flex; min-height: 44px; align-items: center; }
.menu footer { border-top: 3px double #945d4a; padding: .6rem .2rem .1rem; }

@media (max-width: 700px) {
    .community-sheet { margin: .65rem .5rem 1rem; }
    .community-columns { grid-template-columns: 1fr; padding: 1rem; }
    .community-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem; }
    .community-sidebar h2 { grid-column: 1 / -1; }
    .community-sidebar figure + figure { margin-top: 0; }
    .tech-frame { width: calc(100% - 1.1rem); margin: .6rem auto 1rem; grid-template-columns: 1fr; box-shadow: 3px 3px #072737; }
    .tech-rail { border-right: 0; border-bottom: 1px solid #718fa0; }
    .tech-rail .brand { min-height: 54px; padding: .35rem 1rem; }
    .tech-rail nav { display: flex; flex-wrap: wrap; gap: .35rem; padding: .45rem; }
    .tech-title, .tech-index { padding-inline: .75rem; }
    .tech-plate { margin-inline: .75rem; }
    .trade-window { width: calc(100% - 1.1rem); margin: .65rem auto 1rem; }
    .trade-window main { padding: .75rem; }
    .trade-intro { grid-template-columns: 1fr; }
    .trade-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .folio-room { padding: .85rem; }
    .folio-montage { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: auto auto auto; }
    .folio-lead { grid-column: 1 / -1; grid-row: 1; }
    .folio-montage figure:nth-of-type(1) { grid-column: 1 / -1; grid-row: 2; }
    .folio-montage figure:nth-of-type(1) img { aspect-ratio: 1.65; }
    .folio-montage figure:nth-of-type(2) { grid-column: 1; grid-row: 3; }
    .folio-montage figure:nth-of-type(3) { grid-column: 2; grid-row: 3; }
    .folio-works, .folio-studio { grid-template-columns: 1fr; }
    .menu-book { width: calc(100% - 1.2rem); padding: .7rem .75rem; }
}
