<?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_421c2826-2631-43ea-8fd7-de63eebf239c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_f5320288-c3f2-4ac7-b087-589f6a390edb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_12acc878-88e2-418d-94c2-02ba8061882b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_372fec7b-d33b-46cb-8e69-74d3c84c3870">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_6624e6e2-cf56-4deb-bad0-78070d2315f4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_7dfdeddc-d0dc-4752-9deb-30d84b7f246a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_8ef6a782-9c79-4c13-b30f-52af25359708">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_df777095-0209-4a55-81e6-3ecd85dc3f17">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_d76516ba-5ae2-4614-a245-1682da0bd717">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_cd21999b-845a-4b31-8331-82024be47628">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_421c2826-2631-43ea-8fd7-de63eebf239c"
      id="F_81be1b8a-cad7-45ae-b72e-ad9a42ea8ed3">&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;250,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_421c2826-2631-43ea-8fd7-de63eebf239c"
      decimals="-3"
      id="F_748086cc-1112-416e-9bb9-0b0223e7168a"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
