.f-shell {
  max-width: 1100px;
  padding-top: 35px;
  padding-bottom: 60px;
}
.f-notice {
  background: #f5e8d9;
  border: 1px solid #b5402c;
  border-left: 5px solid #b5402c;
  padding: 16px 22px;
  margin-bottom: 32px;
  border-radius: 6px;
  color: #713428;
}
.f-notice strong,
.f-notice span {
  display: block;
}
.f-notice span {
  font-size: 14px;
  margin-top: 4px;
}
.f-shell h1 {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.5;
  margin: 15px 0 24px;
}
.f-shell h2 {
  font-family: "Noto Serif TC", serif;
  font-size: 24px;
  margin: 8px 0 16px;
}
.f-shell p {
  line-height: 1.9;
  margin: 12px 0;
}
.f-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 65px;
  padding: 30px 0 60px;
  align-items: center;
}
.f-hero .btn {
  margin-top: 20px;
}
.f-small {
  font-size: 13px;
  color: #746a57;
}
.f-paper {
  position: relative;
  border: 1px solid #cabc9f;
  background: #faf7ef;
  box-shadow: 9px 10px 0 #e8e2d3;
  padding: 45px 35px;
  transform: rotate(1deg);
}
.f-paper ol {
  padding-left: 24px;
  line-height: 2.8;
}
.f-stamp {
  float: right;
  border: 2px solid #b5402c;
  color: #b5402c;
  padding: 6px;
  font-family: serif;
  line-height: 1.3;
}
.f-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.f-grid article,
.f-shell fieldset,
.f-shell details,
.f-chapter {
  border: 1px solid #d6cab6;
  background: #faf8f1;
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}
.f-grid small {
  font-size: 14px;
}
.f-shell legend {
  font-size: 20px;
  font-weight: 700;
  padding: 0 10px;
}
.f-shell label {
  display: block;
  font-weight: 500;
  margin: 14px 0;
}
.f-shell input:not([type="checkbox"]),
.f-shell textarea,
.f-shell select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  background: #fffdf7;
  border: 1px solid #9f998b;
  border-radius: 5px;
  color: #25372c;
  font: inherit;
  margin-top: 7px;
}
.f-shell input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #31583d;
}
.f-shell .f-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.8;
}
.f-shell button {
  cursor: pointer;
}
.f-secondary {
  border: 1px solid #31583d;
  background: transparent;
  color: #31583d;
  border-radius: 5px;
  padding: 10px 18px;
  font: inherit;
}
.f-ingredient {
  padding: 12px;
  border-bottom: 1px dashed #bdb29e;
}
.f-shell summary {
  cursor: pointer;
  font-weight: 700;
}
.f-case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}
.f-case-nav a {
  border: 1px solid #c4b79d;
  border-radius: 30px;
  padding: 8px 18px;
}
.f-case-nav [aria-current] {
  background: #31583d;
  color: white;
}
.f-chapter h2 {
  font-size: 22px;
}
.f-chapter small {
  color: #6f624d;
}
.f-policy {
  margin-top: 60px;
  border-top: 1px solid #cabc9f;
  padding-top: 26px;
  font-size: 14px;
  color: #6b6251;
}
.f-policy h2 {
  font-size: 20px;
}
#f-status {
  color: #923b29;
  font-weight: 600;
  white-space: pre-wrap;
}
.f-shell pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.f-shell [hidden] {
  display: none !important;
}
.f-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}
.f-shell a:focus-visible,
.f-shell button:focus-visible {
  outline: 3px solid #b5402c;
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .f-hero,
  .f-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .f-hero {
    padding-top: 0;
  }
  .f-paper {
    transform: none;
    padding: 25px;
  }
  .f-shell fieldset {
    padding: 15px;
  }
  .f-shell .btn {
    white-space: normal;
    text-align: center;
  }
  .f-case-nav a {
    font-size: 14px;
    padding: 6px 12px;
  }
}
.f-chips { display:flex; flex-wrap:wrap; gap:10px; }
.f-shell .f-chip { display:flex; align-items:center; gap:8px; margin:0; padding:9px 14px; border:1px solid #8c9b85; border-radius:24px; cursor:pointer; background:#fffdf7; }
.f-shell .f-chip input { width:18px; height:18px; margin:0; accent-color:#31583d; }
.f-chip:has(input:checked) { background:#dce9d9; border-color:#31583d; }
.f-chip:focus-within { outline:2px solid #b5402c; outline-offset:3px; }
.f-chip.f-suggested span::after { content:' · 建議'; font-size:12px; }
.f-choice { padding:12px 0 22px; border-bottom:1px dashed #d6cab6; }
.f-choice h4 { margin:10px 0 16px; font-size:16px; }
.f-choice [data-other] input { max-width:32em; }
