<?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_18ed3d45-0959-442f-8280-7f2148e70d3f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-08</startDate>
            <endDate>2026-07-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_d67862b1-eec6-48c9-a408-701aa83ff304">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_6bed052d-a20c-45ed-ad2b-c944db71d62b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_e9627ebe-cc2c-4af7-9577-6ec12ad2eddc">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_27921650-5e83-4afa-acc3-53fde535ef94">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_acec8e62-2c60-45c5-acb7-a1cd7e2530c9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_3cd724f9-8772-4fdc-9d47-5b43c187bf58">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_8dd9a692-5836-4106-ba59-0f972e9e7e71">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_1fcc23f2-f7b5-4e7d-b39a-6d47c7acf7d8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_a0b22531-5899-4add-9dc9-85d18935d449">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_18ed3d45-0959-442f-8280-7f2148e70d3f"
      id="F_3399e02d-3d52-4e82-bf70-744f3efabeea">&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;2,932,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_18ed3d45-0959-442f-8280-7f2148e70d3f"
      decimals="-3"
      id="F_17d9deba-89ef-4827-a6a2-4a499454228a"
      unitRef="U_USD">2932000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
