<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_c0f8fc7e-aa85-45b2-b3cb-ea907265d40c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_0d16b298-581c-4481-bc0b-fbbdc6afe19e">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_96bc938c-ab11-4dc2-96d5-7ab3fc2dd7de">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_0f752549-5c83-4f0d-b674-adf56e3273b9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_cb975607-c8e3-4255-9451-bc5f81d431ff">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_5d7f6b47-e0ab-4924-bbdd-de809e488891">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_6fd478c6-959f-454c-9215-297b95b383d7">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_27b6caa3-4ec2-42fd-9f79-06c3f5061ea2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_cb45248e-2c8b-4706-a1cd-8cc29c4082d8">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      id="F_9295d882-cdb2-4dde-939e-e42461d42ee6">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;9,056,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_5cbec53c-c2b8-43d0-bd5f-f4de1876df32"
      decimals="0"
      id="F_6aa4299f-578c-44fb-bea4-d96ab47a769b"
      unitRef="U_USD">9056000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
