<?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_63659ac9-f84a-4956-a378-a0086d40d73b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_bc12b3d0-39d4-4e6c-9750-60ff310cdda6">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_bc5b7c17-3624-49ba-97ca-ae10aee97ae9">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_1d6c7cd0-1faf-448e-a142-77a863d38463">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_2638c1f8-f449-4593-9570-8fa8975bdb4f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_d98e201f-ec5d-4cb5-9832-7430b59a13b9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_6521dcc0-1afa-4578-bcc4-07dd4ef699ae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_e734e923-448c-428e-b466-6d1281942c8a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_fdac920f-e4c8-4c3d-9ae7-960f5e033e86">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_cb82c4a2-87d7-4ecb-b0e4-e8f12370c2ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_63659ac9-f84a-4956-a378-a0086d40d73b"
      id="F_1c7e55ef-17af-41b4-ae6d-816fbe69ef23">&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;379,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_63659ac9-f84a-4956-a378-a0086d40d73b"
      decimals="-3"
      id="F_833371b6-6937-4023-83f9-404473832222"
      unitRef="U_USD">379000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
