<?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_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_e8295a4e-f204-416f-8d58-c02b77563127">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_57c41415-6f7b-4506-b939-6b47704e0fea">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_900fe2c2-da25-42ee-a61a-f85c09aed1d4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_41b92326-e7df-4e8f-940e-91bcb3114741">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_82fa9aa0-78ac-4fa5-a25f-86aa4769883a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_59ce5477-410f-4385-9d73-eb1d73733882">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_cf6e37b4-be81-4fb2-9463-d8ab1568be46">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_cea8da95-e01a-443e-971e-4cc35c3938fc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_885a2ad8-c653-4b14-a9c0-5402e5a6cb7d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      id="F_9fd3527c-90d9-47ca-a127-aaf204df9168">&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;553,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_79d1150b-6eca-48a1-bf9c-a0ecf6e66b4c"
      decimals="-3"
      id="F_f2251c4b-2f57-473d-9a92-c6a2ffe0a8c7"
      unitRef="U_USD">553000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
