<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_316a43a3-d263-42cb-ae98-6f608217d23e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_490e758e-aef6-4c90-ae1b-5341dcdf8a95">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_0e22de30-d0e5-465e-bd16-3f857799075d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_b955156d-f966-4bc3-ab3f-d80b66b01f28">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_d1d80572-14f8-4e8d-9c48-848df7f9ce11">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_26bf2851-1029-48a2-b531-edb7d8fff1bf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_103aad1d-485b-4c2c-a2a0-dffc3bb0097f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_5d36f66b-98b5-4b5d-b80c-91049c9804b1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_0f65ad35-99f4-4f80-bef8-d1b00f157734">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      id="F_eb0976b9-94a2-4862-9f10-d4f6dc4561e1">&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;735,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_1fcae5f0-e588-4fa0-8be7-1d1c597014af"
      decimals="-3"
      id="F_89c6b220-bb16-4c84-99a9-c34ff7bf6d5f"
      unitRef="U_USD">735000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
