/* === cais === */
.dk-cais {
  padding: clamp(52px, 8vw, 104px) 0 clamp(20px, 3vw, 40px);
  text-align: center;
}

.dk-cais__interior {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--margem);
}

.dk-cais__etiqueta { margin-bottom: 20px; }

.dk-cais h1 {
  max-width: 15em;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.dk-cais__lead {
  max-width: 34em;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  line-height: 1.58;
  color: var(--tinta-media);
}

.dk-cais__lead b {
  color: var(--tinta-escura);
  font-weight: 600;
}

.dk-cais__factos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 58px);
  margin: clamp(34px, 5vw, 54px) auto clamp(14px, 2vw, 20px);
  padding: 0;
}

.dk-cais__facto {
  min-width: 9.5em;
  text-align: center;
}

.dk-cais__facto dt {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tinta-media);
  margin-bottom: 8px;
}

.dk-cais__facto dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 2.6vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.dk-cais__facto dd small {
  display: block;
  font-family: var(--grotesco);
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--tinta-media);
  margin-top: 4px;
}

.dk-cais p { margin-left: auto; margin-right: auto; }

.dk-cais__selo {
  display: inline-block;
  margin: 0 auto;
  padding: 7px 16px;
  background: var(--ambar);
  color: #000000;
  border-radius: var(--curva);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dk-cais__accoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 44px);
}

/* === lote === */
.dk-lote {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  margin: clamp(28px, 4vw, 44px) 0 clamp(34px, 5vw, 52px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--linha-suave);
  border-radius: var(--curva);
}

.dk-lote__icone {
  width: 108px;
  height: 108px;
  border-radius: 18px 4px 18px 4px;
}

.dk-lote__nome {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dk-lote__autoria {
  color: var(--tinta-media);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.dk-lote__detalhe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
  gap: 18px 26px;
  margin: 0;
}

.dk-lote__detalhe dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tinta-media);
  margin-bottom: 4px;
}

.dk-lote__detalhe dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.dk-lote__detalhe dd code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.dk-lote__ligacao {
  display: inline-block;
  margin-top: 20px;
  padding: 4px 0;
  color: var(--ambar-tinta);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 620px) {
  .dk-lote { grid-template-columns: minmax(0, 1fr); }
  .dk-lote__icone { width: 84px; height: 84px; }
}

/* === mural === */
/* Every tile is pinned to a fixed aspect-ratio and the picture is cropped with
   object-fit, so the grid keeps its rhythm and no frame can shift the page
   while the images are still arriving. */
.dk-mural {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 22px);
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.dk-mural__peca { margin: 0; }

.dk-mural__peca img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--curva);
  background: var(--fundo-tenue);
}

.dk-mural__peca--larga { grid-column: span 2; }

.dk-mural__peca--larga img { aspect-ratio: 21 / 9; }

.dk-mural__peca figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--tinta-media);
}

@media (max-width: 900px) {
  .dk-mural { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-mural__peca--larga { grid-column: span 2; }
}

@media (max-width: 600px) {
  .dk-mural { grid-template-columns: minmax(0, 1fr); }
  .dk-mural__peca--larga { grid-column: span 1; }
  .dk-mural__peca--larga img { aspect-ratio: 3 / 2; }
}

.dk-lista-curta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 12px 30px;
  margin: 26px 0 0;
}

.dk-lista-curta li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}

.dk-lista-curta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 2px;
  background: var(--ambar);
}

.dk-nota-lateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(44px, 6vw, 72px);
  padding: clamp(26px, 4vw, 44px);
  background: var(--fundo-tenue);
  border-radius: var(--curva);
}

.dk-nota-lateral h3 { margin-bottom: 12px; }

.dk-nota-lateral p + p { margin-top: 12px; }

.dk-nota-lateral__peca { margin: 0; }

.dk-nota-lateral__peca img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--curva);
}

.dk-nota-lateral__peca figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--tinta-media);
}

@media (max-width: 760px) {
  .dk-nota-lateral { grid-template-columns: minmax(0, 1fr); }
}

/* === rotas === */
.dk-rotas__intro {
  margin: 18px 0 clamp(26px, 4vw, 38px);
  font-size: 1.06rem;
  color: var(--tinta-media);
  max-width: 42em;
}

.dk-rotas__moldura { overflow-x: auto; }

.dk-rotas__moldura:focus-visible {
  outline: 2px solid var(--ambar-tinta);
  outline-offset: 3px;
}

.dk-rotas table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.dk-rotas caption {
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--tinta-media);
  padding-bottom: 14px;
  max-width: 46em;
}

.dk-rotas thead th {
  text-align: left;
  vertical-align: bottom;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tinta-escura);
  padding: 0 16px 12px 0;
  border-bottom: 2px solid var(--ambar);
}

.dk-rotas tbody th {
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  padding: 15px 16px 15px 12px;
  white-space: nowrap;
}

.dk-rotas tbody td {
  vertical-align: top;
  padding: 15px 16px 15px 0;
  color: var(--tinta-media);
}

.dk-rotas tbody tr:nth-child(odd) { background: var(--fundo-tenue); }

.dk-rotas tbody th:first-child { border-radius: 12px 0 0 12px; }

.dk-rotas tbody td:last-child { border-radius: 0 12px 12px 0; }

.dk-rotas__legenda {
  margin-top: 22px;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--tinta-media);
  max-width: 46em;
}

.dk-campo {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  margin-top: clamp(48px, 7vw, 82px);
}

.dk-campo__marginal { padding-top: 8px; }

.dk-campo__numero {
  font-family: var(--serif);
  font-size: clamp(4.4rem, 9vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--ambar-tinta);
}

.dk-campo__glosa {
  max-width: 15em;
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--tinta-media);
}

.dk-campo__citacao { margin: clamp(26px, 4vw, 40px) 0 0; }

.dk-campo__citacao::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--ambar);
}

.dk-campo__citacao p {
  max-width: 13em;
  font-family: var(--serif);
  font-size: clamp(1.42rem, 2.7vw, 1.86rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--tinta-escura);
}

.dk-campo h3 { margin-bottom: 12px; }

.dk-campo p + p { margin-top: 13px; }

.dk-campo h4 {
  font-family: var(--grotesco);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tinta-media);
  margin: 26px 0 10px;
}

@media (max-width: 820px) {
  .dk-campo { grid-template-columns: minmax(0, 1fr); }
  .dk-campo__marginal { order: 2; padding-top: 12px; }
  .dk-campo__citacao p { max-width: 20em; }
}

/* === aviso === */
.dk-aviso {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 30em;
  margin: 0 auto;
  padding: 18px 20px 16px;
  background: var(--branco);
  border: 1px solid var(--tinta-escura);
  border-radius: var(--curva);
  box-shadow: rgba(0, 0, 0, 0.09) 0 2px 14px 0;
}

.dk-aviso[hidden] { display: none; }

.dk-aviso__texto {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--tinta-escura);
  max-width: none;
}

.dk-aviso__texto a {
  color: var(--ambar-tinta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dk-aviso__accoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dk-aviso__accoes .dk-botao {
  padding: 9px 20px;
  min-height: 40px;
  font-size: 0.88rem;
}

/* === topo === */
.dk-topo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--branco);
  color: var(--tinta-escura);
  border: 1.5px solid var(--tinta-escura);
  border-radius: var(--curva);
  cursor: pointer;
}

.dk-topo[hidden] { display: none; }

.dk-topo:hover {
  background: var(--tinta-escura);
  color: var(--branco);
  border-radius: var(--curva-torcida);
}

/* === botao === */
.dk-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--grotesco);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--curva);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-radius 0.18s ease;
}

.dk-botao--principal {
  background: var(--ambar);
  color: #000000;
  border-color: var(--ambar);
}

.dk-botao--principal:hover {
  background: var(--ambar-tinta);
  color: var(--branco);
  border-color: var(--ambar-tinta);
  border-radius: var(--curva-torcida);
}

.dk-botao--linha {
  background: transparent;
  color: var(--tinta-escura);
  border-color: var(--tinta-escura);
}

.dk-botao--linha:hover {
  background: var(--tinta-escura);
  color: var(--branco);
  border-radius: var(--curva-torcida);
}

.dk-botao:active { transform: translateY(1px); }

.dk-prosa a.dk-botao { text-decoration: none; }

.dk-prosa a.dk-botao--principal { color: #000000; }

.dk-prosa a.dk-botao--principal:hover { color: var(--branco); }

.dk-prosa a.dk-botao--linha { color: var(--tinta-escura); }

.dk-prosa a.dk-botao--linha:hover { color: var(--branco); }

.dk-cais__accoes--esquerda { justify-content: flex-start; }
