<?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_833d4df6-7dd0-498a-8444-de0cce48f9c7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-14</startDate>
            <endDate>2026-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_9b79c302-f776-44b5-b48d-deec36fc9909">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_a95074d9-3ade-4405-b7f0-c6bf2d5209e6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_be322fc3-7d73-408c-a14a-899a4e9dea45">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_81e4f668-328e-4edc-bca2-285125e1bbb1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_8625d5f1-aca1-41ef-b28a-01aaefa64ee0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_4883be86-e559-4cbc-8790-8882fbea2593">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_aae2d1f6-1f42-4ccd-9e1d-7b81de7fcc42">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_7bc85c9e-72a8-4ab4-92a7-11ed4dd27077">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_2cb646fd-519d-4476-b3c2-878900c7735d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      id="F_32a7b42b-b5e2-4d3b-ad54-f1d8cea4c37d">&lt;p style="tab-size:26.66px;font-size:12pt;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;9,436,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_833d4df6-7dd0-498a-8444-de0cce48f9c7"
      decimals="-3"
      id="F_27b7dfe3-17e0-464e-b888-cc578575ea32"
      unitRef="U_USD">9436000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
