/* Guestbook of alfogon.com */
.com-guestbook { --gb-accent: #e8590c; --gb-accent-dark: #c2410c; --gb-soft: #fff4ec; --gb-line: #ece9e4; --gb-muted: #77736a; --gb-star: #f2a007; max-width: 52rem; }
.gb-head h1 { margin-bottom: .4rem; }
.gb-intro { color: #4a4a40; margin-bottom: .6rem; }
.gb-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; color: var(--gb-muted); font-size: .92rem; margin: 0 0 1.2rem; }
.gb-stats__avg { display: inline-flex; align-items: center; gap: .4rem; }
.gb-stars { display: inline-flex; gap: 1px; color: #d9d5cc; line-height: 0; }
.gb-star { position: relative; display: inline-block; line-height: 0; }
.gb-star.is-on { color: var(--gb-star); }

/* the form, folded */
.gb-sign { border: 1px solid var(--gb-line); border-radius: 16px; background: #fff; margin-bottom: 1.8rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.gb-sign__summary { display: flex; align-items: center; gap: .55rem; list-style: none; cursor: pointer; padding: .95rem 1.2rem; font-weight: 700; font-size: 1.05rem; color: var(--gb-accent-dark); border-radius: 16px; }
.gb-sign__summary::-webkit-details-marker { display: none; }
.gb-sign__summary::after { content: ""; margin-left: auto; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.gb-sign[open] > .gb-sign__summary::after { transform: rotate(-135deg); }
.gb-sign__summary:hover { background: var(--gb-soft); }
.gb-sign[open] > .gb-sign__summary { border-bottom: 1px solid var(--gb-line); border-radius: 16px 16px 0 0; }
.gb-sign__login { padding: 0 1.2rem 1rem; margin: 0; }
.gb-form { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .95rem; }
.gb-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .95rem; }
.gb-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; margin: 0; border: 0; padding: 0; }
.gb-field > label, .gb-field legend { font-weight: 600; font-size: .9rem; color: #3d3c39; }
.gb-field input[type=text], .gb-field input[type=email], .gb-field input[type=url], .gb-field textarea { width: 100%; padding: .55rem .7rem; border: 1px solid #d6d3cc; border-radius: 10px; font: inherit; background: #fff; }
.gb-field input:focus, .gb-field textarea:focus { outline: none; border-color: var(--gb-accent); box-shadow: 0 0 0 3px rgba(232, 89, 12, .15); }
.gb-field > label.gb-check, .gb-check { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--gb-muted); font-weight: 400; }
.gb-help { color: var(--gb-muted); font-size: .78rem; }
.gb-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.gb-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gb-rate__stars label { cursor: pointer; color: #d9d5cc; line-height: 0; padding: .1rem; transition: color .12s, transform .12s; }
.gb-rate__stars label svg { width: 28px; height: 28px; }
.gb-rate__stars label:hover, .gb-rate__stars label:hover ~ label, .gb-rate__stars input:checked ~ label { color: var(--gb-star); }
.gb-rate__stars label:hover { transform: scale(1.12); }
.gb-rate__stars input:focus-visible + label { outline: 2px solid var(--gb-accent); border-radius: 4px; }
.gb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb-submit { justify-self: start; border-radius: 999px; padding: .55rem 1.4rem; font-weight: 600; }

/* the entries */
.gb-list { display: grid; gap: 1rem; }
.gb-empty { color: var(--gb-muted); font-style: italic; }
.gb-entry { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--gb-line); }
.gb-entry:last-of-type { border-bottom: 0; }
.gb-entry__avatar { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1rem; color: #fff; background: hsl(var(--h) 55% 48%); letter-spacing: .02em; }
.gb-entry__body { min-width: 0; }
.gb-entry__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.gb-entry__name { font-size: 1.02rem; }
.gb-entry__loc { color: var(--gb-muted); font-size: .85rem; }
.gb-entry__loc::before { content: "· "; }
.gb-entry__date { margin-left: auto; color: var(--gb-muted); font-size: .8rem; }
.gb-entry .gb-stars { margin: .25rem 0 0; }
.gb-entry__text { margin-top: .4rem; line-height: 1.55; overflow-wrap: anywhere; }
.gb-entry__text blockquote, .gb-reply blockquote { margin: .4rem 0; padding: .3rem .8rem; border-left: 3px solid var(--gb-line); color: #5a574f; }
.gb-entry__links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .4rem 0 0; font-size: .85rem; }
.gb-reply { margin-top: .7rem; padding: .7rem .9rem; background: var(--gb-soft); border-radius: 12px; font-size: .93rem; }
.gb-reply__by { display: block; color: var(--gb-accent-dark); font-size: .82rem; font-weight: 700; margin-bottom: .2rem; }
@media (max-width: 560px) { .gb-entry__date { margin-left: 0; width: 100%; } .gb-entry__avatar { width: 2.3rem; height: 2.3rem; font-size: .85rem; } }
