section.subpage {
    $border-width: 33%;

    margin: 0;
    margin-top: 1px;

    > .body {
        border-right: 3px solid $bg2;
        border-left: 1px solid transparent;
        @include transition(border-color .3s);

        position: relative;
        padding: 0 1em;
        margin: 1em 0;
        margin-right: $border-width;

        min-height: 7em;

        // FIXME not accessible
        &:hover {
            border-right-color: $primary-color;
            border-left-color: $bg2;
        }

        aside {
            position: absolute;
            height: 100%;
            width: $border-width;
            top: 0;
            right: -$border-width;
            padding: 1em 1em 1em 2em;
            @include box-sizing(border-box);

            .utility {
                position: absolute;
                bottom: 0;
            }

            .flags {
                list-style: none;
                padding: 0;
                margin: 0;

                text-align: left;

                li {
                    margin-bottom: 0.3em;
                }

                a {
                    $height: 1.4em;
                    $arrow-length: 0.7em;

                    background-color: $primary-color;
                    color: #fff;
                    padding: 0 0.5em;

                    display: inline-block;
                    position: relative;
                    line-height: 1.4;

                    &:after {
                        content: "";
                        position: absolute;
                        top: ($height - $arrow-length)/2;
                        left: -$arrow-length * 0.9;  // avoid seperation due to rounding errors
                        display: block;
                        height: 0;
                        width: 0;
                        border-right: $arrow-length solid $primary-color;
                        border-top: $arrow-length/2 solid transparent;
                        border-bottom: $arrow-length/2 solid transparent;
                        border-left: none;
                    }

                    &:hover, &:focus {
                        background-color: darken($primary-color, 7%);
                        text-decoration: none;

                        &:after {
                            border-right-color: darken($primary-color, 7%);
                        }
                    }
                }
            }
        }
    }
}
html.no-touch {
    section.subpage > .body {
        aside {
            opacity: 0.3;
            @include transition(opacity .5s);
        }
        // FIXME not accessible
        &:hover > aside {
            opacity: 1;
        }
    }
}
@include mobile {
    section.subpage > .body {
        margin-right: 5em;

        aside {
            width: 5em;
            right: -5em;
            padding: 1em 0 1em 1em;

            a:before {
                font-family: 'adhocracy_icons';
                speak: none;
                font-style: normal;
                font-weight: normal;
                font-variant: normal;
                text-transform: none;
            }
            .comments a:before {
                content: "\f100";
            }
            .selections a:before {
                content: "\f101";
            }
            .caption {
                display: none;
            }
        }
    }
}
