<?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_fd3f7a71-bfef-49aa-9244-ed8c2e377b40">
        <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:FormTp
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_d0e48979-ce07-4b0b-afd6-9d29fea7228f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_bb0a5ffb-e7cd-4304-b017-09d7b8c79d90">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_8d465bf3-ef9a-40ed-9544-ecda6d6ab0a1">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_12092de0-a3e6-4964-881b-b362815bcdef">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_884fe751-4460-4919-8dd5-b3161a782db5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_644ab422-d020-4c04-8bf1-e0f085d18a83">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_ca5b5a8e-23b3-4774-93a9-09320e09869a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_9d6b6a2d-ecf0-4c65-9f0d-77439590440d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_fcb50498-0da7-4f0e-beeb-b0615200b3f8">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      id="F_25d73ec5-c85a-40e7-93fe-83c3b35804e7">&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,000,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_fd3f7a71-bfef-49aa-9244-ed8c2e377b40"
      decimals="-6"
      id="F_74e0e8a9-1252-4eaf-9d77-90565f340422"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
