.cafe-guide .hero { padding-block-end: 12px; }
.cafe-guide .content { padding-block-start: 14px; }
.cafe-guide h2 { line-height: 1.2; font-size: clamp(26px, 4vw, 38px); margin: 0 0 16px; }
.cafe-section { margin-block: 48px; }
.cafe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 18px; }
.cafe-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--paper); }
.cafe-card h3 { font-size: 23px; line-height: 1.2; margin: 0 0 10px; }
.cafe-card h3 span { display: block; font-size: .85em; text-align: start; }
.cafe-card h4 { margin: 0 0 8px; }
.cafe-card p { margin: 0 0 12px; }
.cafe-card .cafe-location, .cafe-photo figcaption { color: var(--ink-soft); font-size: 15px; }
.cafe-tip { padding: 9px 12px; border-inline-start: 3px solid var(--terra); background: var(--terra-soft); border-radius: var(--r-sm); }
.cafe-feature { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: center; }
.cafe-photo { margin: 0 0 20px; }
.cafe-photo img { display: block; width: 100%; height: clamp(170px, 27vw, 300px); object-fit: cover; border-radius: var(--r-md); background: var(--cream-2); }
.cafe-feature .cafe-photo { margin: 0; }
.cafe-feature img { object-position: center 45%; }
.cafe-definition { max-width: 74ch; }
.cafe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 14px; }
.cafe-actions a, .cafe-closing a { display: inline-block; text-decoration: none; border: 1px solid var(--terra); border-radius: 100px; padding: 7px 14px; color: var(--ink); font-weight: 700; background: var(--paper); }
.cafe-actions a:is(:hover, :active, :focus-visible), .cafe-closing a:is(:hover, :active, :focus-visible) { background: var(--terra-soft); outline: 2px solid var(--terra); outline-offset: 2px; }
.cafe-closing { background: var(--green-deep); color: white; padding: clamp(22px, 5vw, 44px); border-radius: var(--r-lg); }
@media (max-width: 680px) {
  .cafe-feature { grid-template-columns: 1fr; }
}
.cafe-feature .cafe-photo img{object-position:center 62%}.cafe-feature .cafe-tip{background:#f4f4f3}

.cafe-guide .cafe-tip {
  background: var(--cream-2);
  border-inline-start-color: var(--terra);
  border-radius: 6px;
}
.cafe-guide .cafe-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 0 -2px transparent;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.cafe-guide .cafe-actions a:is(:hover,:active,:focus-visible) {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: inset 0 -2px var(--terra);
  outline: none;
}
.cafe-guide .cafe-actions a:focus-visible,
.cafe-guide .cafe-closing a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.cafe-guide .cafe-closing {
  background: var(--ink);
  color: white;
}
.cafe-guide .cafe-closing h2 { color: white; }
.cafe-guide .cafe-closing a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--terra);
  border-radius: 8px;
  background: var(--terra);
  color: var(--ink);
}
.cafe-guide .cafe-closing a:is(:hover,:active) {
  background: #fb923c;
  outline: none;
  box-shadow: inset 0 -2px #bc4e0d;
}
.cafe-guide .cafe-closing a:focus-visible { outline-color: white; }
@media (prefers-reduced-motion: reduce) {
  .cafe-guide .cafe-actions a { transition: none; }
}


.cafe-guide .cafe-section > h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin-block-end: 20px;
}
.cafe-guide .cafe-section > h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-block-start: 9px;
  border-radius: 2px;
  background: var(--terra);
}

.cafe-guide { overflow-x: clip; }
.cafe-card, .cafe-feature > * { min-width: 0; }
.cafe-guide :is(h1,h2,h3,p) { overflow-wrap: break-word; }
@media (max-width: 680px) {
  .cafe-guide .cafe-grid { grid-template-columns: minmax(0,1fr); }
  .cafe-guide .cafe-sections { display: grid; grid-template-columns: minmax(0,1fr); }
  .cafe-guide .cafe-feature .cafe-photo img { height: clamp(230px,70vw,400px); }
}

#tea-coffee-topics, .cafe-section[id] { scroll-margin-top: 10px; }
.cafe-guide .cafe-section-links { margin-block-start: 24px; }
@media (max-width: 680px) {
  .cafe-guide .cafe-section-links { display: grid; grid-template-columns: minmax(0,1fr); }
}

/* Match the category navigation on the nightlife and restaurant pages. */
.cafe-guide :is(.cafe-sections, .cafe-section-links) {
  gap: 8px;
}
.cafe-guide :is(.cafe-sections, .cafe-section-links) > a {
  display: flex;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
.cafe-guide :is(.cafe-sections, .cafe-section-links) > a:is(:hover, :active, :focus-visible),
.cafe-guide:has(#tea:target) .cafe-sections > a[href="#tea"],
.cafe-guide:has(#coffee:target) .cafe-sections > a[href="#coffee"],
.cafe-guide:has(#brown:target) .cafe-sections > a[href="#brown"] {
  background: #fff;
  border-color: var(--terra);
  box-shadow: none;
}
.cafe-guide .cafe-section-links > a[href="#tea-coffee-topics"] {
  border-color: var(--terra);
  border-radius: 10px;
}
@media (max-width: 720px) {
  .cafe-guide :is(.cafe-sections, .cafe-section-links) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cafe-guide :is(.cafe-sections, .cafe-section-links) > a { border-radius: 10px; }
  .cafe-guide .cafe-sections > a:last-child,
  .cafe-guide .cafe-section-links > a:first-child { grid-column: 1 / -1; }
}


.cafe-guide .cafe-category-photo { margin: 0 0 20px; }
.cafe-guide .cafe-category-photo .category-head { height: clamp(145px, 18vw, 190px); }
.cafe-guide .cafe-category-photo h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}
.cafe-guide .cafe-category-photo figcaption { color: var(--ink-soft); font-size: 15px; }
#coffee .cafe-category-photo img { object-position: center 68%; }
