<?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_41857f97-51a5-4b70-954c-d39aed5588d1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_3c4ed9e0-b4dc-4047-9610-9ebca475b24f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_a7ff3783-3f97-4994-97a2-e792703cd6c7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_795d4e0e-685f-4f9b-b263-460d2c271999">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_ff24e905-eb45-44d4-ab9f-fb135a365894">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_8b54f67e-849d-470c-a735-2ecd15fcbf43">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_69faca75-4300-4a46-bdab-50e96dda2d85">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_b5329375-c4ec-41ad-ae29-10f2cc737b7a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_1dcab664-e79a-41cd-9d5c-169ac515ec1c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_5df01deb-db0c-4e60-807c-be837e47fe05">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_41857f97-51a5-4b70-954c-d39aed5588d1"
      id="F_375744bd-fa62-4ba3-887a-98bb0f546915">&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;4,175,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_41857f97-51a5-4b70-954c-d39aed5588d1"
      decimals="-3"
      id="F_4ad56ccd-7657-4925-a167-ac08107f6fbc"
      unitRef="U_USD">4175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
