<?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_191adef1-e195-457e-88b4-93d6f7e79854">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_ebe82e54-42ec-4739-8eb6-8572d351aae9">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_624e7cf1-322c-4dc3-a096-92ba7c9d381f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_9036a2c9-001a-4c6e-9bfb-123be8a53031">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_5d1211bc-c578-4ace-9f49-20d9dbdf84fe">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_176b8530-c950-41bb-a13c-306222c6eab1">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_ebfc9ee7-8638-44ab-87b3-240c2387360a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_45e26f34-b1f7-4a7a-8ae4-45dfb9145157">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_a19d6300-5768-4db0-adfd-8e1deccde8c7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_c6e0141b-8ac2-4739-af62-7eab07be6949">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_191adef1-e195-457e-88b4-93d6f7e79854"
      id="F_8dbfabae-7a97-43c4-9d00-c172bdd05f23">&lt;p style="tab-size:26.66px;font-size:12pt;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;9,006,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_191adef1-e195-457e-88b4-93d6f7e79854"
      decimals="-3"
      id="F_6c6c7e46-2f92-446a-abfd-fa7867b077c1"
      unitRef="U_USD">9006000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
