<?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_c723eacb-7be3-448f-802e-0cf64729fe0d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_17d2346e-3213-4b4f-b1a3-9c84cbc96833">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_5a1bbe07-eb70-4995-9114-9b4db9cac7f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_dea9e4f1-f2ca-418f-a9dd-68a5362b15fe">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_9833d515-7689-4ba8-8787-78329090856a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_f356d79f-94ef-4c46-b591-1d0e6ba54f4a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_3896508b-562d-4c9d-a8a5-bc83a7f1efe7">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_867c8aa8-1405-44a1-9dc8-fbb914545dcc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_0f3727fc-b831-47a4-965c-9514c54d2f34">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_aed5f00b-ac07-4f16-928f-e5933244bbb0">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c723eacb-7be3-448f-802e-0cf64729fe0d"
      id="F_4b675237-1429-4890-93e8-72ba1de94b1a">&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;1,978,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_c723eacb-7be3-448f-802e-0cf64729fe0d"
      decimals="-3"
      id="F_b22a18ba-7df3-4674-9454-4b8687afc3f7"
      unitRef="U_USD">1978000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
