<?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_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793">
        <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_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_2cfdc26a-cbda-414f-bfd5-0dd92a11abd2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_2b0f3f7c-ccd4-4f53-a6fc-479e065249a3">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_81b235b0-ab74-4650-b8e9-0326a9078f9f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_26c451bc-b115-4101-a9b7-79b06c279224">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_b5e22d19-e4ad-44ce-992d-b0915971a739">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_02f0eb5c-a494-4a2e-8909-de61d8249961">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_b2866680-0dd9-4066-8a4e-9b8eb00acb43">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_22256f3d-83b2-47fd-9c00-1dafbf0715e6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_95e96103-103f-4f4f-bdea-94c08bb573e3">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      id="F_b66a9cac-77ae-4ae6-879e-de7471397595">&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;8,021,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_ec91d4ea-c5cd-4e58-a63a-03b3b9a7b793"
      decimals="-3"
      id="F_d7848b81-3f4c-43c6-b93b-7d735b5050ad"
      unitRef="U_USD">8021000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
