/* TG Café — sivuston omat tyylit */
:root {
  --page-width: 1170px;
  --charcoal: #363636;
  --text: #585858;
  --cyan: #20afd0;
  --paper: #fff;
  --line: #dfe6e8;
  font-family: Lato, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-width: 320px;
  background: #d9d5cb url("/images/TGCafe_taustakuva.jpg") center top / cover fixed no-repeat;
  font-size: 16px;
  line-height: 1.55;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan); }
a:hover, a:focus-visible { color: #087b96; }
button, summary { font: inherit; }
.site {
  width: min(var(--page-width), calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 0 26px rgb(35 35 35 / 12%);
}
.brand-row {
  display: flex;
  min-height: 136px;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
}
.brand-row img { display: block; width: 230px; }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
  background: var(--charcoal);
  color: white;
  box-shadow: 0 2px 7px rgb(0 0 0 / 14%);
}
.nav-inner {
  display: flex;
  width: min(100%, 1080px);
  min-height: 70px;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
}
.desktop-menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.desktop-menu > li { position: relative; display: flex; }
.desktop-menu a, .desktop-menu summary {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  color: #f4f4f4;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  list-style: none;
}
.desktop-menu a:hover, .desktop-menu a:focus-visible,
.desktop-menu summary:hover, .desktop-menu summary:focus-visible,
.desktop-menu [aria-current="page"] { color: var(--cyan); }
.nav-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
.desktop-submenu { position: relative; }
.desktop-submenu summary::-webkit-details-marker { display: none; }
.desktop-submenu summary::after { content: "⌄"; margin-left: 1px; font-size: 13px; }
.desktop-submenu-list {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 278px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
  background: #303030;
  box-shadow: 0 8px 20px rgb(0 0 0 / 20%);
  list-style: none;
}
.desktop-submenu[open] .desktop-submenu-list { display: block; }
.desktop-submenu-list a {
  min-height: 0;
  justify-content: flex-start;
  padding: 10px 18px;
  font-size: 14px;
  text-transform: none;
}
.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.main { padding: 22px 38px 34px; }
.banner { margin: 0 0 28px; }
.banner img { display: block; width: 100%; }
.content-section {
  padding: 24px 0 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 82px;
}
.content-section:last-child { border-bottom: 0; }
h1, h2, h3 { color: #595959; line-height: 1.2; }
h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
}
h2 { margin: 0 0 18px; font-size: clamp(27px, 3.5vw, 36px); }
h3 { margin: 0 0 12px; font-size: 24px; }
p { margin: 0 0 16px; }
.home-copy { max-width: 880px; }
.oiva-block { margin: 34px auto 18px; text-align: center; }
.oiva-block > a { display: inline-block; }
.oiva-block img { display: block; width: min(661px, 100%); margin: 0 auto 16px; }
.oiva-block em { display: block; color: #a64c21; font-size: 17px; }
.location {
  display: grid;
  grid-template-columns: minmax(190px, 31%) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid #e5e5e5;
  scroll-margin-top: 88px;
}
.location:first-of-type { border-top: 0; }
.location-photo { width: 100%; max-height: 230px; object-fit: cover; }
.location h3 { margin-bottom: 5px; }
.location-name { margin-bottom: 12px; color: #777; font-size: 14px; font-weight: 700; }
.location-copy p { margin-bottom: 11px; }
.location-contact { margin-top: 14px; }
.location-contact p { margin: 0 0 5px; }
.hours { color: #555; }
.inline-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.inline-links a { font-weight: 700; }
.kiosk-content { max-width: 900px; }
.kiosk-image { float: right; width: min(280px, 36%); margin: 0 0 18px 28px; }
.kiosk-list { margin: 12px 0 24px; padding-left: 24px; }
.kiosk-list li { margin: 4px 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr); gap: 28px; }
.contact-form { display: grid; gap: 13px; max-width: 680px; }
.form-row { display: grid; gap: 5px; }
.form-row label { color: #555; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font: inherit;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.check-row { display: flex; flex-wrap: wrap; gap: 18px; }
.check-row label { display: inline-flex; align-items: center; gap: 7px; }
.form-submit {
  min-height: 44px;
  justify-self: start;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  background: #168eaa;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.form-note { color: #777; font-size: 13px; }
.cookie-copy { max-width: 900px; }
.cookie-copy h3 { margin-top: 28px; font-size: 21px; }
.cookie-copy ul { padding-left: 22px; }
.site-footer {
  padding: 22px 24px 30px;
  background: rgb(255 255 255 / 92%);
  text-align: center;
  font-size: 14px;
}
.to-top {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 18px;
  background: var(--cyan);
  color: #fff;
  text-decoration: none;
}
.skip-link {
  position: absolute;
  z-index: 100;
  top: -80px;
  left: 10px;
  padding: 10px 14px;
  background: white;
  color: #111;
}
.skip-link:focus { top: 10px; }
@media (max-width: 900px) {
  .site { width: min(var(--page-width), calc(100% - 30px)); }
  .main { padding-inline: 26px; }
  .desktop-menu a, .desktop-menu summary { padding-inline: 13px; font-size: 14px; }
}
@media (max-width: 700px) {
  :root { scroll-padding-top: 64px; }
  body { background-attachment: scroll; }
  .site { width: calc(100% - 20px); }
  .brand-row { display: none; }
  .site-nav { min-height: 62px; }
  .nav-inner { min-height: 62px; justify-content: flex-start; }
  .desktop-menu { display: none; }
  .mobile-menu { display: block; width: 100%; }
  .mobile-menu > summary {
    position: relative;
    z-index: 34;
    display: flex;
    width: 100%;
    min-height: 62px;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
    cursor: pointer;
  }
  .hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: white;
    content: "";
  }
  .hamburger { position: relative; }
  .hamburger::before, .hamburger::after { position: absolute; left: 0; }
  .hamburger::before { top: -7px; }
  .hamburger::after { top: 7px; }
  .mobile-menu[open] .hamburger { background: transparent; }
  .mobile-menu[open] .hamburger::before { top: 0; transform: rotate(45deg); }
  .mobile-menu[open] .hamburger::after { top: 0; transform: rotate(-45deg); }
  .mobile-title { position: absolute; left: 50%; transform: translateX(-50%); color: white; font-size: 18px; font-weight: 700; white-space: nowrap; }
  .mobile-panel {
    position: fixed;
    z-index: 32;
    inset: 0;
    display: none;
    color: white;
  }
  .mobile-menu[open] .mobile-panel { display: block; }
  .mobile-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgb(0 0 0 / 48%); }
  .mobile-sheet {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 360px);
    overflow-y: auto;
    padding: 80px 0 max(24px, env(safe-area-inset-bottom));
    background: #303030;
    box-shadow: 5px 0 22px rgb(0 0 0 / 20%);
    -webkit-overflow-scrolling: touch;
  }
  .mobile-links, .mobile-submenu { margin: 0; padding: 0; list-style: none; }
  .mobile-links > li { border-bottom: 1px solid rgb(255 255 255 / 12%); }
  .mobile-links a, .mobile-links summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    list-style: none;
  }
  .mobile-links a:hover, .mobile-links summary:hover { color: var(--cyan); }
  .mobile-links summary::-webkit-details-marker { display: none; }
  .mobile-links summary::after { content: "+"; margin-left: auto; color: #bbb; font-size: 21px; }
  .mobile-links details[open] summary::after { content: "−"; }
  .mobile-submenu { padding: 0 0 12px 24px; }
  .mobile-submenu a { min-height: 42px; color: #ddd; font-size: 14px; }
  .main { padding: 12px 15px 24px; }
  .banner { margin-bottom: 20px; }
  .content-section { padding: 20px 0 28px; }
  .location { grid-template-columns: 1fr; gap: 13px; padding: 22px 0; }
  .location-photo { width: 100%; max-height: 230px; }
  .contact-layout { grid-template-columns: 1fr; }
  .kiosk-image { float: none; width: min(100%, 340px); margin: 0 auto 20px; }
  .oiva-block em { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}


/* The café articles retain the wording and images from the current site export. */
.location {
  display: block;
  padding: 26px 0;
}
.location-title {
  margin: 0 0 16px;
  color: #595959;
  font-size: clamp(26px, 3.4vw, 34px);
}
.tm-article-content {
  max-width: 960px;
}
.tm-article-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto !important;
  margin: 16px 0;
}
.tm-article-content p {
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .location { padding: 22px 0; }
  .tm-article-content img { max-width: 100%; }
}

/* Näkymät ovat saman HTML:n sisällä; vain valittu sivu näkyy. */
.page-view[hidden] { display: none !important; }
.site-nav { position: sticky; top: 0; }
.brand-header { position: relative; z-index: 1; }
.location-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  max-width: 820px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e5e5e5;
}
.location-index li { border-bottom: 1px solid #e5e5e5; }
.location-index a {
  display: block;
  padding: 14px 4px;
  color: var(--text);
  font-size: 17px;
  text-decoration: none;
}
.location-index a:hover, .location-index a:focus-visible { color: var(--cyan); }
.back-to-cafes {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--text);
  text-decoration: none;
}
.back-to-cafes:hover, .back-to-cafes:focus-visible { color: var(--cyan); }
@media (max-width: 700px) {
  .location-index { grid-template-columns: 1fr; gap: 0; }
}
