<?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_466f586d-449e-4849-9cf6-5cd5b61d27b4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_5f9f4220-c6c1-4385-ad90-5d3c837c05e6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_f44b9ab0-6fdc-40f3-a957-787bdd2f12e1">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_fe74aac7-9d88-4efc-9de4-a68a050ab64a">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_8331beeb-e8af-4624-b694-49981b924b36">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_0024a018-093b-45bf-9210-72e8ef467434">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_572f93b6-c298-4fac-93f9-0e4ad7e2a7c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_816311f1-c652-4814-ad94-0751301daddf">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_38f74326-d7b7-40a7-a412-14200a0dbef1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_bfe0417e-2de5-4b29-8a68-07bc2b1752ce">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      id="F_94882577-6370-4ea6-b29a-57dab252f8e7">&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;3,424,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_466f586d-449e-4849-9cf6-5cd5b61d27b4"
      decimals="-3"
      id="F_1765e42d-879d-432a-b0bb-4e078d84173e"
      unitRef="U_USD">3424000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
