<?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_74cf54fd-69c4-468d-a73f-40307ed39a79">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_06ee4196-5ab5-42c4-8b27-06978983fb23">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_5b6cf555-0f8e-4a24-bf0e-b642bc017351">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_d4904352-2fba-4267-9542-9d158dd9e217">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_3e5bb99f-5b07-42dd-8fe1-a0ae6cd49958">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_a8674352-e99a-4d0b-8152-b8513b4f32a5">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_f9d802f9-2e0f-4860-9841-8558cfde2bc1">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_3b98f07a-113a-4b70-b454-fe341624c420">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_81086859-1247-4c98-a872-63ef2b0e3d27">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_e3e87ab1-1900-4d49-9186-a6846c4576df">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_74cf54fd-69c4-468d-a73f-40307ed39a79"
      id="F_0bc4c069-bde5-4350-9d08-5f0f1bfe15d2">&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;972,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_74cf54fd-69c4-468d-a73f-40307ed39a79"
      decimals="-3"
      id="F_13b54c25-307e-44af-a591-e6d9cc808305"
      unitRef="U_USD">972000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
