<?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_09101fd5-26dc-450a-96c9-b3437ebc0f8e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_72993347-a74b-4d65-84d3-6f8e89d08c67">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_06a1a465-6ceb-4d8e-9f66-685d8790125c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_eb99e7d6-4539-4fa7-a4bf-dac7570b4711">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_fff96af4-5993-4a0d-8d86-93b8fbab420a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_6d5a6d4d-eafc-4f56-b110-6aabc21206fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_7af1f9a8-2b41-457c-9c65-008c5d079439">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_0546e0b0-57e1-4293-82c6-d6e784f3057a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_8808df66-087e-4157-a630-186406423621">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_e3a0e8d2-177f-414d-8920-eefdc8cb2fa1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      id="F_8226cd35-8084-4582-af9a-5784a50cb7d9">&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;8,715,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_09101fd5-26dc-450a-96c9-b3437ebc0f8e"
      decimals="-3"
      id="F_40a7140c-a912-48ad-9f0b-3df02b3042cc"
      unitRef="U_USD">8715000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
