<?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_23600aaf-a843-4447-ba5a-c155beb04f99">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_8b150c75-094a-4397-a7f9-b89c6ced0245">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_cba5e7f6-6af3-4d41-a770-2990fd6d13be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_6a116aba-d0ca-43ce-b572-28c3a0f1aabd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_a951d310-8b2c-4b55-93b1-720f399cf52f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_b48ea999-97c7-437e-b4ca-2b39c1e4ce16">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_e4553339-8db4-4ba5-8844-55a7e991e99f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_3aa0644a-3bb8-4a89-b18b-ac1dd0bc1a67">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_e7bbf66e-e08c-4504-a44c-c6b2858321ed">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_b0f409f7-4eff-46ba-add3-4c5b9367a561">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_23600aaf-a843-4447-ba5a-c155beb04f99"
      id="F_ec868eb2-19ba-42b5-8c80-4d0bdb2a6926">&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,500,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_23600aaf-a843-4447-ba5a-c155beb04f99"
      decimals="-3"
      id="F_dd79a2ca-5b73-4f61-9cfb-632e524b76de"
      unitRef="U_USD">2500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
