<?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_bce5bca4-4c1e-4908-95a7-471893e2fba4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_13c214cc-2659-44c3-b514-7555259fab8a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_f4fb831a-7d30-4378-a55c-a87eb9ded04f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_d78e4e09-c459-480f-a464-0a2480d3d331">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_511b6b8e-e5e1-49ce-95c1-6a0ccddf51be">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_b4751339-19fa-4936-8e48-2688f754efe6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_c5f7d860-a298-46da-8896-dfafc0c11302">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_62213843-681e-47a1-afc4-325e61bbaa89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_ef6bc28d-1985-460a-a649-a5e32d8a2dc1">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_f617a9c1-516c-43b2-8274-f9d7bc81b0f2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      id="F_50a36147-78f5-48f5-bc46-1ade2bc9dbe4">&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;957,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_bce5bca4-4c1e-4908-95a7-471893e2fba4"
      decimals="-3"
      id="F_4c57add8-0ef1-4c01-8012-53e6b70190cb"
      unitRef="U_USD">957000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
